[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prefix Argument to indent-line-function

From: Stefan Monnier
Subject: Re: Prefix Argument to indent-line-function
Date: Sat, 02 Nov 2002 21:31:33 -0500

> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]