emacs-devel
[Top][All Lists]
Advanced

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

Re: Similar key bindings for moving among tags in sgml and nxml modes?


From: Lennart Borgman
Subject: Re: Similar key bindings for moving among tags in sgml and nxml modes?
Date: Thu, 26 Nov 2009 02:32:55 +0100

On Thu, Nov 26, 2009 at 1:44 AM, Miles Bader <address@hidden> wrote:
> Lennart Borgman <address@hidden> writes:
>> I have these routines for moving between tags. I saw now that there
>> are rather similar sgm functions. Could we please add the same key
>> bindings to nxml-mode that are used in sgml modes for these?
>
> No, adding different key bindings is the wrong way.  The right way is to
> make emacs sexp-movement commands (which are even already bound globally
> to the keys you suggest) work properly in nxml-mode .
>
> ... and in fact, that's already supported!
>
> Just do:  (setq nxml-sexp-element-flag t)
>
> [I think that should even be the default, but what do I know...]


Thanks. I forgot that flag. I agree it should be on by default.


I think you are right that using the sexp movement is the best. But
what about html-mode/sgml-mode then? Is there also some flag to set to
get this behaviour?




reply via email to

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