zsh-workers
 help / color / mirror / code / Atom feed
* BUG: Problem with _urls and small doc patch
@ 2000-04-27  6:51 Felix Rosencrantz
  0 siblings, 0 replies; only message in thread
From: Felix Rosencrantz @ 2000-04-27  6:51 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 791 bytes --]

I tried using completion with the _urls completer and noticed some strange
behavior:
        w3m http://local<TAB>_all_labels:39: command not found: -M       
host

I looked a little bit, and noticed the problem seems to come from this line:
_urls:52:      _wanted -C -f files _files "$@" && return 0

There may be other problems.  But it looks like there is a missing context
name.

-FR
ps i've included a patch to the manual to mention that _wanted takes the
-C flag.
/

__________________________________________________
Do You Yahoo!?
Talk to your friends online and get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

__________________________________________________
Do You Yahoo!?
Talk to your friends online and get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

[-- Attachment #2: _wanted-C_patch.txt --]
[-- Type: text/plain, Size: 970 bytes --]

--- zsh/Doc/Zsh/old.compsys.yo	Tue Apr 25 02:48:09 2000
+++ zsh/Doc/Zsh/compsys.yo	Wed Apr 26 22:45:33 2000
@@ -2586,7 +2586,7 @@
 done)
 )
 findex(_wanted)
-item(tt(_wanted) [ tt(-12VJ) ] var(tag) var(name) var(descr) var(command) var(args) ...)(
+item(tt(_wanted) [ tt(-C) var(name) ]  [ tt(-12VJ) ] var(tag) var(name) var(descr) var(command) var(args) ...)(
 In many contexts only one type of matches can be generated but even
 then it should be tested if the tag representing those matches is
 requested by the user. This function makes that easier.
@@ -2603,6 +2603,9 @@
 Unlike tt(_requested), however, tt(_wanted) can not be called without
 the var(command). That's because tt(_wanted) also implements the loop
 over the tags, not only the one for the labels.
+
+Like tt(_tags) this function supports the tt(-C) option to give a
+different name for the argument context field.
 )
 findex(_alternative)
 item(tt(_alternative) [ tt(-C) var(name) ] var(specs) ...)(

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

only message in thread, other threads:[~2000-04-27  6:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-27  6:51 BUG: Problem with _urls and small doc patch Felix Rosencrantz

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