From mboxrd@z Thu Jan  1 00:00:00 1970
From: Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: auto-fill bug
Date: Sat, 01 Sep 2012 22:05:47 +0200
Message-ID: <87a9x9cxus.fsf@gmail.com>
References: <CAJcAo8tTLNXjpUDZ4zEzvGzoeZ6TTTVrU=2pTPMdnebAdM4PQA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([208.118.235.92]:37274)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n.goaziou@gmail.com>) id 1T7u0n-0007HK-CY
	for emacs-orgmode@gnu.org; Sat, 01 Sep 2012 16:09:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <n.goaziou@gmail.com>) id 1T7u0m-0005ju-FZ
	for emacs-orgmode@gnu.org; Sat, 01 Sep 2012 16:09:45 -0400
Received: from mail-wg0-f49.google.com ([74.125.82.49]:55092)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <n.goaziou@gmail.com>) id 1T7u0m-0005jn-8t
	for emacs-orgmode@gnu.org; Sat, 01 Sep 2012 16:09:44 -0400
Received: by wgbdt14 with SMTP id dt14so2521140wgb.30
	for <emacs-orgmode@gnu.org>; Sat, 01 Sep 2012 13:09:43 -0700 (PDT)
In-Reply-To: <CAJcAo8tTLNXjpUDZ4zEzvGzoeZ6TTTVrU=2pTPMdnebAdM4PQA@mail.gmail.com>
	(Samuel Wales's message of "Sat, 1 Sep 2012 11:44:06 -0700")
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org

Hello,

Samuel Wales <samologist@gmail.com> writes:

> I expect "I can't reproduce this" but wanted to document it.

#+BEGIN_SRC emacs-lisp
(defun ngz-handle-bug-reports ()
  (when (save-excursion (message-goto-to)
                        (beginning-of-line)
                        (looking-at ".*Samuel Wales"))
    (insert "I can't reproduce this\n")
    (message-send-and-exit)))
#+END_SRC

> Often when I press SPC beyond fill-column, the new Org filling mechanism
> inserts " " at bol.  fill-paragraph works fine.
>
> A buggy fill-prefix is returned by org-adaptive-fill-function on this line:
>
> 		    ((looking-at "[ \t]*") (match-string 0))
>
> That's all I know.

Indeed. This regexp is obviously wrong. I've pushed a fix. Hopefully, it
should solve the problem at hand. Pleas tell me if it doesn't.

Thank you for the report.


Regards,

-- 
Nicolas Goaziou