From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: C-u prefix behavior of TAB broken Date: Sat, 22 Dec 2007 23:08:44 +0100 Message-ID: <476D8AEC.4050604@gmx.at> References: <874peijnu4.fsf@catnip.gol.com> <47667010.40209@gmx.at> <87tzmhs8g8.fsf@catnip.gol.com> <4766C7F7.5060504@gmx.at> <87fxxvbnbv.fsf@catnip.gol.com> <476CD8CF.4060108@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198362312 10625 80.91.229.12 (22 Dec 2007 22:25:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Dec 2007 22:25:12 +0000 (UTC) Cc: miles@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 22 23:25:23 2007 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 1J6CmY-0000yI-50 for ged-emacs-devel@m.gmane.org; Sat, 22 Dec 2007 23:25:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6CmD-0003Yg-LB for ged-emacs-devel@m.gmane.org; Sat, 22 Dec 2007 17:25:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6Cm9-0003YP-Sc for emacs-devel@gnu.org; Sat, 22 Dec 2007 17:24:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6Cm7-0003YC-Na for emacs-devel@gnu.org; Sat, 22 Dec 2007 17:24:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6Cm7-0003Y9-Gv for emacs-devel@gnu.org; Sat, 22 Dec 2007 17:24:55 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1J6Cm6-0005Sd-Rt for emacs-devel@gnu.org; Sat, 22 Dec 2007 17:24:55 -0500 Original-Received: (qmail invoked by alias); 22 Dec 2007 22:24:53 -0000 Original-Received: from N895P010.adsl.highway.telekom.at (EHLO [62.47.55.202]) [62.47.55.202] by mail.gmx.net (mp056) with SMTP; 22 Dec 2007 23:24:53 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+nuvAB2PmnyhA9vjhdwbvokxwNykV5wYJ92dM7zL tGq/9pV8r8zXbK User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) 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:85388 Archived-At: > FWIW all indent-line-functions with the exception of `lisp-indent-line' > either don't have arguments or, like `c-indent-line', `f90-indent-line', > and `(c)perl-indent-line' expect completely different arguments here. > Hence a generic solution seems hardly practicable. > > Could you name one or two, so I can take a look and see specifically what > you mean? I meant that (defun lisp-indent-line (&optional whole-exp) takes one optional argument `whole-exp' that implements the feature. (defun c-indent-line (&optional syntax quiet ignore-point-pos) takes three completely unrelated arguments and won't implement the feature. (defun python-indent-line () takes no argument at all and won't implement the feature either. All this based on the assumption that `indent-for-tab-command' with a prefix argument would pass something like `whole-exp' down to the indent-line function of the major mode and have the latter do the job. Miles elegantly side-stepped the issue in his patch by implementing the feature within `indent-for-tab-command' so my argument is void.