From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Similar key bindings for moving among tags in sgml and nxml modes? Date: Thu, 26 Nov 2009 02:32:55 +0100 Message-ID: References: <87skc2p11k.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259199226 9501 80.91.229.12 (26 Nov 2009 01:33:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 01:33:46 +0000 (UTC) Cc: Emacs-Devel devel To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 26 02:33:39 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NDTEn-0007bJ-Li for ged-emacs-devel@m.gmane.org; Thu, 26 Nov 2009 02:33:37 +0100 Original-Received: from localhost ([127.0.0.1]:57199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDTEn-0001rB-7u for ged-emacs-devel@m.gmane.org; Wed, 25 Nov 2009 20:33:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDTEY-0001kR-3O for emacs-devel@gnu.org; Wed, 25 Nov 2009 20:33:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDTET-0001hd-E9 for emacs-devel@gnu.org; Wed, 25 Nov 2009 20:33:21 -0500 Original-Received: from [199.232.76.173] (port=33128 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDTET-0001hW-7a for emacs-devel@gnu.org; Wed, 25 Nov 2009 20:33:17 -0500 Original-Received: from mail-yx0-f175.google.com ([209.85.210.175]:63541) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDTER-0002Ix-Vw; Wed, 25 Nov 2009 20:33:16 -0500 Original-Received: by yxe5 with SMTP id 5so322837yxe.24 for ; Wed, 25 Nov 2009 17:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=8gyma0PDm+vqd5EXfR5j+KHr4xvQf8K5tgj36MGvluk=; b=bqa6F/KUqVX4eNzZXL+PxZjHY43lbRVaUXEiZbBVQJXTUCwlnfOlkMSnan3FZfPiwv XmxuFtinzAhILc/vntqhWymtoNnJIUeR2AXf7bTgDvj1+tc/UflFz+Vc+2mVx+tFyrN9 ifDvsw34ME9qfi+YjDPJh0V50edlM6vgitbKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=hEsGAyEEMJV966RCgB7l6cvHu3xpjd6Y/KS4UsH5jfQ7EwdFIgY1U4I2Pz5M8Dw2Hc xpkvm7Huw7RXzkCaxbbJEPkUAOSrz9Upe3PJU9UNR/DUHzYdUVQiJ5TO3AZNv/b+lxYW VlXkd5kFiNaaF9Bcpyzb1uiv/egJIR9u/hpGo= Original-Received: by 10.101.133.26 with SMTP id k26mr752492ann.131.1259199195235; Wed, 25 Nov 2009 17:33:15 -0800 (PST) In-Reply-To: <87skc2p11k.fsf@catnip.gol.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117799 Archived-At: On Thu, Nov 26, 2009 at 1:44 AM, Miles Bader wrote: > Lennart Borgman 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. =C2=A0The right way i= s 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: =C2=A0(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?