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,FREEMAIL_FROM,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 1f7ef416 for ; Wed, 16 Oct 2019 21:09:37 +0000 (UTC) Received: (qmail 13087 invoked by alias); 16 Oct 2019 21:09:32 -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: 44844 Received: (qmail 25518 invoked by uid 1010); 16 Oct 2019 21:09:32 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk1-f195.google.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(209.85.221.195):SA:0(-2.0/5.0):. Processed in 2.852642 secs); 16 Oct 2019 21:09:32 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.221.195 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ir471LMkyfbo73QZlJ/YNKz6RoQviciYEJajee5mw4Y=; b=rz/CqdIh3XcYP751n2OmB0YFrL43weWhO/w/sPdbaRa9aden3pX1ggShArLYUFWvK9 hSvQXVOS3yz4yCFY6VNn5SHg8F7KSoO26ecqS6Mr3XLqvEdDDpr/NrG5oAJ8jiO0aNLO jx8cd1cwj79WiSibLGXo0YjKHk9qgnXfQ/3vlRYIYELB1v5LdKyiFFYMhUvBmMoDy2Hu 4D64PIHavWCj9VrO/wRj7w/QIRe9TR+7gZr7xHwlP+PkH4Pa5jO+15hzH6fsB/TsjHIS lQK7zfMAomFtaYNqYk67nMNWgDemzJh9tZ8GjSWaJex1JUFsmwjMGgmx2iNKp8QcPJjc tDng== X-Gm-Message-State: APjAAAWaTpH1v8n0CRSDDq86o0ZZVRkDtLuvNFxMHn7z4OGPFv5nKskb uidBjILpDXaQZtwfXxne+wW+VKoKfKMjmzxT2ng= X-Google-Smtp-Source: APXvYqyDY0d1JjMaZhVOK/6H69/ZLU1Tv4OLDBBGvcVuPeC07fvmC57jRmubhDhqSUDneNAcyXVnyHJ8HrrRAKiRSsc= X-Received: by 2002:a1f:8d4c:: with SMTP id p73mr30994vkd.77.1571260134772; Wed, 16 Oct 2019 14:08:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Wed, 16 Oct 2019 23:08:44 +0200 Message-ID: Subject: Re: PATCH: Add printing of the style to zstyle+ through option -p To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Wed, 16 Oct 2019 at 03:44, Daniel Shahaf 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