From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9341 invoked by alias); 13 Jun 2014 07:22:34 -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: 32773 Received: (qmail 20857 invoked from network); 13 Jun 2014 07:22:21 -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,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hrjukOm++gvsp41Q3nYUCdOOyP8XhTYN0CXkFIvHfx0=; b=oRUk9tdUz0MSf+yDz/BhrrSkgq1CvwliTY0hmtXgEfFS1MbnyNiLRxlzYbCDf6d7r7 QGU8hk6/6ShDDfWGvzk/C+jIscoVbpyhKlthYCy4kKxMxu6yfGLk3zZ/wBaDS2lIdDAU NFKHpic6RMdSUckFPHIVgtTnjqPOTSMGjDgBOpGdUyQRcrxdiyX5ygxjP/NNQU1I16H6 ZeeaRySeM4FolG7fYxMbjdCmVjz7PMv91rY4imp8BydvPtfVGDY/06EdVDb1muRzgbIO CXfbYncpfPZLhoAwjCQ9hPV7jK/ScZGpV3BJVA19GGoENfmIXoDY7VJoexnHUmZTmGya 4dHA== X-Received: by 10.69.31.139 with SMTP id km11mr1081654pbd.63.1402644138714; Fri, 13 Jun 2014 00:22:18 -0700 (PDT) Sender: Dave Yost From: Dave Yost X-Google-Original-From: Dave Yost Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: shell script that replaces the command line In-Reply-To: <140612234011.ZM4768@torch.brasslantern.com> Date: Fri, 13 Jun 2014 00:22:15 -0700 Cc: zsh-workers@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <5804CF24-1E69-4FD3-832C-4B642B010F86@yost.com> <140612234011.ZM4768@torch.brasslantern.com> To: Bart Schaefer X-Mailer: Apple Mail (2.1878.6) It would be good if "buffer stack" were in the index of the doc, and it = would be good if the PDF form of the doc had internal hyperlinks. On Thu 2014-06-12, at 11:40 PM, Bart Schaefer = wrote: > On Jun 12, 4:07pm, Dave Yost wrote: > } Subject: shell script that replaces the command line > } > } Can a shell function replace the command line contents? I know a > } widget can do it, but I can't see a way for a shell function to do > } that. >=20 > The "print -z ..." command loads the buffer stack, which is then = popped > into the editor buffer at the next prompt (e.g., after the calling > function/script exits).