emacs-devel
[Top][All Lists]
Advanced

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

Re: Space after inline comment char


From: Bill Wohler
Subject: Re: Space after inline comment char
Date: Tue, 18 Apr 2006 10:09:20 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>>>> That's easy: change comment-start from ";" to "; ".
>>>> Then commenting at the beginning of a line will not work correctly
>>>> anymore.
>>> What makes you think so?
>>> AFAIK, the only side-effect it'll have is that there won't be a difference
>>> between a comment-padding set to 1 or to 0.
>
>> Try
>> emacs -Q -eval '(progn (setq comment-start "; ") (insert "foo\n") 
>> (comment-region (point-max) (point-min)))'
>
>> That will result in
>> ; foo
>> whereas it should be
>> ;; foo
>
> Good point.  I believe the patch below has fixed it,

Yes, it has. Thanks!

Still, if most people insert a space after running M-;--as the sources
seem to indicate--it seems like including the space in the default for
comment-start is good usability. Plus it will help keep the look of
the comments in Emacs consistent, which is a good thing.

-- 
Bill Wohler <address@hidden>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.





reply via email to

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