From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16327 invoked from network); 30 May 2022 04:06:02 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 May 2022 04:06:02 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653883562; b=KIET0qgTWGELl2Pwm8VfwCaiybaxFp3nPb0ZL64Bk08ofUQNJyzXeFR7qF91bhoxCvosaOKEgo KVyqkMJ/4/beEnBrgFo8qqt3+8CkQqIzBVno5tr6sloEDVvfG3PwxKZuIar+GO7dz8AMo+XwZ4 E7FM5P0pzoFRVEsvy6lNaBl0Hf9ylf8QLW+DVNgmP91ouWMpFhe/VBmy0651Np8rVsx3QI6hhu T7A5iJjvtiKa29tsu3Zx4LiF0OfhVngM5BGD97bfmjCER8MnSrBmHSZAvIvhdK3IPWp9JRIHVR KZPtA/0qIlyND+jTq3z/uaaG73K8pCVUrEzN617SMCjfRw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f43.google.com) smtp.remote-ip=209.85.218.43; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653883562; bh=7Rx2SAAVNseT8/NVUQeWLoFA5/ZQCvO51kwR0H56F7k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=PVXASC0x7hgSkMwRs+wLI6aWgkhbdMKkWMdGucQfoHLpdEC2FcCiaQcrI2itjPZ5h+zHzg743s 9uymOgmpuvQ/uwEtOWujg/xXQU5KDYgrT6XPJ8heLGAaS+lseZfbZwmtBhXgAhMc7z/nbpzjA6 gveabMJNBF+ZcBRTO1OaDxFvMRodPI+e99JKCHdHbQ8+BplOT+nv79MrlXDWISVqTxMMwblh6y /yFj5up/FBOFiqfoPyxcoqHU4HAV3iyIjb7K8OMd4djwQ5NM7wNeoprsG+XH7XcfdOWiISGScu RMDA49MOA/RMOB9/W1P5Rv3CSPb/DIARarKoM34KoYdYxg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=lDCb/LCGlJt8MMBbrDptZXDNcMhMcL6lcJAvi5aILcI=; b=lJ9nqNNjXc6TxnJgbnSo7BuwBZ w0WCh6Xv0lIVH6FVonBZ8nNDqF8tIYMCTlkSaCe6uF7GRqLAesAF7SKlMXXN/Uh5Ilb5q4LaLjIA+ kwrjUAYiae5Mh5zf6FHo5RMGsmOgzcRKIIDEFbiWIKOIpdUnb3p781fmfVAjlEdDVw7CSvcvo6J4S qGhvq1A1BGnpj7eoHwk40Q6ZWF1GBN0O9qzQYnSd2wyEj8NYUd9M41OalvZwWQ+y3NlHDgCYejXHZ u1cX/Tma5aVZTxMvrVBydm5EmFevMRb1Z0UdpL4CtwUDRC3gE3LYDp4cJy07hLARhb8E3xgLfzACX HKKzoDdg==; Received: from authenticated user by zero.zsh.org with local id 1nvWfI-000493-3g; Mon, 30 May 2022 04:06:00 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f43.google.com) smtp.remote-ip=209.85.218.43; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f43.google.com ([209.85.218.43]:40934) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nvWeQ-0003Qz-QY; Mon, 30 May 2022 04:05:08 +0000 Received: by mail-ej1-f43.google.com with SMTP id wh22so18440887ejb.7 for ; Sun, 29 May 2022 21:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lDCb/LCGlJt8MMBbrDptZXDNcMhMcL6lcJAvi5aILcI=; b=7SB/qlLro9PFU19aTSeX2btSoM+LNwquyKJdrZcre2c9/5xGRz+fo39IOyoFtdMf0p 5qLA6aDfDUb4VNYR7NmPT0jmy6IoRIOwNP1uyisJk2ZpGDrgMaU18ZE2DX/HxT4itncp bTGYgyLxTMbeN/RFfUsXZqZ+y2QABnweeM2BaqLluSDfINhIgBToF6MKo9EXqaEzhpbJ 7ms3W3KussW7tQNRolWKvUYk47QLxByw94Goj5X+Ayb6Bxqq3P6Pzc78t5jJVZ9XZXaG BbsgDkU5u5tQ/+39h1PHt/X6ealeFSAKqW8i3/WMTShPQYWS+vupbaFWNnyQ+1IpIjP3 gihA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lDCb/LCGlJt8MMBbrDptZXDNcMhMcL6lcJAvi5aILcI=; b=XMIVKoKo+MyrtjguOkUYbd2RjbtH0vhkWjNPOgfyyx2mDWXvlvy8XmkGlT4F8teT1L UmOAwJ/DZgSS5BGU+mFlQqkcZAw2o0Yx5BJN4TESlPVkrAjNl+JpPklalOYDRP7gor01 bSqbvvZCbjrxuqmvfu2tAqlT/BgtJ9zyP26tFDj1sHhNNCqcMfeLu3TX7OLMt4QVtqVt uFzyyjsOJRJh43YDTgFEf5Dd1fOi46prfJF2k8DIpmaOALkIO0OUe6DSmXodEHVIH4S5 sHi0XgkzxbtBtvb8yhU8ulsASCIiXpEQlrKeo3x1DzYkVQpl8BZesDBdbkV/O2TUoVQe 04/g== X-Gm-Message-State: AOAM532/u3wSmWrZaUOxII7ma/nFToHRNEoc3RBUkc1lv8+f/Q8pgGz1 +V2fP3BQMYBrhfm1/hvjUYqXPHg5UH6mWYtr6QbjHfM2u4yNEA== X-Google-Smtp-Source: ABdhPJwCEEfMvlu7SHmbhkb/ZARWXVPkGCMnoT9krv6O7gPLz3bcu1mt2/2oshvjgG6eB5oOEwVMuTbksL5OC1ayNOY= X-Received: by 2002:a17:907:2dab:b0:6fe:e1f0:3e8b with SMTP id gt43-20020a1709072dab00b006fee1f03e8bmr33747706ejc.55.1653883505852; Sun, 29 May 2022 21:05:05 -0700 (PDT) MIME-Version: 1.0 References: <20220525025403.GA97860@zira.vinc17.org> <20220525084920.GB97860@zira.vinc17.org> <20220526143602.GA1236826@zira.vinc17.org> <20220526155329.GF19001@tarpaulin.shahaf.local2> <1936193667.415066.1653581604546@mail2.virginmedia.com> <20220528000720.GB1236826@zira.vinc17.org> <20220528100639.GB29128@tarpaulin.shahaf.local2> <41f13468-b9b9-4b64-845a-aadbcc3b8472@www.fastmail.com> In-Reply-To: <41f13468-b9b9-4b64-845a-aadbcc3b8472@www.fastmail.com> From: Bart Schaefer Date: Sun, 29 May 2022 21:04:54 -0700 Message-ID: Subject: Re: prevent some lines directly coming from the history from being executed To: Daniel Shahaf Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27823 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sun, May 29, 2022 at 3:55 PM Daniel Shahaf wrote: > > Bart Schaefer wrote on Sat, 28 May 2022 18:43 +00:00: > > On Sat, May 28, 2022 at 3:06 AM Daniel Shahaf wrote: > >> +cindex(widgets, shadowing standard) > > > > "Shadow(ing)" is not a term I'd think to search for in this context. > > [...] I think "shadow" is the right term > here, so how about: > > +cindex(widgets, shadowing standard) > +cindex(widgets, overriding standard) By comparison to a number of other index entries, I think standard widgets, shadowing standard widgets, overriding Or even widgets, standard, shadowing widgets, standard, overriding would fit the pattern better. > +User-defined widgets may shadow (override) standard widgets: for instance, > > >> +However, each standard widget `var(foo)' is also available under the > > > > I would probably have used something like var(std) > > Personally I find it easier to read with "foo", but I suppose that's > a matter of taste. I'll write it whichever way is the house style. There are plenty of "foo" already in the doc, so as you prefer. > >> +Therefore, for forward compatibility with future versions of the shell, > >> +it is recommended that user-defined widgets should not have names > >> starting with `tt(.)'. > > > > It's actually prohibited to name a user-defined widget the same as one > > of the reserved dot-names, so this recommendation could be more > > specific. > > OK, can spell out the problem. Wouldn't that make the paragraph a bit > of a wall of text, though? Also, it would further break the flow Hm. How about, picking up after +This makes the standard widget available to be called or bound even when +its usual name has been redefined. These names are reserved and cannot be created as user-defined widgets, so for compatibility with possible future revisions of the shell, it is recommended that users avoid naming widgets with a leading `tt(.)'.