From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: PATCH: Add printing of the style to zstyle+ through option -p
Date: Wed, 16 Oct 2019 23:08:44 +0200 [thread overview]
Message-ID: <CAKc7PVAjCj7vQ0wLzBLbMLQNn7YmtLnrH4CyZPc9smceHQaW6Q@mail.gmail.com> (raw)
In-Reply-To: <fdbf2e49-23d2-4ee0-91e2-82daca0bf5fb@www.fastmail.com>
On Wed, 16 Oct 2019 at 03:44, Daniel Shahaf <d.s@daniel.shahaf.name> 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
prev parent reply other threads:[~2019-10-16 21:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-15 18:57 Sebastian Gniazdowski
2019-10-16 1:44 ` Daniel Shahaf
2019-10-16 21:08 ` Sebastian Gniazdowski [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKc7PVAjCj7vQ0wLzBLbMLQNn7YmtLnrH4CyZPc9smceHQaW6Q@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--cc=d.s@daniel.shahaf.name \
--cc=zsh-workers@zsh.org \
/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.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).