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

(pcmpl-gnu-makefile-names): Use a single call to pcomplete-entries.

This commit is contained in:
Stefan Monnier 2009-10-22 03:25:54 +00:00
parent 3170b79459
commit 56b14058a4
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,8 @@
2009-10-22 Stefan Monnier <monnier@iro.umontreal.ca>
* pcmpl-gnu.el (pcmpl-gnu-makefile-names): Use a single call to
pcomplete-entries.
* comint.el (comint-read-input-ring, comint-write-input-ring)
(comint-substitute-in-file-name)
(comint-dynamic-complete-as-filename)

View File

@ -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."