emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with comment-start


From: Stefan
Subject: Re: problem with comment-start
Date: Sat, 18 Sep 2004 14:50:03 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin)

> In plain text mode, setting the variable `comment-start' to, say, ">",

If you just set comment-start to ">", you're saying "a > anywhere on a line
starts a comment which ends at the next LF".  Which implies that filling
a line like:

   This is a test with comment-start which starts on the >right side<, and 
which causes strange indentation

should not result in

   This is a test with comment-start which starts on the >right side<, and
   which causes strange indentation

since that would means that fill-paragraph has moved "which causes strange
indentation" outside of the comment, thus completely changed the semantic
content of the buffer.

I.e. you get what you ask for.  If that's not what you want, then set
comment-start-skip explicitly (rather than let the comment code guess it
based on comment-start) to something like "^> *" so as to make it clear that
a ">" only starts a comment if it's at the beginning of a line.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]