From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Make M-up and M-down transpose paragraphs in org buffers Date: Tue, 28 Jun 2011 19:14:24 +0200 Message-ID: <8762np7ua7.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbc9X-0005Gd-CJ for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 13:32:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbc9V-0001RM-NZ for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 13:32:47 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:33001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbc9V-0001R7-9p for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 13:32:45 -0400 Received: by wyg36 with SMTP id 36so389428wyg.0 for ; Tue, 28 Jun 2011 10:32:44 -0700 (PDT) In-Reply-To: (Paul Sexton's message of "Tue, 21 Jun 2011 23:08:46 +0000 (UTC)") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Paul Sexton Cc: emacs-orgmode@gnu.org Hi Paul, Paul Sexton writes: > By default, if used within ordinary paragraphs in org mode, M-up and M-down > transpose *lines* (not sentences). This was not useful to me. To me neither. > The following > code makes these keys transpose paragraphs, keeping the point at the start > of the moved paragraph. Behaviour in tables and headings is unaffected. It > would be easy to modify this to transpose sentences. I like it, and have a patch to integrate this directly in org-metaup and org-metadown. There is one problem though: when you try to move down a paragraph when it is followed by a list, Emacs doesn't understand the list should be treated as a paragraph. Any idea on how to circumvent this? Or should we live with this and implement the solution? Thanks for this idea, -- Bastien