emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matti De Craene <mattidecraene@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org, Bastien <bastien.guerry@wikimedia.fr>
Subject: Re: [Patch] M-Right and M-Left behave differently on headings and list items
Date: Wed, 21 Apr 2010 22:27:07 +0200	[thread overview]
Message-ID: <l2xe4f0b2511004211327h843b7f1cw5a0736e9e16703e7@mail.gmail.com> (raw)
In-Reply-To: <DB9259E9-2849-4A4F-B404-C6A3DE99665D@gmail.com>

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
<carsten.dominik@gmail.com> wrote:
>
> On Apr 21, 2010, at 3:32 PM, Bastien wrote:
>
>> Carsten Dominik <carsten.dominik@gmail.com> 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"
>
>     - level 1a
>        - level 2a
>        - level 2b
>        - level 2c
>     - level 1b
>
> If I now go on level 1a and use M-S-left, level 1b becomes a sibling
> of 2c.  If 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.  If, 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
>
>

  parent reply	other threads:[~2010-04-21 20:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 22:29 [Patch] M-Right and M-Left behave differently on headings and list items Matti De Craene
2010-04-21 12:53 ` Carsten Dominik
2010-04-21 13:19   ` Sébastien Vauban
2010-04-21 13:27   ` Anthony Lander
2010-04-21 13:32   ` Bastien
2010-04-21 13:54     ` Carsten Dominik
2010-04-21 14:04       ` Bernt Hansen
2010-04-21 14:44       ` Dan Davison
2010-04-22 16:02         ` Carsten Dominik
2010-04-23  8:26           ` Carsten Dominik
2010-04-21 20:27       ` Matti De Craene [this message]
2010-04-21 21:07         ` Carsten Dominik
2010-04-22 10:15           ` Bastien
2010-04-22 20:37             ` Matti De Craene
2010-04-23  8:26             ` Carsten Dominik
2010-04-26 22:07               ` Matti De Craene
2010-04-27  5:57                 ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=l2xe4f0b2511004211327h843b7f1cw5a0736e9e16703e7@mail.gmail.com \
    --to=mattidecraene@gmail.com \
    --cc=bastien.guerry@wikimedia.fr \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).