zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Deliberately abstract question about calling zle widgets
Date: Fri, 5 Aug 2016 16:19:37 -0700	[thread overview]
Message-ID: <160805161937.ZM11838@torch.brasslantern.com> (raw)

Ignoring for the moment the pseudo-keymaps that switch on internal thingy
names of builtin widgets ... can anyone tell me whether the following is
a true assertion?

  Given an absence of other user-defined widgets and a function
    wrap_builtin_widget() { zle .$WIDGET "$@" }
  then for any (every) builtin widget bltinwid,
    zle -N bltinwid wrap_builtin_widget
  has no observable side-effects.

When I say "no side effects" I'm referring to things like loss of suffix
autoremoval when bltinwid is a completion widget, changed "undo" handling,
mishandled numeric prefixes, etc.  I'm not looking for obscure ways to
break it such as aliasing or disabling the zle command.

If the assertion is known to be false, please name any builtin widgets you
are aware of for which this assertion does not hold.

Thanks.


             reply	other threads:[~2016-08-05 23:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05 23:19 Bart Schaefer [this message]
2016-08-06  0:06 ` Daniel Shahaf

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=160805161937.ZM11838@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).