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: lisp-indent-line and comment-region in emacs-lisp-mode menu Date: Wed, 05 Mar 2008 13:41:55 -0500 Message-ID: References: <200803042223.m24MNxAA001171@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204742541 27198 80.91.229.12 (5 Mar 2008 18:42:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 18:42:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 05 19:42:44 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 1JWyZZ-0007tM-0a for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 19:42:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWyZ1-00023A-Ns for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 13:42:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWyYx-00022j-3Q for emacs-devel@gnu.org; Wed, 05 Mar 2008 13:41:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWyYv-000229-8v for emacs-devel@gnu.org; Wed, 05 Mar 2008 13:41:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWyYv-000224-3e for emacs-devel@gnu.org; Wed, 05 Mar 2008 13:41:57 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWyYu-00032q-QJ for emacs-devel@gnu.org; Wed, 05 Mar 2008 13:41:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAAt4zkfO+LKX/2dsb2JhbACsGIEC X-IronPort-AV: E=Sophos;i="4.25,451,1199682000"; d="scan'208";a="15626023" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 05 Mar 2008 13:41:56 -0500 Original-Received: from pastel.home ([206.248.178.151]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id LVU89355; Wed, 05 Mar 2008 13:41:55 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A4C148359; Wed, 5 Mar 2008 13:41:55 -0500 (EST) In-Reply-To: <200803042223.m24MNxAA001171@sallyv1.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 04 Mar 2008 14:23:59 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: 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:91401 Archived-At: > Wouldn't it be better if the emacs-lisp-mode menu used > indent-for-tab-command instead of lisp-indent-line and > comment-dwim instead of comment-region ? For indent-line, it might be OK, although it suffers from the problem that indent-for-tab-command doesn't necessarily indent the current line. For comment-region, the problem is worse because as long as transient-mark-mode is off, comment-dwim does not do comment-region. Those DWIMish bindings (TAB, M-;) are problematic in this situation because the menu entry text cannot faithfully describe the behavior. > The former don't have key bindings, but the latter do, so the menus > do not help users learn the key bindings. Indeed. > What about "Indent region"? Currently TAB does when > transient-mark-mode is on... So are you suggesting to put TAB on both "indent line" and "indent region"? Stefan