Emacs/psgml problem

Karsten Wade kwade at redhat.com
Sun Aug 15 17:51:09 UTC 2004


On Sun, 2004-08-15 at 10:28, Paul W. Frields wrote:
> On Sun, 2004-08-15 at 13:23, Karsten Wade wrote:
> > On Sun, 2004-08-15 at 09:54, Paul W. Frields wrote:
> > > I've been using the same setup since I first started doing FDP stuff; I
> > > added the code listed in the Doc Guide to my .emacs file, and haven't
> > > changed it. rpm -V psgml looks fine.
> > > 
> > > I think after having battled it for a little while that it's related to
> > > doing this:
> > >   <xref linkend="target"/>
> > > instead of:
> > >   <xref linkend="target"></xref>
> > > 
> > > Exiting Emacs and restarting it seems to "fix" the problem. It only
> > > happens using <filename> after <xref/> tags. I'm confused but I'm not
> > > sure how to Bugzilla the problem since it could be the Big OE (Operator
> > > Error).
> > 
> > I was first going to ask if you had a stuck Ctrl key on your keyboard.
> > :)
> 
> Out of genuine curiosity, would this have caused a problem like what I
> observed?

Not sure.  An nXML keybinding is C-/ to close the previous open tag,
iirc.  That was why my first thought was, stuck keyboard?  But yeah, in
PSGML, it's different as Dave pointed out.

> > 
> > Another thing you might try (being a self-professed newbie who seems to
> > be doing quite well anyway) is Mark's PSGMLX package:
> > http://dulug.duke.edu/~mark/psgmlx .  It will validate against the XML
> > DTD properly, afaict.  Just don't find any bugs in it, Mark doesn't have
> > any time to fix them. :)
> 
> It's on my to-do list! Am I correct that you just indicated (in another
> thread, sorry) that I can use all the same keybindings as in PSGML? If I
> don't have to unlearn what I've only recently learned for psgml, I'm
> more likely to try psgmlx.

Yeah, it was on my list for too long, and it turned out to be stupidly
easy to setup. :D

Right, it's exactly like PSGML keybindings.  I think Mark adds some
stuff, but nothing is taken away, iirc.  Still, like I alluded to, it's
an extension of PSGML, so it may have different (i.e., buggy) behavior. 
Definitely worth a try, though.

Examples of stuff added - when you are in a mode that is editing a
script (Perl, bash, etc.) and you put your cursor is over any bracket {}
[] (), the opening and closing brackets are highlighted.  Right-click in
SGML files pulls up an insert element menu that only lets you insert
legal tags -- fast way of checking for what is valid, which may be part
of troubleshooting.

- Karsten

-- 
Karsten Wade, RHCE, Tech Writer
a lemon is just a melon in disguise
http://people.redhat.com/kwade/
gpg fingerprint: 2680 DBFD D968 3141 0115  5F1B D992 0E06 AD0E 0C41





More information about the fedora-docs-list mailing list