From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Make M-up and M-down transpose paragraphs in org buffers Date: Tue, 28 Jun 2011 20:44:42 +0200 Message-ID: <87sjqtpzhh.fsf@gmail.com> References: <8762np7ua7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbdHI-00079Y-PT for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 14:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbdHH-0005nV-6M for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 14:44:52 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:39483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbdHG-0005nN-RF for emacs-orgmode@gnu.org; Tue, 28 Jun 2011 14:44:50 -0400 Received: by wyg36 with SMTP id 36so444210wyg.0 for ; Tue, 28 Jun 2011 11:44:48 -0700 (PDT) In-Reply-To: <8762np7ua7.fsf@gnu.org> (Bastien's message of "Tue, 28 Jun 2011 19:14:24 +0200") 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: Bastien Cc: emacs-orgmode@gnu.org, Paul Sexton Hello, Bastien writes: > 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? Imo, a clean way to implement this (because it would also simplify existing functions) would be to define a forward paragraph-function for Org. It isn't difficult, but it raises some questions that need to be answered. For example, should forward-paragraph move into constructs or skip them. I.e. if point is outside a block and that block contains paragraphs, should forward-paragraph skip the block or move inside? Regards, -- Nicolas Goaziou