1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

(pcomplete/rpm): Make "rpm -qp" use file completion.

This commit is contained in:
Chong Yidong 2008-10-23 22:09:09 +00:00
parent 84353206b9
commit 1258fedec4

View File

@ -135,7 +135,9 @@ You can use \\[report-emacs-bug] to do so."
(pcmpl-rpm-all-query "--requires")))))
(if (pcomplete-match "^-" 0)
(pcomplete-opt "af.p(pcmpl-rpm-files)ilsdcvR")
(pcomplete-here (pcmpl-rpm-packages)))))
(if (pcomplete-test "-[^-]*p" 'first 1)
(pcomplete-here (pcmpl-rpm-files))
(pcomplete-here (pcmpl-rpm-packages))))))
((pcomplete-test "--pipe")
(pcomplete-here* (funcall pcomplete-command-completion-function)))
((pcomplete-test "--rmsource")