From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: zle_line_init_functions (Re: accept-line-and-down-history and push-input)
Date: Mon, 01 Nov 2010 00:01:58 -0700 [thread overview]
Message-ID: <101101000158.ZM32338@torch.brasslantern.com> (raw)
In-Reply-To: <20101031215450.06b7ed7b@pws-pc.ntlworld.com>
On Oct 31, 9:54pm, Peter Stephenson wrote:
}
} > I'd amend to suggest a second nameless widget that can't be
} > replaced by "zle -N" whose purpose is to walk the array, following
} > the structure of your patch in user/15493 more closely.
}
} Alas, it still doesn't work. Because the widget is built-in, there's
} no point at which the zle parameters get added --- the hierarchy is
} builtin widget -> ordinary shell function
Ah, and hmm. So there's no clever way to pull off the equivalent of
(pseudo-code):
zle -N hook-runner (){ local f; for f in ... }
I.e., take an anonymous function that does what you want and make a
user-defined widget out of it?
prev parent reply other threads:[~2010-11-01 7:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTin4qeNKcBt_TDzY2xt-XJ6aHVH257FOa6iriPSm@mail.gmail.com>
[not found] ` <101026075546.ZM28500@torch.brasslantern.com>
[not found] ` <20101026161947.19279c58@pwslap01u.europe.root.pri>
2010-10-27 5:01 ` Bart Schaefer
2010-10-27 9:22 ` Peter Stephenson
2010-10-27 15:40 ` Bart Schaefer
2010-10-31 21:54 ` Peter Stephenson
2010-11-01 7:01 ` Bart Schaefer [this message]
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=101101000158.ZM32338@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).