zsh-workers
 help / color / mirror / code / Atom feed
* Re: How to change order of completions?
       [not found]   ` <515CD2BE.1010701@gmail.com>
@ 2013-04-04 15:22     ` Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2013-04-04 15:22 UTC (permalink / raw)
  To: zsh-workers

On Wednesday, April 3, 2013 3:35:45 PM, Bart Schaefer wrote:
> 
> schaefer<513> vi
> tags in context :completion::complete:vi::
>      tex-files  (_files _default (eval))
>      src-files  (_files _default (eval))
>      all-files  (_files _default (eval))

Shouldn't we filter the (eval) out of that?  This seems to be a case of
_complete_help (specifically _help_sort_tags) not keeping up with a
change to the contents of $funcstack.


Index: Completion/Base/Widget/_complete_help
===================================================================
--- Completion/Base/Widget/_complete_help       26 Nov 2007 17:38:13 -0000
+++ Completion/Base/Widget/_complete_help       4 Apr 2013 15:19:45 -0000
@@ -73,7 +73,7 @@
 }
 
 _help_sort_tags() {
-  local f="${${(@)${(@)funcstack[3,(i)_(main_complete|complete|approximate|normal)]}:#_(dispatch|wanted|requested|all_labels|next_label)}% *}"
+  local f="${${(@)${(@)funcstack[3,(i)_(main_complete|complete|approximate|normal)]}:#(_(dispatch|wanted|requested|all_labels|next_label)|\(eval\))}% *}"
 
   if [[ "$help_funcs[$curcontext]" != *${f}* ||
         "$help_tags[${curcontext}${f}]" != *(${(j:|:)~argv})* ]]; then

(Someone will need to commit that for me until I have git fully set up.)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-04 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <515CA1AD.8000108@gmail.com>
     [not found] ` <130403153545.ZM1451@torch.brasslantern.com>
     [not found]   ` <515CD2BE.1010701@gmail.com>
2013-04-04 15:22     ` How to change order of completions? Bart Schaefer

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