From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id c4f19acf for ; Wed, 16 Oct 2019 01:45:35 +0000 (UTC) Received: (qmail 2079 invoked by alias); 16 Oct 2019 01:45:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44838 Received: (qmail 17207 invoked by uid 1010); 16 Oct 2019 01:45:28 -0000 X-Qmail-Scanner-Diagnostics: from out5-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25601. spamassassin: 3.4.2. Clear:RC:0(66.111.4.29):SA:0(-2.6/5.0):. Processed in 5.006515 secs); 16 Oct 2019 01:45:28 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) 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 == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrjeeggdeglecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfffgrnhhi vghlucfuhhgrhhgrfhdfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqe enucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdr nhgrmhgvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-360-g7dda896-fmstable-20191004v2 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Wed, 16 Oct 2019 01:44:23 +0000 From: "Daniel Shahaf" To: "Sebastian Gniazdowski" , "Zsh hackers list" Subject: Re: PATCH: Add printing of the style to zstyle+ through option -p Content-Type: text/plain 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.