From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-fill-paragraph invoked on column 0 Date: Wed, 01 Aug 2012 00:42:34 +0200 Message-ID: <87r4rrk0x1.fsf@gmail.com> References: <87wr1kly1b.fsf@gmail.com> <874nonlpsv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwLCd-00071S-G3 for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 18:46:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwLCc-0001ry-KK for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 18:46:11 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:45293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwLCc-0001rt-EB for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 18:46:10 -0400 Received: by weys10 with SMTP id s10so5310402wey.0 for ; Tue, 31 Jul 2012 15:46:09 -0700 (PDT) In-Reply-To: (Michael Brand's message of "Tue, 31 Jul 2012 22:01:00 +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: Michael Brand Cc: Org Mode Hello, Michael Brand writes: > In my override my-org-fill-paragraph, improved over the one in an > earlier post I use > > #+BEGIN_SRC emacs-lisp > (save-excursion > (org-end-of-item) > (re-search-backward "[^[:space:]]") > ;; [...] > #+END_SRC > > to achieve this. It doesn't work as you expect. Try it with the following example: --8<---------------cut here---------------start------------->8--- - line 1 line 2 line 3 line 4 --8<---------------cut here---------------end--------------->8--- Regards, -- Nicolas Goaziou