# HG changeset patch # User Stefan Monnier # Date 1256181954 0 # Node ID 4d03be3df4fe983500ec2ebd6feaa8d5b2b90afd # Parent 56a197ab757cbed4623e0228563666096886c248 (pcmpl-gnu-makefile-names): Use a single call to pcomplete-entries. diff -r 56a197ab757c -r 4d03be3df4fe lisp/ChangeLog --- 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 + * 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) diff -r 56a197ab757c -r 4d03be3df4fe lisp/pcmpl-gnu.el --- 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."