diff options
| author | Richard M. Stallman | 2003-07-13 00:20:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-07-13 00:20:39 +0000 |
| commit | 485fe977a0675ce3fad9b14ce187341d40d684f8 (patch) | |
| tree | d83a88f5d2e1859ae5134cf5669392c9e722de6f | |
| parent | 19c5fddbc3f8a8da51fbf2fb78fae04adebdae86 (diff) | |
| download | emacs-485fe977a0675ce3fad9b14ce187341d40d684f8.tar.gz emacs-485fe977a0675ce3fad9b14ce187341d40d684f8.zip | |
(c-declare-lang-variables): Don't use mapcan.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 13 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 507f9b0496a..eb35550cbf7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2003-07-12 Richard M. Stallman <rms@gnu.org> | 1 | 2003-07-12 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * progmodes/cc-engine.el (c-declare-lang-variables): Don't use mapcan. | ||
| 4 | |||
| 5 | * progmodes/cc-defs.el (c-make-keywords-re): | ||
| 6 | Don't use delete-duplicates. | ||
| 7 | (c-lang-const): Don't use mapcan. | ||
| 8 | |||
| 3 | * apropos.el (apropos-show-scores): Make it customizable. | 9 | * apropos.el (apropos-show-scores): Make it customizable. |
| 4 | Document new meaning. | 10 | Document new meaning. |
| 5 | (apropos): Compute scores from symbols. | 11 | (apropos): Compute scores from symbols. |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 7d0d146a744..dd1e1d62974 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -155,12 +155,13 @@ | |||
| 155 | 155 | ||
| 156 | (defmacro c-declare-lang-variables () | 156 | (defmacro c-declare-lang-variables () |
| 157 | `(progn | 157 | `(progn |
| 158 | ,@(mapcan (lambda (init) | 158 | ,@(apply 'nconc |
| 159 | `(,(if (elt init 2) | 159 | (mapcar (lambda (init) |
| 160 | `(defvar ,(car init) nil ,(elt init 2)) | 160 | `(,(if (elt init 2) |
| 161 | `(defvar ,(car init) nil)) | 161 | `(defvar ,(car init) nil ,(elt init 2)) |
| 162 | (make-variable-buffer-local ',(car init)))) | 162 | `(defvar ,(car init) nil)) |
| 163 | (cdr c-lang-variable-inits)))) | 163 | (make-variable-buffer-local ',(car init)))) |
| 164 | (cdr c-lang-variable-inits))))) | ||
| 164 | (c-declare-lang-variables) | 165 | (c-declare-lang-variables) |
| 165 | 166 | ||
| 166 | 167 | ||