From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: auto-fill bug Date: Sat, 01 Sep 2012 22:05:47 +0200 Message-ID: <87a9x9cxus.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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 ) 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 ) 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 ; Sat, 01 Sep 2012 13:09:43 -0700 (PDT) In-Reply-To: (Samuel Wales's message of "Sat, 1 Sep 2012 11:44:06 -0700") 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: Samuel Wales Cc: emacs-orgmode@gnu.org Hello, Samuel Wales 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