Commit 1258fede authored by Chong Yidong's avatar Chong Yidong

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

parent 84353206
...@@ -135,7 +135,9 @@ You can use \\[report-emacs-bug] to do so." ...@@ -135,7 +135,9 @@ You can use \\[report-emacs-bug] to do so."
(pcmpl-rpm-all-query "--requires"))))) (pcmpl-rpm-all-query "--requires")))))
(if (pcomplete-match "^-" 0) (if (pcomplete-match "^-" 0)
(pcomplete-opt "af.p(pcmpl-rpm-files)ilsdcvR") (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-test "--pipe")
(pcomplete-here* (funcall pcomplete-command-completion-function))) (pcomplete-here* (funcall pcomplete-command-completion-function)))
((pcomplete-test "--rmsource") ((pcomplete-test "--rmsource")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment