From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: Is there a nXhtml untag element function? Date: Wed, 08 Aug 2007 01:51:24 +0200 Message-ID: <46B9057C.9000502@gmail.com> References: <1186343615.904525.79050@i38g2000prf.googlegroups.com> <46B84AA2.4040001@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186530716 29392 80.91.229.12 (7 Aug 2007 23:51:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 23:51:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: andylech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 08 01:51:52 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IIYq6-0007bD-1d for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Aug 2007 01:51:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIYq5-00041o-ER for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2007 19:51:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIYpn-00041h-LB for help-gnu-emacs@gnu.org; Tue, 07 Aug 2007 19:51:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIYpm-00041S-E3 for help-gnu-emacs@gnu.org; Tue, 07 Aug 2007 19:51:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIYpm-00041P-80 for help-gnu-emacs@gnu.org; Tue, 07 Aug 2007 19:51:30 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IIYpl-0002Cf-OC for help-gnu-emacs@gnu.org; Tue, 07 Aug 2007 19:51:29 -0400 Original-Received: from c83-254-133-189.bredband.comhem.se ([83.254.133.189]:61521 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1IIYpj-00041B-5U; Wed, 08 Aug 2007 01:51:28 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 In-Reply-To: <46B84AA2.4040001@gmail.com> X-Antivirus: avast! (VPS 000764-1, 2007-08-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.133.189 X-Scan-Result: No virus found in message 1IIYpj-00041B-5U. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1IIYpj-00041B-5U 096ec132a1a9abb8d0761997b432fb3f X-Detected-Kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46391 Archived-At: Lennart Borgman (gmail) wrote: > andylech wrote: >> I recently switched back to GNU Emacs after I found out about EmacsW32 >> and nXhtml. >> >> I like both a lot but one of the things that drives me crazy about >> nXhtml is that there doesn't seem to be anything like sgml-untag- >> element from PSGML. All it does is remove the start and end tags >> around the current element, but I would think it has to be one of the >> most important functions in any HTML/XHTML editing package. I've >> looked all over and I can't find anything like it. > > Thanks for your suggestion. I will take a look at it as soon as I can. I have added the function nxml-untag-element and bound it to C-c - as in psgml. I noticed there was a function in psgml to rename tags too. nxml-untag-element is supposed to take care of that too by selecting the old element. Andy, could you please test the latest beta at http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/ and tell me how it works for you?