From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26150 invoked by alias); 16 Jul 2014 14:04:50 -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: X-Seq: 32870 Received: (qmail 22333 invoked from network); 16 Jul 2014 14:04:44 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7fac6d000006cfe-1a-53c6841a60ec To: undisclosed-recipients: ; Date: Wed, 16 Jul 2014 14:54:33 +0100 From: Peter Stephenson Cc: zsh-workers@zsh.org Subject: Re: implicit previous command, only state what should change Message-id: <20140716145433.073fda81@pwslap01u.europe.root.pri> In-reply-to: <87bnsq9m30.fsf@debian.uxu> References: <874myk3ocp.fsf@debian.uxu> <20140715175808.660f4832@pwslap01u.europe.root.pri> <87bnsq9m30.fsf@debian.uxu> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t/xa7pSLceCDf7dELU42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGZfmf2IruM9Rcb71MGMD4y+2LkZODgkBE4lfJz4yQthiEhfu rQeKc3EICSxllPg7dxorSEJEQEZi7uzHrBCJ5UwS037fAEuwCKhKTLt+hgXEZhMwlJi6aTbQ JA4OZgFxidlTAkHCwgKuEtMvf2AHsXkF7CWOPz0LtphTQENi3/NusFYhgUqJ+x92MIPY/AL6 Elf/fmKCOMheYuaVM4wQvYISPybfA6tnFtCS2LytiRXClpfYvOYt8wRGwVlIymYhKZuFpGwB I/MqRtHU0uSC4qT0XEO94sTc4tK8dL3k/NxNjJDQ/LKDcfExq0OMAhyMSjy8DLOPBguxJpYV V+YeYpTgYFYS4XXwPxYsxJuSWFmVWpQfX1Sak1p8iJGJg1OqgZEvY/+eTQ0rMiY9m3dif6NN 7PSYvwnGZ+MWXvQodpqokf+ecUdv6YbTMimrXXZWzTeeULM83VektG7x6xalsDnatT//Pcop qLnScvqPxMenSxtUsjQuRz1dx3yq3u7+n0+non5fLshuXCTz/1bYCrvX2m/6bSOfVk5O1D1b tdTKlO93YiS79gklluKMREMt5qLiRAAam/pBKwIAAA== On Wed, 16 Jul 2014 02:36:03 +0200 Emanuel Berg wrote: > Peter Stephenson writes: > > >> Let's say I write: $ grep user-home-directory *.el > >> After that, I realize that it should have been > >> user-emacs-directory'. Is there a way to tell zsh > >> to "execute the previous command again, only > >> substitute the first argument for > >> user-emacs-directory"? > > > > The read-from-minibufer change is a bug fix: NUMERIC > > was being propagated down to the first command read > > within the recursive edit. I suspect that might be > > regarded as a bug in recursive-edit. > > ??? The bit you quote is a reference to the details of the patch, which you can ignore unless you're particularly interested in the implementation. What I should have said but didn't was, here's a new function called replace-argument that does that. That was in the body of the patch, but unless you're programmed to look at zsh code patches when a new message arrives you wouldn't notice. I'll commit it when I have a couple of minutes spare. pws