diff options
author | Alan Mackenzie <[email protected]> | 2005-12-03 11:04:17 +0000 |
---|---|---|
committer | Alan Mackenzie <[email protected]> | 2005-12-03 11:04:17 +0000 |
commit | 6faed041c71e6ef956fdfccacf0417bcc132d48f (patch) | |
tree | 63f848e70818a82a05fc57bb4e4ba711170040cc /lisp/progmodes/cc-langs.el | |
parent | d20a1ebb1774129d93265d885ca74b5275eb3c77 (diff) |
Relace a `mapcan' with an "apply (n-conc (mapcar ....... ))".
Diffstat (limited to 'lisp/progmodes/cc-langs.el')
-rw-r--r-- | lisp/progmodes/cc-langs.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index de2dab7ebc..3c1df93e0f 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el @@ -2580,15 +2580,17 @@ is in effect or not." (when (boundp (c-mode-symbol "font-lock-extra-types")) (c-mode-var "font-lock-extra-types"))) (regexp-strings - (mapcan (lambda (re) + (apply 'nconc + (mapcar (lambda (re) (when (string-match "[][.*+?^$\\]" re) (list re))) - extra-types)) + extra-types))) (plain-strings - (mapcan (lambda (re) + (apply 'nconc + (mapcar (lambda (re) (unless (string-match "[][.*+?^$\\]" re) (list re))) - extra-types))) + extra-types)))) (concat "\\<\\(" (c-concat-separated (append (list (c-make-keywords-re nil |