From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: Moving paragraphs instead of lines Date: Sun, 17 Feb 2008 17:16:53 +0000 Message-ID: <20080217171653.GA13568@atlantic.linksys.moosehall> References: <47B4237E.9060007@calicojack.co.uk> Reply-To: Adam Spiers 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 1JQn8P-0000Qm-HC for emacs-orgmode@gnu.org; Sun, 17 Feb 2008 12:17:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQn8N-0000Of-W3 for emacs-orgmode@gnu.org; Sun, 17 Feb 2008 12:17:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQn8N-0000Oa-Nt for emacs-orgmode@gnu.org; Sun, 17 Feb 2008 12:16:59 -0500 Received: from mail.beimborn.com ([70.84.38.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JQn8N-0005Er-64 for emacs-orgmode@gnu.org; Sun, 17 Feb 2008 12:16:59 -0500 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id m1HHGviI017725 for ; Sun, 17 Feb 2008 11:16:57 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id m1HHGvgK017719 for emacs-orgmode@gnu.org; Sun, 17 Feb 2008 17:16:57 GMT Content-Disposition: inline In-Reply-To: <47B4237E.9060007@calicojack.co.uk> 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 On Thu, Feb 14, 2008 at 11:18:22AM +0000, Rick Moynihan wrote: > When the cursor is positioned within a paragraph would M- and > M- not be better set to move the current paragraph above or below > it's surrounding paragraphs respectively? > > e.g. When the point is positioned in the following outline, would a > M- not be better moving the foo paragraph above the bar one, rather > than just repositioning the 6-foo line? > > * Outline > > bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar > bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar bar > bar bar bar bar bar > > foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo > foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo > foo foo foo foo foo foo | <-- point > > I could see such operations being restricted to only operate with the > current outline level. I realise the M-/ behaviour when on an > outline is correct, but I see little need in repositioning lines within > a paragraph if the user is using M-q to wrap paragraphs, as I do. > Moving the paragraph here would surely make more sense. If anything, I would actually vote for the entire outline heading being moved within the outline structure, since emacs already provides plenty of functionality with regards to normal text editing (`transpose-lines', `transpose-paragraphs', `mark-paragraph' etc.).