all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andy Lech" <andylech@gmail.com>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Is there a nXhtml untag element function?
Date: Wed, 8 Aug 2007 10:03:16 -0700	[thread overview]
Message-ID: <4d08d6110708081003g152a7dbbqf9ad7757b976f70e@mail.gmail.com> (raw)
In-Reply-To: <46B9057C.9000502@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1276 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1837 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  reply	other threads:[~2007-08-08 17:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-05 19:53 Is there a nXhtml untag element function? andylech
2007-08-07 10:34 ` Lennart Borgman (gmail)
2007-08-07 23:51   ` Lennart Borgman (gmail)
2007-08-08 17:03     ` Andy Lech [this message]
2007-08-08 22:51       ` Lennart Borgman (gmail)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4d08d6110708081003g152a7dbbqf9ad7757b976f70e@mail.gmail.com \
    --to=andylech@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.