From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Prefix Argument to indent-line-function
Date: Sat, 02 Nov 2002 21:31:33 -0500 [thread overview]
Message-ID: <200211030231.gA32VXP10722@rum.cs.yale.edu> (raw)
In-Reply-To: 1036280611.10181.17.camel@slider
> 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
next prev parent reply other threads:[~2002-11-03 2:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-02 23:43 Prefix Argument to indent-line-function JD Smith
2002-11-03 2:31 ` Stefan Monnier [this message]
2002-11-03 3:48 ` JD Smith
2002-11-03 14:30 ` Kai Großjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200211030231.gA32VXP10722@rum.cs.yale.edu \
--to=monnier+gnu/emacs@rum.cs.yale.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.