[Top][All Lists]

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

Re: Prefix Argument to indent-line-function

From: Kai Großjohann
Subject: Re: Prefix Argument to indent-line-function
Date: Sun, 03 Nov 2002 15:30:44 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

JD Smith <address@hidden> 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))

seems promising.

~/.signature is: umop ap!sdn    (Frank Nobis)

reply via email to

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