Re: Re: C-c C--

Dave Pawson <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
On 8 April 2011 22:22, gavenkoa <[email protected]> wrote:
> Dave Pawson <dave.pawson@...> wrote:
>> In xml-mode C-c C-- used to remove markup.
>>
>> Has anyone got that working with nxml-mode please?
>>
> Do you meen:
>
> C-c C-d
>    Delete the tag at or after point, and delete the matching tag too (sgml-delete-tag). If the tag at or after point is an opening tag, delete the closing tag too; if it is a closing tag, delete the opening tag too.
>
> I not found C-c C-- in xml-mode, but I use C-c C-d (sgml-delete-tag) from 'sgml-mode.el'.
>
> I miss this func in nxml mode. I try this and it does not properly work in nxml:
>
> (eval-after-load 'nxml-mode
>  (progn
>    (require 'sgml-mode)
>    (define-key nxml-mode-map (kbd "C-c C-y") 'sgml-delete-tag)
>    ))

I have C-c C-- linked to sgml-untag-element.

I changed mode to sgml-mode and used that.

Many defuns involved in bringing it into nxml-mode though.

Very useful function.


regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.