|
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 ofM-;.
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?
[Prev in Thread] | Current Thread | [Next in Thread] |