From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: comment-dwim has no behavior to comment out the current line without a region Date: Tue, 09 Dec 2008 14:48:36 -0500 Message-ID: References: <972C2D7E-3A86-489B-AAE5-17A52B943DB3@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228852161 16328 80.91.229.12 (9 Dec 2008 19:49:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2008 19:49:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Will Farrington Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 09 20:50:26 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LA8al-0007sf-EC for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2008 20:49:59 +0100 Original-Received: from localhost ([127.0.0.1]:33846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA8Za-0005nZ-FF for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2008 14:48:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LA8ZU-0005mQ-9d for emacs-devel@gnu.org; Tue, 09 Dec 2008 14:48:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LA8ZT-0005lw-Q2 for emacs-devel@gnu.org; Tue, 09 Dec 2008 14:48:39 -0500 Original-Received: from [199.232.76.173] (port=42288 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA8ZT-0005lt-JW for emacs-devel@gnu.org; Tue, 09 Dec 2008 14:48:39 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:60145) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LA8ZT-0004nc-H7 for emacs-devel@gnu.org; Tue, 09 Dec 2008 14:48:39 -0500 Original-Received: from alfajor.home (vpn-132-204-232-76.acd.umontreal.ca [132.204.232.76]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mB9JnEaO014281; Tue, 9 Dec 2008 14:49:14 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id DB4BE1C91C; Tue, 9 Dec 2008 14:48:36 -0500 (EST) In-Reply-To: <972C2D7E-3A86-489B-AAE5-17A52B943DB3@gmail.com> (Will Farrington's message of "Tue, 9 Dec 2008 13:50:50 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3165=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106732 Archived-At: > Generally speaking, what makes BOL a "common starting point" to perform > comment-indent more-so than any other part of the line? I'm not sure it's much more so, but it's at least as common as current-indentation, end of line, etc... > 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? Could be. I'm not saying your idea isn't good. I'm just saying that it is not compatible with the current behavior and that the current behavior makes sense as well. You may find some other way to combine comment-indent, comment-kill, and comment-region onto a single key. E.g. M-; M-; is currently unused. Stefan