From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3061 invoked by alias); 24 Feb 2015 21:41:24 -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: 19918 Received: (qmail 13374 invoked from network); 24 Feb 2015 21:41:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=kPKDuYVJvYornGqTqrLWrw==:117 a=kPKDuYVJvYornGqTqrLWrw==:17 a=VNsaWKQvMhEA:10 a=IkcTkHD0fZMA:10 a=Tf62UKBeiznl1AQRktUA:9 a=QEXdDO2ut3YA:10 Message-id: <54ECEFFD.5010202@eastlink.ca> Date: Tue, 24 Feb 2015 13:41:17 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.4.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: 'run ahead' execution of script References: <54ECCE79.9050809@eastlink.ca> <54ECD4B5.709@pobox.com> In-reply-to: <54ECD4B5.709@pobox.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 02/24/2015 11:44 AM, Andrew Janke wrote: > Yeah; the geany command's normal behavior isn't really suitable for a > CLI-driven editing session like this. You probably do want `geany -i`. Sure, it's quite satisfactory, I'm just interested in seeing if there is a way for zsh to handle it. I think I understand the issue, but zsh can do some impressive things, and maybe it can even test that the open file has been saved, tho in a separate window/process. > e ) edit $1; echo "Sourcing $1"; source $1; return 0 ;; ^ ... maybe something can be put in there that says: 'proceed no further until ...'. I'm thinking that maybe the fact that zsh calls geany, tho in another window, might give it some sort of 'handle' on it--seems intuitive that it would, because otherwise if geany made some trouble-- crashed or something--zsh would be ... well, what would it be? Dunno, but it's interesting. Or maybe the protocol is that the two separate shells have no crosstalk ... but that can't be true, because if you invoke geany from any shell, it pops you over to whatever shell geany is currently running in--so there is some communication. Geany 'here' knows that geany 'there' is already running. But maybe zsh keeps its nose out of that completely. Geany is the only program I can think of that does that sort of thing, which is a good reason why zsh might not want anything to do with it.