emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Multi- and single-line comment default


From: Stefan Monnier
Subject: Re: Multi- and single-line comment default
Date: Thu, 09 Mar 2006 11:32:47 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Presently commenting of single lines in C-Mode and
> others per default uses multiline comment signs as
> shown below

> /* Example code */

> Seems no way to change this via  customization, also after changing
> comment-style-Var to `plain' or `aligned', same result.

> Better default would be

> // Example code

> in the case, there is just a single line to comment.

Hmmmm.... I've seen guidelines which distiguish between comments that are on
their own line (for which they may use /*...*/) vs comments that are the end
of code line (for which they'd use //...).  But I've never heard of any
coding guidelines which distinguish between comments that span a single line
vs comments that span multiple lines.

So I'm not convinced it's worth the trouble.

> Suggest to change the default from region-transient-mark-mode-requiring to
> an line-oriented behavior, which respects region per default if
> transient-mark-mode is on.

The default of what?  You mean you want to change comment-region so that it
also works when no region is selected (and comments the current line
instead)?


        Stefan




reply via email to

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