From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Prefix Argument to indent-line-function Date: Sat, 02 Nov 2002 21:31:33 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: <200211030231.gA32VXP10722@rum.cs.yale.edu> References: <1036280611.10181.17.camel@slider> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036291312 7954 80.91.224.249 (3 Nov 2002 02:41:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 3 Nov 2002 02:41:52 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 188Ahz-00024A-00 for ; Sun, 03 Nov 2002 03:41:51 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 188Aop-0006oO-00 for ; Sun, 03 Nov 2002 03:48:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 188AiB-0007CQ-00; Sat, 02 Nov 2002 21:42:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 188AY7-0001GZ-00 for emacs-devel@gnu.org; Sat, 02 Nov 2002 21:31:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 188AY4-0001Fv-00 for emacs-devel@gnu.org; Sat, 02 Nov 2002 21:31:37 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 188AY3-0001Fe-00 for emacs-devel@gnu.org; Sat, 02 Nov 2002 21:31:35 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id gA32VXP10722; Sat, 2 Nov 2002 21:31:33 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: JD Smith Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9079 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9079 > Prior versions of emacs passed any prefix argument to [Tab] through > `indent-for-tab-command' to `indent-line-function'. Now, in Emacs 21.x, > that prefix argument is trapped and not passed. Yes: many indent-line-functions don't expect an argument and crashed when you did C-u TAB. So we removed it. > The variable `current-prefix-arg' does me no good, since the line-function > is called recursively. I don't understand what you mean here. > Any suggestions for a workaround to get [C-u TAB] to behave like before? Depends on the context. In lisp-mode, what we did was to rebind TAB to lisp-indent-line. I don't like this approach, admittedly, because it then disregards tab-always-indent. Stefan