emacs-devel
[Top][All Lists]
Advanced

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

Re: comment-dwim has no behavior to comment out the current line without


From: Will Farrington
Subject: Re: comment-dwim has no behavior to comment out the current line without a region
Date: Tue, 9 Dec 2008 13:50:50 -0500

On Dec 9, 2008, at 1:40 PM, Stefan Monnier wrote:

The proposed diff adds the following additional behavior:

If the point is at `line-beginning-position' (and the region is inactive),
call `comment-region'
 on the whole line (unless the line consists of comments, in which
 case it calls `uncomment-region').

Sadly, BOL is a very common starting point to perform comment-indent,
which is what M-; does currently (and has done for ages) instead of
commenting out a region.

So I don't think this new behavior is compatible with the current use of
M-;.

Generally speaking, what makes BOL a "common starting point" to perform
comment-indent more-so than any other part of the line?

Additionally, is not BOL semantically the clearest place to run comment-dwim
and expect it to comment out a given line rather than having it run
comment-indent?




reply via email to

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