From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Can't redefine execute-named-cmd ??
Date: Mon, 21 Mar 2005 01:50:30 +0000 [thread overview]
Message-ID: <1050321015030.ZM11555@candle.brasslantern.com> (raw)
If I run these commands:
execute-named-cmd() { zle -R HERE; sleep 2; zle .execute-named-cmd "$@" }
zle -N execute-named-cmd
and I then invoke execute-named-cmd, I go directly to the "execute:"
prompt, with no display of "HERE" and no sleep.
Furthermore, if instead I do this:
execute-widget() { zle -R HERE; sleep 2; zle .execute-named-cmd "$@" }
zle -N execute-widget
bindkey '\ex' execute-widget
and then I invoke execute-widget, the shell displays HERE for two seconds
and then crashes. This happens whether or not I have the leading dot in
the widget name, is NOT affected by the presence or absence of "$@", and
happens even when "zle -N execute-named-cmd" has NOT been run.
This applies to 4.2.4 as well as to the latest CVS.
next reply other threads:[~2005-03-21 1:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-21 1:50 Bart Schaefer [this message]
2005-03-21 11:13 ` Peter Stephenson
2005-03-21 11:24 ` Geoff Wing
2005-03-21 16:11 ` Bart Schaefer
2005-03-21 16:57 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1050321015030.ZM11555@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).