From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: auto-fill bug Date: Mon, 11 Feb 2008 12:32:13 +0000 Message-ID: <20080211123213.GA16689@atlantic.linksys.moosehall> Reply-To: Adam Spiers Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOXpa-0003PM-SI for emacs-orgmode@gnu.org; Mon, 11 Feb 2008 07:32:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOXpa-0003P3-ET for emacs-orgmode@gnu.org; Mon, 11 Feb 2008 07:32:18 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOXpa-0003Ov-45 for emacs-orgmode@gnu.org; Mon, 11 Feb 2008 07:32:18 -0500 Received: from mail.beimborn.com ([70.84.38.100]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JOXpZ-0007NO-MD for emacs-orgmode@gnu.org; Mon, 11 Feb 2008 07:32:17 -0500 Received: from mail.beimborn.com (localhost.localdomain [127.0.0.1]) by mail.beimborn.com (8.12.11.20060308/8.12.8) with ESMTP id m1BCWGWO003559 for ; Mon, 11 Feb 2008 06:32:16 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by mail.beimborn.com (8.12.11.20060308/8.12.11/Submit) id m1BCWGM6003553 for emacs-orgmode@gnu.org; Mon, 11 Feb 2008 12:32:16 GMT Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list I just found some strange behaviour with auto-fill mode on: --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- #+TITLE: test title * First heading - Turn this into a long sentence to see the bug. --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- If you extend the sentence by adding only words and spaces, when it wraps, indentation is broken and a # appears from nowhere: --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- #+TITLE: test title * First heading - Turn this into a long sentence to see the bug. Or you can start a #new sentence; either way you get that strange #-prefixed outdentation. --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- The odd thing is that if there is nothing in the buffer after the point when you start (not even a newline) then the bug vanishes. Reproduced with a recent git clone claiming to be 5.20, and also with 5.17. Thanks!