From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8872 invoked by alias); 23 Mar 2013 17:15:55 -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: 31175 Received: (qmail 29633 invoked from network); 23 Mar 2013 17:15:43 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: zsh-workers@zsh.org Subject: [PATCH 3/2] Add documentation for the new -i and -f options of vared Date: Sat, 23 Mar 2013 18:07:01 +0100 Message-Id: <1364058421-24479-1-git-send-email-ft@bewatermyfriend.org> X-Mailer: git-send-email 1.8.2.rc1 In-Reply-To: <1364049998-22603-1-git-send-email-ft@bewatermyfriend.org> References: <1364049998-22603-1-git-send-email-ft@bewatermyfriend.org> X-Df-Sender: [pbs]MzQ5NTM4 --- Doc/Zsh/zle.yo | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 3e8c25a..3549fda 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -308,6 +308,7 @@ cindex(parameters, editing) cindex(editing parameters) xitem(tt(vared) [ tt(-Aache) ] [ tt(-p) var(prompt) ] [ tt(-r) var(rprompt) ]) xitem( [ tt(-M) var(main-keymap) ] [ tt(-m) var(vicmd-keymap) ]) +xitem( [ tt(-i) var(init-widget) ] [ tt(-f) var(finish-widget) ]) item( [ tt(-t) var(tty) ] var(name))( The value of the parameter var(name) is loaded into the edit buffer, and the line editor is invoked. When the editor exits, @@ -343,6 +344,10 @@ to override tt(viins) and tt(vicmd). For emacs-style editing, only tt(-M) is normally needed but the tt(-m) option may still be used. On exit, the previous keymaps will be restored. +tt(Vared) calls the usual `tt(zle-line-init)' and `tt(zle-line-finish)' +hooks before and after it takes control. Using the tt(-i) and tt(-f) +options, it is possible to replace these with other costum widgets. + If `tt(-t) var(tty)' is given, var(tty) is the name of a terminal device to be used instead of the default tt(/dev/tty). If var(tty) does not refer to a terminal an error is reported. -- 1.8.2.rc1