From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Max Rydahl Andersen" Subject: Re: avoiding "First item of list cannot move without its subtree" Date: Tue, 21 Feb 2017 17:07:13 +0100 Message-ID: <31A5D5FB-7629-4A6A-9727-D419A7D8096D@redhat.com> References: <2F92B854-9322-45EA-8753-A6CAA3717974@redhat.com> <87h93oygic.fsf@nicolasgoaziou.fr> <87tw7ovvkc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_65E94CD9-E959-4EC8-A4CC-20614CEBCC92_=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgCyH-0005TA-Vg for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 11:07:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgCyE-00041D-LC for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 11:07:21 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:33006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgCyE-0003zn-EN for emacs-orgmode@gnu.org; Tue, 21 Feb 2017 11:07:18 -0500 Received: by mail-wm0-f41.google.com with SMTP id t18so29997759wmt.0 for ; Tue, 21 Feb 2017 08:07:17 -0800 (PST) In-Reply-To: <87tw7ovvkc.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Org-mode --=_MailMate_65E94CD9-E959-4EC8-A4CC-20614CEBCC92_= On 21 Feb 2017, at 8:42, Nicolas Goaziou wrote: > Hello, > > "Max Rydahl Andersen" writes: > >> Might be - but seems it fits very naturally to be able to at least >> allow to move list items outside its parent. >> >> Don't get me wrong - I like it defaults to stopping, but would prefer >> it would ask or let me do shift + left + left to override or something >> similar. > > IMO, the current behaviour is the right one. > > However, you can advice, e.g., `org-shiftmetaleft' so it catches the > error and calls `org-ctrl-c-star' instead. Any pointers on how to do this ? I tried this but no luck to get hooked in: ``` (defadvice org-fix-list-indent (around org-list-indent-item-generic) "Advise list indention to trigger creation of star instead" (message "DO MAGIC!") (ad-do-it) ) ``` But with this "DO MAGIC!" does not show up. /max http://about.me/maxandersen --=_MailMate_65E94CD9-E959-4EC8-A4CC-20614CEBCC92_= Content-Type: text/html Content-Transfer-Encoding: quoted-printable

On 21 Feb 2017, at 8:42, Nicolas Goaziou wrote:

H= ello,

"Max Rydahl Andersen" <manderse@redhat.com> writes:

Might be - = but seems it fits very naturally to be able to at least
allow to move list items outside its parent.

Don't get me wrong - I like it defaults to stopping, but would prefer it would ask or let me do shift + left + left to override or something similar.

IMO, the current behaviour is the right one.=

However, you can advice, e.g., `org-shiftmetaleft' so it catches the
error and calls `org-ctrl-c-star' instead.

Any pointers on how to do this ?

I tried this but no luck to get hooked in:

(defadvice org-fi=
x-list-indent
    (around org-list-indent-item-generic)
  "Advise list indention to trigger creation of star instead"
  (message "DO MAGIC!")
  (ad-do-it)
)

But with this "DO MAGIC!" does not show up.

/max
http://ab= out.me/maxandersen

--=_MailMate_65E94CD9-E959-4EC8-A4CC-20614CEBCC92_=--