zsh-workers
 help / color / mirror / code / Atom feed
* Question about _complete_help
@ 1999-12-06 15:36 Andrej Borsenkow
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 1999-12-06 15:36 UTC (permalink / raw)
  To: ZSH workers mailing list

I noted some difference between doc and actual output. Doc states:

The completion system represents such a context as a hierarchical name
with components separated by colons. For example the name
:complete:dvips:-o-1 is used when completing the first argument of the
-o option of the dvips command.

where actual output of _complete_help gives:

bor@itsrm2:~%> dvips -o ^Xh
tags in context `:complete::dvips::-o-1':
    arguments
    globbed-files directories all-files

Are these double colons significant? This is really misleading. Note that for
the command position:

bor@itsrm2:~%>
tags in context `:complete:-command-':
    commands executables jobs builtins functions aliases reserved-words
    jobs

these double colons do not appear.

/andrej


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

* Re: Question about _complete_help
@ 1999-12-07  8:22 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-12-07  8:22 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> I noted some difference between doc and actual output. Doc states:
> 
> The completion system represents such a context as a hierarchical name
> with components separated by colons. For example the name
> :complete:dvips:-o-1 is used when completing the first argument of the
> -o option of the dvips command.

Then your doc is out-of-date. At least mine says `:complete::dvips::-o-1'
and that ever since I made the command name be surrounded by double
colons, as you observed looking at the output of _complete_help:

> where actual output of _complete_help gives:
> 
> bor@itsrm2:~%> dvips -o ^Xh
> tags in context `:complete::dvips::-o-1':
>     arguments
>     globbed-files directories all-files
> 
> Are these double colons significant? This is really misleading. Note that for
> the command position:
> 
> bor@itsrm2:~%>
> tags in context `:complete:-command-':
>     commands executables jobs builtins functions aliases reserved-words
>     jobs
> 
> these double colons do not appear.

That's right. The double colons are *only* used around command names,
to make it very easy to unambiguously match it. See 8777 for further
enlightenment (and the up-to-date version of the docs, where I
mentioned this explicitly).


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

end of thread, other threads:[~1999-12-07  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-06 15:36 Question about _complete_help Andrej Borsenkow
1999-12-07  8:22 Sven Wischnowsky

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