diff options
| author | Stefan Monnier | 2009-10-22 03:25:54 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-10-22 03:25:54 +0000 |
| commit | 56b14058a411bfc742848c03c13323c61ac9ff8a (patch) | |
| tree | 36219df0ab245bdf1aae01810643e56cfbf47f7b | |
| parent | 3170b794591682ca5915f8229a15edcb40e479dd (diff) | |
| download | emacs-56b14058a411bfc742848c03c13323c61ac9ff8a.tar.gz emacs-56b14058a411bfc742848c03c13323c61ac9ff8a.zip | |
(pcmpl-gnu-makefile-names): Use a single call to pcomplete-entries.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/pcmpl-gnu.el | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index acdd6164da5..95ab875f504 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-10-22 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-10-22 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * pcmpl-gnu.el (pcmpl-gnu-makefile-names): Use a single call to | ||
| 4 | pcomplete-entries. | ||
| 5 | |||
| 3 | * comint.el (comint-read-input-ring, comint-write-input-ring) | 6 | * comint.el (comint-read-input-ring, comint-write-input-ring) |
| 4 | (comint-substitute-in-file-name) | 7 | (comint-substitute-in-file-name) |
| 5 | (comint-dynamic-complete-as-filename) | 8 | (comint-dynamic-complete-as-filename) |
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 @@ | |||
| 102 | 102 | ||
| 103 | (defun pcmpl-gnu-makefile-names () | 103 | (defun pcmpl-gnu-makefile-names () |
| 104 | "Return a list of possible makefile names." | 104 | "Return a list of possible makefile names." |
| 105 | (let ((names (list t)) | 105 | (pcomplete-entries (mapconcat 'identity pcmpl-gnu-makefile-regexps "\\|"))) |
| 106 | (reg pcmpl-gnu-makefile-regexps)) | ||
| 107 | (while reg | ||
| 108 | (nconc names (pcomplete-entries (car reg))) | ||
| 109 | (setq reg (cdr reg))) | ||
| 110 | (cdr names))) | ||
| 111 | 106 | ||
| 112 | (defun pcmpl-gnu-make-rule-names () | 107 | (defun pcmpl-gnu-make-rule-names () |
| 113 | "Return a list of possible make rule names in MAKEFILE." | 108 | "Return a list of possible make rule names in MAKEFILE." |