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: Thu, 11 Dec 2008 10:27:04 -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 1229009352 18553 80.91.229.12 (11 Dec 2008 15:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2008 15:29:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Will Farrington Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 11 16:30:16 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 1LAnU2-0001KZ-UP for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2008 16:29:47 +0100 Original-Received: from localhost ([127.0.0.1]:49073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAnSr-0003Iz-3L for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2008 10:28:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAnRT-0002iR-LL for emacs-devel@gnu.org; Thu, 11 Dec 2008 10:27:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAnRS-0002ht-OP for emacs-devel@gnu.org; Thu, 11 Dec 2008 10:27:07 -0500 Original-Received: from [199.232.76.173] (port=47449 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAnRS-0002ho-Hk for emacs-devel@gnu.org; Thu, 11 Dec 2008 10:27:06 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:59596 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LAnRS-0001Dh-9B for emacs-devel@gnu.org; Thu, 11 Dec 2008 10:27:06 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcFAJy/QElFxIVh/2dsb2JhbACBbMs7gnmBLA X-IronPort-AV: E=Sophos;i="4.33,753,1220241600"; d="scan'208";a="30922901" Original-Received: from 69-196-133-97.dsl.teksavvy.com (HELO pastel.home) ([69.196.133.97]) by ironport2-out.teksavvy.com with ESMTP; 11 Dec 2008 10:27:04 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id DE57E86F6; Thu, 11 Dec 2008 10:27:04 -0500 (EST) In-Reply-To: (Will Farrington's message of "Wed, 10 Dec 2008 07:22:58 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106802 Archived-At: > On second inspection, C-M-; is not bound by default. > How would you feel about binding the following function to that keybinding? To tell you the truth, I'm not very enthusiastic at the idea of using one of the few remaining bindings for such a small feature. I'd much rather provide a "mark-line" key that could then be combined with M-; to comment out the current line (since it would then be usable in other contexts as well). I think that M-; M-; holds more promise. Stefan