From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matti De Craene Subject: Re: [Patch] M-Right and M-Left behave differently on headings and list items Date: Wed, 21 Apr 2010 22:27:07 +0200 Message-ID: References: <42881A23-3B5E-4423-B068-F543CE5B6AA7@gmail.com> <87ljchrkwp.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4gVx-00021e-52 for emacs-orgmode@gnu.org; Wed, 21 Apr 2010 16:27:17 -0400 Received: from [140.186.70.92] (port=52691 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4gVu-0001wP-GI for emacs-orgmode@gnu.org; Wed, 21 Apr 2010 16:27:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4gVq-00012P-Je for emacs-orgmode@gnu.org; Wed, 21 Apr 2010 16:27:14 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:42939) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4gVq-00011L-2n for emacs-orgmode@gnu.org; Wed, 21 Apr 2010 16:27:10 -0400 Received: by wyg36 with SMTP id 36so1081810wyg.0 for ; Wed, 21 Apr 2010 13:27:08 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org, Bastien Hello Carsten and others, > If you are calling for more consistency, maybe this "feature" should > go as well? I do not have a strong opinion on this. In (my) day-to-day use of org-mode, cases in which the difference between having a lock or not matters rarely do occur. If consistency here is important, then it seems more sensible to me to have the lock for headings as well, instead of removing it for list items. When I grab a chunk of text to move back and forth, I do not expect it to suddenly get hands and grab other pieces of text :-) I've discovered a bug in my patch today: M-Right and M-Left on collapsed items take the complete subtree. On collapsed headings they only take the current heading. I'm not sure what would be the desired behaviour here... Kind Regards, Matti On Wed, Apr 21, 2010 at 3:54 PM, Carsten Dominik wrote: > > On Apr 21, 2010, at 3:32 PM, Bastien wrote: > >> Carsten Dominik writes: >> >>> do others agree with Matti's view? >> >> FWIW, I do. > > There is still another difference. > > Currently, when I execute the indentation command > several times in a row, the range to which this applies > is locked. > > So for example" > > =A0 =A0 - level 1a > =A0 =A0 =A0 =A0- level 2a > =A0 =A0 =A0 =A0- level 2b > =A0 =A0 =A0 =A0- level 2c > =A0 =A0 - level 1b > > If I now go on level 1a and use M-S-left, level 1b becomes a sibling > of 2c. =A0If I immediately after this do M-S-right, 1b should be indented > along with 2c, but this does not happen because the item range is > locked. =A0If, however, you do something in between, like moving the > cursor by one character, 1b will be included. > > I believe I did this a long time ago, because I felt that not locking > the range for commands in direct succession would too quickly modify > the structure, including at places outside of the current view ( > beyond the window end) > > If you are calling for more consistency, maybe this "feature" should > go as well? > > - Carsten > >