This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to terminate XML tags in emacs


  as a final efficiency for typing in my XML, i'd like
to add an emacs function to auto-terminate tags, as one
can do in emacs+psgml.  (i don't know enough about psgml
to see how it does it, but i don't need all of psgml --
just this one feature.)

  all i want to be able to do is, with a control sequence
(from psgml, what was it?  C-c / or just C-/), be able
to close the innermost element, that's all.

  i don't even care if it validates the element first,
i just want to add a function that looks backwards for 
the last <blah> and adds </blah> at that point, regardless
of what "blah" actually says.

  can anyone just supply a function to do that that i
can add to my .emacs file?

rday



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]