zsh-workers
 help / color / mirror / code / Atom feed
* Something odd is going on with completion contexts
@ 2002-03-17 17:37 Bart Schaefer
  2002-03-17 17:58 ` PATCH: " Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2002-03-17 17:37 UTC (permalink / raw)
  To: zsh-workers

Here's <C-x h> output from the latest zsh in CVS:

schaefer<500> ls
tags in context :completion::complete:-s::
    argument-rest options  (_arguments _ls _dispatch)
tags in context :completion::complete:-s:argument-rest:
    globbed-files  (_files _arguments _ls _dispatch)

Note that the context-or-command field of the context name string is `-s'
when it should be `ls'.  In fact, it's *always* `-s' no matter what the
command name is:

schaefer<500> gzip
tags in context :completion::complete:-s::
    argument-rest options  (_arguments _gzip _dispatch)
tags in context :completion::complete:-s:argument-rest:
    globbed-files  (_files _gzip _dispatch) 
    directories    (_files _gzip _dispatch) 
    all-files      (_files _gzip _dispatch)

schaefer<500> cvs up
tags in context :completion::approximate-1:-s::
    argument-rest options  (_arguments _cvs _dispatch)
tags in context :completion::approximate-1:-s:argument-rest:
    commands  (_cvs_command _arguments _cvs _dispatch)
tags in context :completion::approximate:::
    corrections original  (_approximate)
tags in context :completion::complete:-s::
    argument-rest options  (_arguments _cvs _cvs _dispatch)
tags in context :completion::complete:-s:argument-rest:
    commands  (_cvs_command _arguments _cvs _cvs _dispatch)

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* PATCH: Re: Something odd is going on with completion contexts
  2002-03-17 17:37 Something odd is going on with completion contexts Bart Schaefer
@ 2002-03-17 17:58 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2002-03-17 17:58 UTC (permalink / raw)
  To: zsh-workers

That was a lot easier to track down than I expected it to be.

[Aside: Email to brasslantern.com is down until sometime Monday morning
(US Pacific Time) because of a problem my ISP is having with *its* ISP.
This message is going out through zanshin, but I won't see replies until
that gets resolved.]

--- ../zsh-forge/current/Completion/Base/Core/_dispatch	Wed Mar 13 08:32:31 2002
+++ Completion/Base/Core/_dispatch	Sun Mar 17 09:51:13 2002
@@ -7,6 +7,7 @@
 
 if [[ "$1" = -s ]]; then
   noskip=yes
+  shift
 fi
 
 [[ -z "$noskip" ]] && _compskip=


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

end of thread, other threads:[~2002-03-17 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-17 17:37 Something odd is going on with completion contexts Bart Schaefer
2002-03-17 17:58 ` PATCH: " 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).