summaryrefslogtreecommitdiff
path: root/lisp/pcmpl-gnu.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2009-10-22 03:25:54 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2009-10-22 03:25:54 +0000
commit56b14058a411bfc742848c03c13323c61ac9ff8a (patch)
tree36219df0ab245bdf1aae01810643e56cfbf47f7b /lisp/pcmpl-gnu.el
parent3170b794591682ca5915f8229a15edcb40e479dd (diff)
downloademacs-56b14058a411bfc742848c03c13323c61ac9ff8a.tar.gz
(pcmpl-gnu-makefile-names): Use a single call to pcomplete-entries.
Diffstat (limited to 'lisp/pcmpl-gnu.el')
-rw-r--r--lisp/pcmpl-gnu.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/lisp/pcmpl-gnu.el b/lisp/pcmpl-gnu.el
index b2c7e0998b9..b7f2f1ecab6 100644
--- a/lisp/pcmpl-gnu.el
+++ b/lisp/pcmpl-gnu.el
@@ -102,12 +102,7 @@
(defun pcmpl-gnu-makefile-names ()
"Return a list of possible makefile names."
- (let ((names (list t))
- (reg pcmpl-gnu-makefile-regexps))
- (while reg
- (nconc names (pcomplete-entries (car reg)))
- (setq reg (cdr reg)))
- (cdr names)))
+ (pcomplete-entries (mapconcat 'identity pcmpl-gnu-makefile-regexps "\\|")))
(defun pcmpl-gnu-make-rule-names ()
"Return a list of possible make rule names in MAKEFILE."