* M-x comment-region
@ 2007-12-22 21:08 Richard Stallman
2007-12-22 21:57 ` Miles Bader
2007-12-23 8:24 ` Tassilo Horn
0 siblings, 2 replies; 6+ messages in thread
From: Richard Stallman @ 2007-12-22 21:08 UTC (permalink / raw)
To: Tassilo Horn; +Cc: emacs-devel
I think I fixed the problem. M-x comment-region
for Lisp code should now use ;; if indenting a whole function
and ;;; if indenting just part of a function.
In the latter case there should be enough indentation after the ;;;
to prevent it from being treated as an outline header.
Does it work right, now?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: M-x comment-region
2007-12-22 21:08 M-x comment-region Richard Stallman
@ 2007-12-22 21:57 ` Miles Bader
2007-12-23 1:05 ` Stefan Monnier
` (2 more replies)
2007-12-23 8:24 ` Tassilo Horn
1 sibling, 3 replies; 6+ messages in thread
From: Miles Bader @ 2007-12-22 21:57 UTC (permalink / raw)
To: rms; +Cc: Tassilo Horn, emacs-devel
Richard Stallman <rms@gnu.org> writes:
> I think I fixed the problem. M-x comment-region
> for Lisp code should now use ;; if indenting a whole function
> and ;;; if indenting just part of a function.
Why is it ever necessary to use ";;;" for commenting out lisp code?
Other modes (e.g. c-mode and c++-mode) simply add comment markers
indented as if they were source code (apparently using the minimum
indentation of the commented-out lines); couldn't lisp-mode do the the
same thing using ";;" all cases?
[It's not that I object or anything, it's just that I'm confused as to
why there's so much fiddling around with comment-region in the specific
case of lisp-mode. I assume there must be _some_ reason, as
newcomment.el seem to go to a lot of trouble to do this...]
-Miles
--
Love is a snowmobile racing across the tundra. Suddenly it flips over,
pinning you underneath. At night the ice weasels come. --Nietzsche
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: M-x comment-region
2007-12-22 21:57 ` Miles Bader
@ 2007-12-23 1:05 ` Stefan Monnier
2007-12-23 21:12 ` Richard Stallman
2007-12-24 3:48 ` Ævar Arnfjörð Bjarmason
2 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2007-12-23 1:05 UTC (permalink / raw)
To: Miles Bader; +Cc: Tassilo Horn, rms, emacs-devel
> [It's not that I object or anything, it's just that I'm confused as to
> why there's so much fiddling around with comment-region in the specific
> case of lisp-mode. I assume there must be _some_ reason, as
> newcomment.el seem to go to a lot of trouble to do this...]
AFAIK, the only reason is that Richard *really* likes it this way.
I guess it was written on one of the ten tablets, or something like that.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: M-x comment-region
2007-12-22 21:57 ` Miles Bader
2007-12-23 1:05 ` Stefan Monnier
@ 2007-12-23 21:12 ` Richard Stallman
2007-12-24 3:48 ` Ævar Arnfjörð Bjarmason
2 siblings, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2007-12-23 21:12 UTC (permalink / raw)
To: Miles Bader; +Cc: tassilo, emacs-devel
Why is it ever necessary to use ";;;" for commenting out lisp code?
It isn't necessary, but it is best.
It is best because the commenting out is more visible this way.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: M-x comment-region
2007-12-22 21:57 ` Miles Bader
2007-12-23 1:05 ` Stefan Monnier
2007-12-23 21:12 ` Richard Stallman
@ 2007-12-24 3:48 ` Ævar Arnfjörð Bjarmason
2 siblings, 0 replies; 6+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2007-12-24 3:48 UTC (permalink / raw)
To: Miles Bader; +Cc: Tassilo Horn, rms, emacs-devel
Miles Bader <miles@gnu.org> writes:
> [It's not that I object or anything, it's just that I'm confused as to
> why there's so much fiddling around with comment-region in the specific
> case of lisp-mode. I assume there must be _some_ reason, as
> newcomment.el seem to go to a lot of trouble to do this...]
See "D.7 Tips on Writing Comments" in the Elisp manual for the
conventions that are used for different number of semicolons in Elisp
(and sometimes CL and Scheme) comments.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: M-x comment-region
2007-12-22 21:08 M-x comment-region Richard Stallman
2007-12-22 21:57 ` Miles Bader
@ 2007-12-23 8:24 ` Tassilo Horn
1 sibling, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2007-12-23 8:24 UTC (permalink / raw)
To: rms; +Cc: emacs-devel
Richard Stallman <rms@gnu.org> writes:
Hi Richard,
> I think I fixed the problem. M-x comment-region for Lisp code should
> now use ;; if indenting a whole function and ;;; if indenting just
> part of a function. In the latter case there should be enough
> indentation after the ;;; to prevent it from being treated as an
> outline header.
>
> Does it work right, now?
Yes, it does. Thanks a lot.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-12-24 3:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-22 21:08 M-x comment-region Richard Stallman
2007-12-22 21:57 ` Miles Bader
2007-12-23 1:05 ` Stefan Monnier
2007-12-23 21:12 ` Richard Stallman
2007-12-24 3:48 ` Ævar Arnfjörð Bjarmason
2007-12-23 8:24 ` Tassilo Horn
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.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).