* Re: completion in 3.1.9
@ 2000-07-24 9:01 Sven Wischnowsky
0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2000-07-24 9:01 UTC (permalink / raw)
To: zsh-workers
Chmouel Boudjnah wrote:
> "Bart Schaefer" <schaefer@candle.brasslantern.com> writes:
>
> > It's easy to generate patches against known past revisions with cvs.
> > What I don't know for sure is whether any of the following depends on
> > any of the other changes to Zle/*.c in order to work properly.
>
> yep he does, i tried this to copy the _rpm in $fndir but i am sure it
> depend of some .c files and i can't find where exactly :-(
If at all, I'd suspect 12241 and the follow-up 12266.
And maybe 12119.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: completion in 3.1.9
2000-07-22 4:00 ` Bart Schaefer
@ 2000-07-22 7:26 ` Chmouel Boudjnah
0 siblings, 0 replies; 4+ messages in thread
From: Chmouel Boudjnah @ 2000-07-22 7:26 UTC (permalink / raw)
To: zsh-workers
"Bart Schaefer" <schaefer@candle.brasslantern.com> writes:
> It's easy to generate patches against known past revisions with cvs.
> What I don't know for sure is whether any of the following depends on
> any of the other changes to Zle/*.c in order to work properly.
yep he does, i tried this to copy the _rpm in $fndir but i am sure it
depend of some .c files and i can't find where exactly :-(
--
MandrakeSoft Inc http://www.mandrakesoft.com
San-Francisco, CA USA --Chmouel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: completion in 3.1.9
2000-07-21 17:36 Chmouel Boudjnah
@ 2000-07-22 4:00 ` Bart Schaefer
2000-07-22 7:26 ` Chmouel Boudjnah
0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2000-07-22 4:00 UTC (permalink / raw)
To: Chmouel Boudjnah, zsh-workers
On Jul 21, 10:36am, Chmouel Boudjnah wrote:
} Subject: completion in 3.1.9
}
} In pristine 3.1.9 the completion has the problem i have reported a
} while ago and it was corrected in the cvs tree. [...]
} would be possible to have a backward patches, i can't find it in the
} archives of the ml.
It was article 12225, which can be discovered by searching for _rpm in
the ChangeLog file.
It's easy to generate patches against known past revisions with cvs.
What I don't know for sure is whether any of the following depends on
any of the other changes to Zle/*.c in order to work properly.
zagzig[200] cvs -z3 diff -rzsh-3_1_9 -u Completion/Linux/_rpm
Index: Completion/Linux/_rpm
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/_rpm,v
retrieving revision 1.13
retrieving revision 1.15
diff -u -r1.13 -r1.15
--- Completion/Linux/_rpm 2000/06/05 02:23:53 1.13
+++ Completion/Linux/_rpm 2000/07/12 09:01:41 1.15
@@ -41,7 +41,7 @@
# Used by `_arguments', made local here.
-local curcontext="$curcontext" state lstate line
+local curcontext="$curcontext" state lstate line nm="$compstate[nmatches]"
typeset -A opt_args
state=''
@@ -211,12 +211,14 @@
_files -g \*.spec && ret=0
;;
package_file)
- if compset -P '(f|ht)tp://'; then
- _hosts -S/ && ret=0
+ _wanted files expl 'RPM package file' \
+ _files -g '*.(#i)rpm' && ret=0
+ if [[ -prefix 1 (f|ht)tp:// ]]; then
+ _wanted urls expl 'URL of RPM package file' \
+ _urls -f -g '*.(#i)rpm' "${expl[@]}" && ret=0
else
- _alternative \
- 'files:RPM package file:_files -g \*.\(\#i\)rpm' \
- 'prefixes:URL prefix:compadd ftp:// http://' && ret=0
+ _wanted urls expl 'URL of RPM package file' \
+ compadd -S '' "${expl[@]}" ftp:// http:// && ret=0
fi
;;
package_src)
@@ -244,6 +246,8 @@
_files "$expl[@]" -/ && ret=0
;;
esac
+
+ [[ ret -eq 0 || $nm -ne $compstate[nmatches] ]] && return 0
done
return ret
--
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] 4+ messages in thread
* completion in 3.1.9
@ 2000-07-21 17:36 Chmouel Boudjnah
2000-07-22 4:00 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Chmouel Boudjnah @ 2000-07-21 17:36 UTC (permalink / raw)
To: zsh-workers
Hi,
In pristine 3.1.9 the completion has the problem i have reported a
while ago and it was corrected in the cvs tree. The problem is when
for example rpm don't expand options with --. Demo :
(chmou@kenobi)[~]-% rpm --[TAB]
--help -- print help message
--setperms -- set file permissions
--setugids -- set file owner/group
[.. OK ..], but :
(chmou@kenobi)[~]-% rpm -qp --[TAB]
here nothing is completed when with the version of the cvs he do :
(chmou@cassini)[~]-% rpm -qp --[TAB]
--changelog -- display change log
--dump -- show all information
--requires -- list dependencies
[...]
would be possible to have a backward patches, i can't find it in the
archives of the ml.
--
MandrakeSoft Inc http://www.mandrakesoft.com
San-Francisco, CA USA --Chmouel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-07-24 9:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-24 9:01 completion in 3.1.9 Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-07-21 17:36 Chmouel Boudjnah
2000-07-22 4:00 ` Bart Schaefer
2000-07-22 7:26 ` Chmouel Boudjnah
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).