Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Deliberately abstract question about calling zle widgets
- X-seq: zsh-workers 39001
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Deliberately abstract question about calling zle widgets
- Date: Fri, 5 Aug 2016 16:19:37 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;        h=from:message-id:date:to:subject:mime-version;        bh=e1wkpQgUnL5z/+xea8TZgLpMYuzGKUvIjTBch4pY+6w=;        b=RQFVdLLu8vA5TfuwqzukbPfKlcHdE/K0hNzNxWpNWe1dkq8QVSr2YWBn/HpasfyWMY         8K9fdMd73dICWzfA7XGMq98Y469vzE1AS1JXGFTBDBUSAWVZTvy5sM4euTPdeRoJWuiu         XXSQkal2irYwGTuxIvfXmeSHJLNyfHSleSyFxEzzJ5cc6kWB1b5+d7qS+64DMmEHTMsQ         cgPfnZc+th5tLRpaa1Geh4dLhOs4la5hG3PDDq7Mlz3Kkc5P5qEqESSqLRzVIhbcA2XE         +Xo8AMtY0bxCIlW7kM1VfQo3iDi6MnBqnoFhWBOiigKoys5dnICKQFkXJw9dYcAeiWF/         Ng+Q==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author