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.0 required=5.0 tests=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 a75b8ee1 for ; Tue, 28 Jan 2020 11:10:10 +0000 (UTC) Received: (qmail 27209 invoked by alias); 28 Jan 2020 11:10:03 -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: 45349 Received: (qmail 4229 invoked by uid 1010); 28 Jan 2020 11:10:03 -0000 X-Qmail-Scanner-Diagnostics: from mailout1.w1.samsung.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25703. spamassassin: 3.4.2. Clear:RC:0(210.118.77.11):SA:0(-7.0/5.0):. Processed in 3.570315 secs); 28 Jan 2020 11:10:03 -0000 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.samsung.com designates 210.118.77.11 as permitted sender) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200128110920euoutp0134f83e4ab0694ab77f5a22aefa13a0e0~uCGeflhzb0772707727euoutp01h X-AuditID: cbfec7f5-a0fff7000001ed1a-c2-5e3016607835 Message-ID: <1580209759.6442.3.camel@samsung.com> Subject: Re: Unset =?UTF-8?Q?=E2=80=9Czle=5Fbracketed=5Fpaste=E2=80=9D?= .zshrc From: Peter Stephenson To: Date: Tue, 28 Jan 2020 11:09:19 +0000 In-Reply-To: <1580133672.4960.15.camel@samsung.com> X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsWy7djP87oJYgZxBt9OC1ocbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujMUvbjAXXOGt+LByOnMD4xTuLkYODgkBE4nbC8K6GLk4hARW MEp8uNjKCOH0MUn8//ybGcLpZZJYf3UWK0zHhDn1XYycQPHljBLbLybA1Vzr+csC4ZxhlLi1 4yNU9wVGiTU/uthAWngFDCXe75wNNklYIFBiR6cySJgNKDx102xGEFtEQFLiWvNpMJtFQFXi 64RbrCA2p4CxxPq/h1hAbAkBDYkNN48xQYwUlDg58wlYnFlAXqJ562ywvRICj9kkrs9ezQ7R 4CJxqPcUlC0s8er4FihbRuL/zvlMEA3tQIdOes0O4fQwSmw6eocRospaou/2RUaQq5kFNCXW 79KHCDtK/L46gR0SLHwSN94KQhzBJzFp23RmiDCvREebEES1msSOpq2MEGEZiadrFCYwKs1C 8sEsJB/MQli1gJF5FaN4amlxbnpqsXFearlecWJucWleul5yfu4mRmAaOP3v+NcdjPv+JB1i FOBgVOLhlbisFyfEmlhWXJl7iFGCg1lJhLeTySBOiDclsbIqtSg/vqg0J7X4EKM0B4uSOK/x opexQgLpiSWp2ampBalFMFkmDk6pBkZ3lb7dP+cWq6T83L3g28v+G0zbJkWF2pw8qNw0bxLf puZ9q9p+XXWbx+dQ8yNh27cFcy+nS6jNZmvdWz/r7tprb7/LRapXvtk4dQXrhpN3xMyCHwmv epS1QMGLu309Q+b6eXHVbTf+1iQ9XNx+plvkgewM0dWBVs1qVhGXPFsPxAsLsTvlKf1SYinO SDTUYi4qTgQArBdJxf8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkkeLIzCtJLcpLzFFi42I5/e/4Pd0EMYM4g4+TmSwONj9kcmD0WHXw A1MAY5SeTVF+aUmqQkZ+cYmtUrShhZGeoaWFnpGJpZ6hsXmslZGpkr6dTUpqTmZZapG+XYJe xuIXN5gLrvBWfFg5nbmBcQp3FyMHh4SAicSEOfVdjFwcQgJLGSXWty1m6WLkBIrLSHy68pEd whaW+HOtiw2iqJtJ4sjb24wQzhlGiZaF26AyFxglHn1vYgRp4RUwlHi/czYryAphgUCJHZ3K IGE2oPDUTbPBSkQEJCWuNZ8Gs1kEVCW+TrjFCmJzChhLrP97iAViZhezxK7535hAEswCmhKt 239DnaQhseHmMSaIXYISJ2c+YYGokZdo3jqbeQKj0CwkLbOQlM1CUraAkXkVo0hqaXFuem6x kV5xYm5xaV66XnJ+7iZGYPBvO/Zzyw7GrnfBhxgFOBiVeHglLuvFCbEmlhVX5h5ilOBgVhLh 7WQyiBPiTUmsrEotyo8vKs1JLT7EaAr00URmKdHkfGBk5pXEG5oamltYGpobmxubWSiJ83YI HIwREkhPLEnNTk0tSC2C6WPi4JRqYMzPeOlkvfVhTfppA62ZB1ZJ/5pUxaAta/77bgrXV+dU 1okhi2xKOBVyjt9qLxaefS9YMd8v/823xFUCVTNdLJf08bvUhu4sXq94qePf5GtXxBp3vRG+ klEmdlj2S8CLW31hK7dENN3c/62MY/6KbV5PjXTr4+8qSV288nVRszzzPefD0ZfiipVYijMS DbWYi4oTAWSAacWUAgAA X-CMS-MailID: 20200128110920eucas1p20e257344ea2a590bf604f3911eeabb14 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200123031354eucas1p1605fb92fcf91bd7e2f1b13677b6cc244 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200123031354eucas1p1605fb92fcf91bd7e2f1b13677b6cc244 References: <0723EF0A-BD62-4C2C-AAA1-735AD3D64768@icloud.com> <20200123031249.034c7e1a@tarpaulin.shahaf.local2> <1579773213.5343.1.camel@samsung.com> <20200126004519.6e44ae68@tarpaulin.shahaf.local2> <1580133672.4960.15.camel@samsung.com> On Mon, 2020-01-27 at 14:01 +0000, Peter Stephenson wrote: > On Sun, 2020-01-26 at 00:45 +0000, Daniel Shahaf wrote: >>> Remember, you can use zmodload -F to manipulate which features >>> are provided by a module, although not at the point of declaring >>> autoloads --- some sort of autoloadable feature set might be another >>> way of doing this. >> >> How do you envision this working?  Would there be, say, a zmodload flag >> to add/remove entries from the default set of autofeatures?  Or would >> «unset options» implicitly twiddle the autofeatures metadata for the >> (not-yet-loaded) zsh/parameter module? > > I'd start by simply add the interface to zmodload itself, in the first > instances.  That's already quite a job and not clear how useful it is. > At the moment, until you can read the feature set from the module you're > just guessing what the module provides.  The obvious fix is simply let > the user claim e.g. module zsh/foo provides p:bar and complain if it > doesn't when the module is loaded. Duh.  We already have this --- "zmodload -Fa", and it's already documented as fixing the problem that was bugging me --- don't automatically load other features from the module as that can cause unwanted side effects.  I'd completely forgotten implementing this. % zmodload -Fa zsh/datetime p:EPOCHSECONDS % print $EPOCHSECONDS 1580209515 % zmodload -Fl zsh/datetime -b:strftime +p:EPOCHSECONDS -p:EPOCHREALTIME -p:epochtime This is another way of fixing the underlying problem --- e.g. here you don't need to "unset EPOCHREALTIME" because it wasn't provided as a feature in the first place.  You can turn on and off the feature as needed once the module is loaded. pws