]> git.eshelyaron.com Git - emacs.git/commitdiff
(pcomplete/rpm): Make "rpm -qp" use file completion.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 23 Oct 2008 22:09:09 +0000 (22:09 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 23 Oct 2008 22:09:09 +0000 (22:09 +0000)
lisp/pcmpl-rpm.el

index 99e42e87edd5d7732b113d9c12020d4a21060998..19dca7564a5aa679779fd3921e2caa152fcd8d60 100644 (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")