From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id PAA26094 for ; Sun, 21 Jul 1996 15:23:40 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id BAA08560; Sun, 21 Jul 1996 01:15:19 -0400 (EDT) Resent-Date: Sun, 21 Jul 1996 01:15:19 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960720221623.ZM16761@candle.brasslantern.com> Date: Sat, 20 Jul 1996 22:16:23 -0700 Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.702 02jul96) To: zsh-workers@math.gatech.edu Subject: Does run-help work as intended? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"IbYPU1.0.d52.cpRyn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1728 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Please forgive my nit-picking, but ... in zle_bindings.c we find: {"run-help", processcmd, ZLE_MENUCMP}, If I'm not mistaken, the ZLE_MENUCMP there means that typing should not interrupt a menu completion in progress. That is, during a command completion when menu-cycling through choices, I should be able to invoke run-help on a command, decide that's not the one I wanted, and proceed to complete the next command in the cycle. Unfortunately, this doesn't work, though it would be wonderful if it did. processcmd(), the internal implementation of run-help, uses pushline() to save the current command line, then inserts the new "run-help ..." command. This means that ZLE reads the "run-help ..." as if it were typed input; so the last ZLE action seen before the line is reprinted is not run-help, but accept-line. Thus the menu completion stops, no matter what flags are attached to "run-help"; ZLE_MENUCMP might as well not be there. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern New male in /home/schaefer: >N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"