Is there a complete and re-open (super C-c C-f)?

Asked by Daniel Thompson

I'm very pleased with nxhtml and was pondering if there were any ways in which a WYSIWYG editor is more productive. One thing that struck me was handling paragraph or list endings.

In other words when we are here:

--- cut here ---
  <p>
    First paragraph is about to end.
--- cut here ---

We don't just want the closing tag (C-c C-f) we also want to re-open the same tag and get ready to enter more text. The same applied to <li> and other similar tags.

Basically I'd just like to know if this already exists? I'd watched the completion video (which I enjoyed) and concluded no but thought I'd ask anyway.

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Thompson
Solved:
Last query:
Last reply:
Revision history for this message
lborgman (lennart-borgman) said :
#1

Hi Daniel,

Thanks, that looks like a good idea. There is nothing like that currently.

I am not sure what to do about it at the moment. Since the closing of a tag depends on nxml-mode I might take this to Emacs developers mailing list and see if something like that can be added to nxml-mode (and perhaps other similar modes).

Revision history for this message
Daniel Thompson (daniel-thompson) said :
#2

Thanks for the reply. That would certainly explain why I didn't find the completion code when I looked. I'm not on any emacs lists at present but guess maybe I ought to be.

Perhaps its even time for me to learn elisp...

Revision history for this message
nurikabe (nurikabe) said :
#3

Great idea. I would love to see this feature as well.