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 44838
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Sebastian Gniazdowski" <sgniazdowski@xxxxxxxxx>, "Zsh hackers list" <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: Add printing of the style to zstyle+ through option -p
- Date: Wed, 16 Oct 2019 01:44:23 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm1; bh=RfPuVyt zOeVPFSI2b5H6jWEbt6KxWBl8WGOrXoOkAeI=; b=ivT1D2hvqG5rI03+Tv75hr0 cggAWV/UgSxZBlbeO7at+EwYh/qnXeOzU8RaglTXUDkCPA/KVJJdkfHwahvwfJuh ARPsEDZOnI6RLPj1E5/0fHvy1iGUBvja5vTm9BG7YEpcEg84JNOzCoXgzbMiIrEZ C+IBkhtamCM3IN9A7X0f1zSLAodu6O19J6xJiP+3h1ToHPx5/SW56pFgA6tqihr8 1oUKSZ9A12u0viG3ryetxaxqGHP6LSt4YaJwG2/CjEPOzdyfhYaIY+llNtxclWpW xxlCHcV5G1uKvxJfyOnwj+kRdVJESEAGpvhulvOVDFSKXw8cOZbk37NlLnmaoNQ= =
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=RfPuVy tzOeVPFSI2b5H6jWEbt6KxWBl8WGOrXoOkAeI=; b=FDrbRo/zBRPaLn3dEbpyIX O0ewpfwMsUKbQlZqVH9rwZVrgrsy5iYkD730JI3GdtgVTZUuJzBuAH5RGYwWjgwN q4iVoAOj57KBPI0I96NBOIHJFE0sgN+reouf/R7WZd2gqkBqtDgfBL01sxI5St+Y 7MOMnQzqfYpF3lh7T5zFnILiQRTSe0cB5MOyCzLgz6/7e4dSdGGS/2MS6fuatlwd SWaadl+T5LlErIBHdo+zYf35YR03ZHY2ReSBiwBuBzh6kHRyUGgJXibtB+5u3OMa Ll0JagxTdcCYKJyryI33kl/d/nx5e1edb2Oqo5JSghmui6AyCpYn8ze4jNSgJA5A ==
- In-reply-to: <CAKc7PVCzAuby5-JP5iyKY6D8yBfRTU=AyhYdwt0vr-rwO4QVNw@mail.gmail.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>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author