emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: amador@stanford.edu
Cc: emacs-orgmode@gnu.org
Subject: Re: Comments in Org-mode
Date: Wed, 15 Jul 2009 09:35:00 -0500	[thread overview]
Message-ID: <877hyaqajv.fsf@fastmail.fm> (raw)
In-Reply-To: <927aeeaf0907142223q726152e6kbc95c0d2c777e2d4@mail.gmail.com> (Manuel Amador's message of "Tue, 14 Jul 2009 22:23:23 -0700")

Manuel Amador <amador.manuel@gmail.com> 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

  parent reply	other threads:[~2009-07-15 14:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-15  0:09 Comments in Org-mode Manuel Amador
2009-07-15  0:44 ` Russell Adams
2009-07-15  1:14   ` Sebastian Rose
2009-07-15  3:45     ` Manuel Amador
2009-07-15  4:52       ` Russell Adams
2009-07-15  5:06         ` Samuel Wales
2009-07-15  5:23           ` Manuel Amador
2009-07-15  5:26             ` Samuel Wales
2009-07-15 14:35             ` Matthew Lundin [this message]
2009-07-15 16:03               ` Samuel Wales
2009-07-15 16:23                 ` Manuel Amador
2009-07-15 17:15               ` Sebastian Rose
2009-07-15 17:48                 ` Manuel Amador
2009-07-15 11:15       ` Sebastian Rose
2009-08-03  4:29       ` Carsten Dominik
2009-08-03 22:43         ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877hyaqajv.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=amador@stanford.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).