Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Add printing of the style to zstyle+ through option -p
- X-seq: zsh-workers 44844
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: Add printing of the style to zstyle+ through option -p
- Date: Wed, 16 Oct 2019 23:08:44 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ir471LMkyfbo73QZlJ/YNKz6RoQviciYEJajee5mw4Y=; b=PG/a/YrUpGjn5NhnOiHwXHkTWwaeXjCOoCEY7Fi31mHBBfMh8tbnGdZHTJh6j7m2k0 n04vyHDnWD1JBlCjtCRxNfZ2OyZYN2zbdv61Z0b/LEVhBfXQlkj6MPkYWh5t7vNZNnIs ekbJh7q/1bKwpbsOyS69Umy4EH/GJpdhk9Nr5E4plsTcdXQq1vYvdTPTB7l2XfUXLczX fmpq1p+rxBGYlzaXttHMzwhJMh/7USdYU1TJm5az17/6897TzQdevlakofTh9rEsuP58 hyS8fphs0WJrMNCaEtgTZTup8tGXXa7UUFiU1KD3liXvGp7kHKpuqbLHfBpoeZAVAf+u 8Evg==
- In-reply-to: <fdbf2e49-23d2-4ee0-91e2-82daca0bf5fb@www.fastmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCzAuby5-JP5iyKY6D8yBfRTU=AyhYdwt0vr-rwO4QVNw@mail.gmail.com> <fdbf2e49-23d2-4ee0-91e2-82daca0bf5fb@www.fastmail.com>
On Wed, 16 Oct 2019 at 03:44, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Sebastian Gniazdowski wrote on Tue, 15 Oct 2019 18:57 +00:00:
> > I think that many of us often dreamed about omitting the output
> > parameter and the following print when checking out a value of style:
> >
> > zstyle -s :the:style:path style the_parameter; print $the_parameter
> >
> > I've stumbled upon the interesting function zstyle+ and I thought
> > about adding an option -p to it that would print the style:
> >
> > zstyle+ -p :the:style:path style
> >
> > The simple patch adds the option.
>
> Random idea, but how about a way to annotate a variable as "print
> a `set -x`-like diagnostic every time this variable is assigned to"?
> More or less like a gdb watchpoint.
Yes this is doable, from C - a chunk of code would have to be added to
the few standard parameter setters.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author