From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: lisp-indent-line and comment-region in emacs-lisp-mode menu Date: Wed, 5 Mar 2008 07:33:23 -0800 Message-ID: <001b01c87ed6$3ff87dd0$0600a8c0@us.oracle.com> References: <200803042223.m24MNxAA001171@sallyv1.ics.uci.edu><87y78yqcmr.fsf@jurta.org><003a01c87e5a$b5554580$0600a8c0@us.oracle.com> <87ve41xxlm.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204731389 21852 80.91.229.12 (5 Mar 2008 15:36:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 15:36:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Juri Linkov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 05 16:36:47 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 1JWveP-0006l4-BA for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 16:35:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWvds-0006wZ-0y for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 10:34:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWvdo-0006wU-DE for emacs-devel@gnu.org; Wed, 05 Mar 2008 10:34:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWvdm-0006uw-1V for emacs-devel@gnu.org; Wed, 05 Mar 2008 10:34:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWvdl-0006un-NZ for emacs-devel@gnu.org; Wed, 05 Mar 2008 10:34:45 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JWvdl-0003BN-Ar for emacs-devel@gnu.org; Wed, 05 Mar 2008 10:34:45 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m25FYgii015948; Wed, 5 Mar 2008 09:34:42 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m241VK7m022371; Wed, 5 Mar 2008 08:34:42 -0700 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3600715931204731199; Wed, 05 Mar 2008 07:33:19 -0800 Original-Received: from dradamslap1 (/141.144.74.81) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 05 Mar 2008 07:33:18 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87ve41xxlm.fsf@jurta.org> Thread-Index: Ach+rk9OZsz92By0QQqPdeYP7eMLUAAJgZUg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:91384 Archived-At: > > I don't care if you add it, but please don't bind it to > > TAB. I use TAB to do `lisp-indent-line' (the default) always. > > This is not the default anymore. TAB in emacs-lisp-mode now uses the > default TAB binding `indent-for-tab-command'. I'm using Emacs 22, but `indent-for-tab-command' still respects `tab-always-indent' in Emacs 23, no? > That's why Dan raised this question. In Emacs 22, the Emacs-Lisp > menu has the item: Indent Line (TAB) > > Now in CVS it shows a menu item with non-default > `lisp-indent-line' that has no key binding. I think it makes > sense to replace it with the command `indent-for-tab-command' > that is bound to TAB. I have no problem with the menu reflecting the default binding, and I didn't object to Dan's suggestion. I objected to your proposal to do something like the code you sent, *if* you also intend to bind that to TAB. IIUC, your code does not respect `tab-always-indent' - it simply completes a symbol if there is no active region and the preceding char is a symbol or word constituent. I don't want such behavior to be the default.