zsh-users
 help / color / mirror / code / Atom feed
* ${(k)widgets} v. 'zle -la'
@ 2016-07-05  4:57 Daniel Shahaf
  2016-07-05 21:01 ` Bart Schaefer
       [not found] ` <160705140120.ZM17175__36700.8317648017$1467752558$gmane$org@torch.brasslantern.com>
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel Shahaf @ 2016-07-05  4:57 UTC (permalink / raw)
  To: zsh-users

$ zsh -f
% bindkey zzzzzz foobar
% zle -la | grep foobar                   
% print -rl -- ${(k)widgets} | grep foobar 
foobar
% 

Is it intentional that 'foobar' is listed by 'zle -la' but not by
${(k)widgets}?  I'd expected those two to enumerate the same set of
widgets.

Observations:

- The manual speaks of "all existing widgets" for the former and of "all
  defined widgets" for the latter.

- The thingy has the 'DISABLED' flag:

  (gdb) p *(Thingy)thingytab->getnode2(thingytab, "foobar") 
  $1 = {next = 0x7ffff5e73688 <thingies+5640>, nam = 0x6fb210 "foobar", flags = 1, rc = 1, widget = 0x0, samew = 0x0}


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-13  8:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-05  4:57 ${(k)widgets} v. 'zle -la' Daniel Shahaf
2016-07-05 21:01 ` Bart Schaefer
     [not found] ` <160705140120.ZM17175__36700.8317648017$1467752558$gmane$org@torch.brasslantern.com>
2016-07-07  2:00   ` Daniel Shahaf
2016-07-07 16:49     ` Bart Schaefer
     [not found]     ` <160707094921.ZM23499__38105.0642965876$1467910230$gmane$org@torch.brasslantern.com>
2016-07-13  4:59       ` Daniel Shahaf
2016-07-13  8:23         ` Peter Stephenson

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).