From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Subject: `orgstruct++-mode',`fill-paragraph', and `mail-mode' Date: Fri, 27 Sep 2013 19:19:22 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPda6-0005pP-Ho for emacs-orgmode@gnu.org; Fri, 27 Sep 2013 15:20:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPdZz-0008OB-6V for emacs-orgmode@gnu.org; Fri, 27 Sep 2013 15:20:02 -0400 Received: from plane.gmane.org ([80.91.229.3]:56465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPdZz-0008Ny-0g for emacs-orgmode@gnu.org; Fri, 27 Sep 2013 15:19:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VPdZl-0005hH-Qj for emacs-orgmode@gnu.org; Fri, 27 Sep 2013 21:19:52 +0200 Received: from vaf26-3-88-162-208-155.fbx.proxad.net ([88.162.208.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Sep 2013 21:19:41 +0200 Received: from jlr_0 by vaf26-3-88-162-208-155.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Sep 2013 21:19:41 +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: emacs-orgmode@gnu.org I like the intuitive way the Org mode structure editing and list formatting works. Thus I turn it on in mail-mode with (add-hook 'mail-mode-hook 'turn-on-orgstruct) This works alright. But when I use `orgstruct++-mode' (add-hook 'mail-mode-hook 'turn-on-orgstruct++) Then `fill-paragraph' (M-q) doesn't behave correctly anymore when applied to the paragraph right below the `mail-header-separator' ("--text follows this line--"). All the above lines get rearranged. I just realized that with `orgstruct-mode' the regexp `paragraph-separate' contains the `mail-header-separator', whereas with `orgstruct++-mode' this regexp does NOT contain the `mail-header-separator'. The value of `paragraph-separate' is predefined in `sendmail.el'. `orgstruct-mode' appends new regexps to `paragraph-separate', whereas `orgstruct++-mode' replaces the initial value (given within `sendmail.el') by orgmode specific ones. -- Rene