Re: psgml and namespaces ... I know ...

[email protected] Fri, 18 Feb 2005 00:33:36 +0100
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>

Thanks for looking it up, Dave, and thanks, Peter for being the source
;-)


I've tried to strip down the code, because all those hooks (mine and
hers ;-)) were slightly confusing to me, and, accidently, I stumbled
over a similar statement in my ~/.psgml file which used
eval-after-load instead of add-hook (I believe it has come down from
some ancient SuSE installation I had on some machine years ago). I
thought it might be more economical because it is called only once
when I fire up Emacs, so I modelled the new one after the old one:


(eval-after-load "psgml-parse"
  ;; make the colon a legal word constituent
  ;; (for things like "xml:lang")
  '(modify-syntax-entry ?: "w" sgml-parser-syntax))

and

(eval-after-load "psgml-parse"
  '(modify-syntax-entry ?_ "_" sgml-parser-syntax))


That second one is the one I inherited. It's interesting it does not
use "w" but "_", which stands, according to the documentation, for a
"symbol constituent". Well, what might be the difference ... ?

(Incidently, I've met with a second peculiarity that was not so
apparent when fontifying stopped at colons: in empty XML elements,
(e. g. "<empty/>"), fontifying now stops before the closing angle
bracket, i. e. includes the slash but not the ">". On second thought,
it seems, it resolves to fontifying the ">" as well - you can get it
to do so by inserting a space somewhere there, and then deleting
it. Then every closing delimiter (I believe that was more or less the
technical term) of an empty element from that position on downwards in
the file will be fontified, too, if you run the cursor over it. But
not above that position! Well, but that's funny, but harmless.)


Thanks also for the swift reply!

-- 
                                               Florian von Savigny
__________________________________________________________________
[email protected]



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click