Mercurial > emacs
changeset 105704:4d03be3df4fe
(pcmpl-gnu-makefile-names): Use a single call to pcomplete-entries.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 22 Oct 2009 03:25:54 +0000 |
parents | 56a197ab757c |
children | 7aba6ca5f3d1 |
files | lisp/ChangeLog lisp/pcmpl-gnu.el |
diffstat | 2 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Thu Oct 22 03:24:31 2009 +0000 +++ b/lisp/ChangeLog Thu Oct 22 03:25:54 2009 +0000 @@ -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)
--- a/lisp/pcmpl-gnu.el Thu Oct 22 03:24:31 2009 +0000 +++ b/lisp/pcmpl-gnu.el Thu Oct 22 03:25:54 2009 +0000 @@ -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."