From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Comments in Org-mode Date: Wed, 15 Jul 2009 09:35:00 -0500 Message-ID: <877hyaqajv.fsf@fastmail.fm> References: <20090715000930.GC4210@laflaca.Stanford.EDU> <20090715004451.GB21248@thinkpad.adamsinfoserv.com> <877hya7nnf.fsf@kassiopeya.MSHEIMNETZ> <927aeeaf0907142045o10d4a246p95c4f6b979921449@mail.gmail.com> <20090715045229.GA1761@thinkpad.adamsinfoserv.com> <20524da70907142206m1550a830p21afb1cabc9a2593@mail.gmail.com> <927aeeaf0907142223q726152e6kbc95c0d2c777e2d4@mail.gmail.com> 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 1MR5XJ-0003C4-7o for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 10:32:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MR5XE-000396-Gp for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 10:32:44 -0400 Received: from [199.232.76.173] (port=37565 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR5XE-00038u-7r for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 10:32:40 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:46304) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MR5XD-00054u-R7 for emacs-orgmode@gnu.org; Wed, 15 Jul 2009 10:32:39 -0400 In-Reply-To: <927aeeaf0907142223q726152e6kbc95c0d2c777e2d4@mail.gmail.com> (Manuel Amador's message of "Tue, 14 Jul 2009 22:23:23 -0700") 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: amador@stanford.edu Cc: emacs-orgmode@gnu.org Manuel Amador writes: > I think I have found a bug (or a feature!). Sometimes when > writing documents I tend to comment out a line by adding a "#" > in the column 0. However, after doing this in a line at the > middle of the document, I get the following behavior: > > ------------------------------------------------------------ > * Random stuff > > Some initial things. > > # Then I comment this line out > > But when I keep writing a sufficiently long line such that > # the cursor moves to the next line, a "#" character creeps in! > # and will keep appearing for the remainder of the document. > ---------------------------------------------------------- I cannot duplicate the problem (but only partially). I experienced extra comment lines inserted only when there was no space between the initial comment line and the uncommented line, i.e.: --8<---------------cut here---------------start------------->8--- # Then I comment this line out But when I keep writing a sufficiently long line such that # the cursor moves to the next line, a "#" character creeps in! # and will keep appearing for the remainder of the document. --8<---------------cut here---------------end--------------->8--- I did not experience extra comment lines in lines further down the text. I'm running the latest git org-mode and a recent development emacs -- GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.16.2) of 2009-07-01 -- on archlinux. > Samuel, > > Thanks for replying. The thread that you mentioned however, seems to > be concerned with a different issue. > > My issue shows up not just in a line right after a commented line, but > could happen anywhere later in the text. That is, after the > comment-region command is used, every time a new line is automatically > created, it starts with #. http://article.gmane.org/gmane.emacs.orgmode/13312 I can confirm that Samuel's advice above offers an interim fix for the problem I was experiencing (i.e., comment lines added on filled lines when there was no empty line between the initial commented line and the subsequent uncommented line --- now that's a mouthful!). I'm not sure whether the fix addresses the problem of unwanted comment lines father down in the text (which I could not replicate). Best, Matt