From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Org suggestion: option which allows moving subtrees freely Date: Tue, 11 Aug 2009 14:04:50 +0200 Message-ID: <87prb2a74t.fsf@thinkpad.tsdh.de> References: <7E8FF335-50C9-4813-ADEF-B49B9333DFFE@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Maq6D-0008Cx-AM for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 08:05:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Maq68-000898-Nn for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 08:05:05 -0400 Received: from [199.232.76.173] (port=42719 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Maq68-000895-Jf for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 08:05:00 -0400 Received: from main.gmane.org ([80.91.229.2]:60595 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Maq68-00087S-1y for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 08:05:00 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Maq64-0004b7-N1 for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 12:04:56 +0000 Received: from 141.26.94.118 ([141.26.94.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Aug 2009 12:04:56 +0000 Received: from tassilo by 141.26.94.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Aug 2009 12:04:56 +0000 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: emacs-orgmode@gnu.org PT writes: Hi! >> So it would spare at least an M-left for the user which doesn't seem >> much, but small things add up in the long run. >> > > Maybe the M-right part wouldn't be too hard either. If above the moved > up header (which is now at the same level as its previous parent > header after an automatic M-left) there is an other header on the same > level then it could be put under it with an automatic M-right. > > It could spare 2 keypresses which would be a real improvement. I can't see that this would be a big improvement. If you want to move the subtree that far away that the number of keystrokes invoced makes a difference, then probably you should have used refiling in the first run. At least I'm one of those that would accidentially destroy the document structure with such an automatic reparenting. ;-) Well, as optional feature I don't have an opinion. But I think you could add an around advice to `org-metaup' to get that behavior. Simply ad-do-it and catch a possible error. If there was none, you are ok. If there was one, you have to call `org-metaleft' followed by `org-metaup' again. Bye, Tassilo