* lisp/pcmpl-rpm.el (pcomplete/rpm): Minor simplification.

This commit is contained in:
Stefan Monnier 2011-06-15 14:40:00 -04:00
parent cb581a672b
commit 9ffdd3baa7
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,7 @@
2011-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
* pcmpl-rpm.el (pcomplete/rpm): Minor simplification.
* emacs-lisp/debug.el (debug): Don't leave the buffer in Debugger.
* abbrev.el (define-abbrev-table): Don't add a table multiple times.

View file

@ -313,9 +313,9 @@
(if (pcomplete-match "^-" 0)
(pcomplete-opt "v")
(pcomplete-here
(if (eq mode 'test)
(pcomplete-dirs-or-entries "\\.tar\\'")
(pcomplete-dirs-or-entries "\\.spec\\'"))))))
(pcomplete-dirs-or-entries (if (eq mode 'test)
"\\.tar\\'"
"\\.spec\\'"))))))
(t
(error "You must select a mode: -q, -i, -U, --verify, etc"))))))