From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 545 invoked by alias); 11 Dec 2016 20:23:16 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22195 Received: (qmail 16977 invoked from network); 11 Dec 2016 20:23:16 -0000 X-Qmail-Scanner-Diagnostics: from mta04.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.10):SA:0(-3.7/5.0):. Processed in 0.893499 secs); 11 Dec 2016 20:23:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.10 as permitted sender) X-Authority-Analysis: v=2.2 cv=HKaBLclv c=1 sm=1 tr=0 a=xPWM5QW5oS+lNOfUWk9MeA==:117 a=xPWM5QW5oS+lNOfUWk9MeA==:17 a=N659UExz7-8A:10 a=e2mXUbwmiUx6gMGRDIgA:9 a=pILNOxqGKmIA:10 X-EL-IP-NOAUTH: 24.207.97.144 Message-id: <584DB5AC.4000301@eastlink.ca> Date: Sun, 11 Dec 2016 12:23:08 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: off topic References: <20161209122958.GD19559@256bit.org> <57127.1481294647@hydra.kiddle.eu> <584AC8AC.9050406@eastlink.ca> <62522.1481300922@hydra.kiddle.eu> <584AEDBF.2050402@eastlink.ca> <161209165454.ZM9226@torch.brasslantern.com> <95362.1481338226__15466.9970310808$1481338718$gmane$org@hydra.kiddle.eu> <20161211043221.GA11489@fujitsu.shahaf.local2> <584D87B5.6070803@eastlink.ca> <161211091915.ZM22135@torch.brasslantern.com> <584D94CE.5020706@eastlink.ca> <161211112053.ZM30289@torch.brasslantern.com> In-reply-to: <161211112053.ZM30289@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 12/11/2016 11:20 AM, Bart Schaefer wrote: > On Dec 11, 10:02am, Ray Andrews wrote: > } > } Ah! So the plugin runs predictably, but this doesn't mean that the > } user's setup is ignored otherwise, it would just be ignored while the > } plugin is running insofar as the commands within the plugin go. > > Er, no. It would be ignored while the code for the plugin is being > *parsed*, i.e., converted into zsh's internal wordcode format, NOT > while the wordcode is being *run*. If the plugin wants to ignore or > save/restore the user state while it is *running*, that's up to the > plugin itself. > > This is for things like IGNORE_BRACES, IGNORE_CLOSE_BRACES, RC_QUOTES, > C_BASES, C_PRECEDENCES, MULTI_FUNC_DEF, POSIX_ALIASES, POSIX_IDENTIFIERS, > and POSIX_STRINGS, and alias expansions themselves, which affect the > interpretation of the program text before it even begins running. > > Of course, the implementation example I gave could affect some of the > running of the code if it executed simultaneously with the initial > load of the plugin; there's no way to avoid that with an interpreted > language. But the assumption is that most plugin source files only > set up a bunch of state (function definitions, etc.) that is meant to > execute later. > God help us ;-) I'll not poke my nose into it.