From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: Prefix Argument to indent-line-function
Date: Sun, 03 Nov 2002 15:30:44 +0100 [thread overview]
Message-ID: <84u1iybu97.fsf@crybaby.uni-duisburg.de> (raw)
In-Reply-To: 1036295309.11508.28.camel@slider
JD Smith <jdsmith@as.arizona.edu> writes:
> You can use this variable, if I understand it correctly, to find the
> prefix arg of the initial function called interactively in a stack of
> function calls. My indent-line-function looks for a prefix, and if it
> finds it, calls code which calls itself again (non-interactively). If
> you test for current-prefix-arg, the purposefully non-interactive
> invocations are confused, and an infinite loop ensues. I suppose I
> could set current-prefix-arg to nil on the first run-through.
Yes, something like
(if current-prefix-arg
(let ((current-prefix-arg nil))
...call.myself...))
seems promising.
kai
--
~/.signature is: umop ap!sdn (Frank Nobis)
prev parent reply other threads:[~2002-11-03 14:30 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
2002-11-03 3:48 ` JD Smith
2002-11-03 14:30 ` Kai Großjohann [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84u1iybu97.fsf@crybaby.uni-duisburg.de \
--to=kai.grossjohann@uni-duisburg.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).