Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: the function to show a digit argument while it is being typed
- X-seq: zsh-users 14560
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: the function to show a digit argument while it is being typed
- Date: Thu, 12 Nov 2009 13:38:03 -0500
- In-reply-to: <091111094507.ZM30174@xxxxxxxxxxxxxxxxxxxxxx> (Bart Schaefer's message of "Wed, 11 Nov 2009 09:45:07 -0800")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <10081257897632@xxxxxxxxxxxxxxxxxxx> <237967ef0911101822g5bfcf4fao25fc33ba0a2e8604@xxxxxxxxxxxxxx> <091110204748.ZM28704@xxxxxxxxxxxxxxxxxxxxxx> <237967ef0911102217m1325dc59y8d7388e9f6f21c7b@xxxxxxxxxxxxxx> <091111001419.ZM28852@xxxxxxxxxxxxxxxxxxxxxx> <m3eio56o4i.fsf@xxxxxxxxxxxxxx> <091111094507.ZM30174@xxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> On November 11, 2009 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Things get even hairier when argument-base is thrown in.
So I decided to play with that a bit, and in my experience, use of
argument-base to set the base only persists for one subsequent use of
digit-argument or universal-argument. Is that expected? It's what I
see even with 'zsh -f'. The documentation is not explicit on this
point, but my assumption is that the setting would persist until the
next change, and I do not see anywhere in the code where zmod.base is
modified other than in argumentbase(), though there are two struct
assignments to it, however they look to be doing save/restore types of
stuff, but I'm not sure what bin_zle_call() is wrapped around..
Anyway, is this how it's supposed to work?
Also, in universalargument(), is it intentional that if an argument is
explicitly passed it is interpreted in base 10?
thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author