help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a nXhtml untag element function?


From: Andy Lech
Subject: Re: Is there a nXhtml untag element function?
Date: Wed, 8 Aug 2007 10:03:16 -0700


Thank you for getting out an update so quickly.  It works but there is a problem with undo when nxml-untag-select = yes (or Ask with yes).

Here's what happened:

1.  Upgraded to Emacs-22-CvsP070523-EmacsW32-1.54 and nxhtml-1.04-070808-01_46_58.  (Thought I had the latest EmacsW32 but I was wrong.)
2.  Created this simple file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Testing nxml-untag-element</title>
  </head>

  <body>
    <h1>Testing nxml-untag-element</h1>

    <b><u>Bold and underlined</u></b>
  </body>
</html>

3.  Called nxml-untag-element inside the H1 tag and it removed the start and end tags correctly.
4.  Called undo and it restored the H1 start tag but not the end tag.
5.  Repeated 3 and 4 on the U tag inside the B tag.  Should have done the same thing and it did.
6.  Looked at the help for nxml-untag-element and found nxml-untag-select.
7.  Set nxml-untag-select to no
8.  Repeated 3 and 4.  This time it did restore the end tag.

Leaving nxml-untag-select = no works fine for my purposes, but let me know when you have an update or need more beta testing.

Thanks again,
Andy

reply via email to

[Prev in Thread] Current Thread [Next in Thread]