- Subject: Re: read_mini steals prefix argument
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Fri, 2 Jun 2006 17:15:28 +0000 (UTC)
Hallo John,
"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
>>the prefixargument is not available after read_mini(). Why?
>
> The prefix-argument applies to the next keystroke. The function bound
> to such a keystroke may or may not use a prefix-argument. If it does
> not use it, then jed will use the prefix argument as a repetition
> factor. This feature can be used to, e.g., insert a character 75 times,
BTW: While we talk about this feature. How to insert 40 zeros or 12 ones?
> The prefix-argument is also global, meaning that there is only one
> instance available. This means that any setting prior to calling
> read_mini would be lost if a prefix-argument were used at the prompt.
Hence, I must use a variable or have I another choice?
And why is () not couted as argument?
#v+
define g()
{
message(string(prefix_argument(-1))+" "+string(_NARGS));
}
read_mini("X", "", "");
set_prefix_argument(12);
g( () );
#v-
Jörg.
--
Roesen's Law (http://www.bruhaha.de/laws.html):
Sobald ein Troll, DAU oder Elch im Lauf eines Threads auf heftige Kritik
stößt, argumentiert er mit der Arroganz des Kritikers. Dies kann auch
vorsorglich erfolgen.
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]