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: C-u prefix behavior of TAB broken Date: Sat, 22 Dec 2007 19:55:03 -0500 Message-ID: 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> <874peac02g.fsf@catnip.gol.com> <476D4C5D.7020202@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198371322 30514 80.91.229.12 (23 Dec 2007 00:55:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Dec 2007 00:55:22 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, Miles Bader To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 23 01:55:35 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 1J6F7v-0001mY-5P for ged-emacs-devel@m.gmane.org; Sun, 23 Dec 2007 01:55:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6F7b-0007jm-3M for ged-emacs-devel@m.gmane.org; Sat, 22 Dec 2007 19:55:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6F7X-0007ho-Nn for emacs-devel@gnu.org; Sat, 22 Dec 2007 19:55:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6F7X-0007h5-8x for emacs-devel@gnu.org; Sat, 22 Dec 2007 19:55:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6F7X-0007gm-0f for emacs-devel@gnu.org; Sat, 22 Dec 2007 19:55:11 -0500 Original-Received: from zue-tix-bbcs-dynip-162-001.vtx.ch ([83.228.162.1] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J6F7Q-0003Op-0b; Sat, 22 Dec 2007 19:55:04 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 17B64B40F4; Sat, 22 Dec 2007 19:55:02 -0500 (EST) In-Reply-To: <476D4C5D.7020202@gmx.at> (martin rudalics's message of "Sat, 22 Dec 2007 18:41:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:85393 Archived-At: >> Can't indent-for-tab-command simply, if there's a prefix argument given, >> rigidly indent the following sexp by the change in indentation? That >> doesn't seem hard at all, and matches the behavior I remember (perhaps >> there are corner cases where it would differ, but I don't think I know >> about them...). > For `tab-always-indent' t it might make sense to do `beginning-of-line' > before the `forward-sexp'. Otherwise it should work wherever > `forward-sexp' behaves reasonably. BTW, isn't > ((memq indent-line-function '(indent-relative indent-relative-maybe)) > (funcall indent-line-function)) > ;; Indent the line. > (t > (indent-according-to-mode)) > semantically equivalent to > (t > (funcall indent-line-function)) No, it's not: check the definition of indent-according-to-mode. The difference is to distinguish between the case where the user hits TAB (and hence wants some kind of effect) as opposed to when line-indentation is done non-interactively (e.g. by skeleton). Stefan