aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2005-12-03 11:04:17 +0000
committerAlan Mackenzie2005-12-03 11:04:17 +0000
commit6faed041c71e6ef956fdfccacf0417bcc132d48f (patch)
tree63f848e70818a82a05fc57bb4e4ba711170040cc
parentd20a1ebb1774129d93265d885ca74b5275eb3c77 (diff)
downloademacs-6faed041c71e6ef956fdfccacf0417bcc132d48f.tar.gz
emacs-6faed041c71e6ef956fdfccacf0417bcc132d48f.zip
Relace a `mapcan' with an "apply (n-conc (mapcar ....... ))".
-rw-r--r--lisp/progmodes/cc-langs.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index de2dab7ebc0..3c1df93e0f9 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -2580,15 +2580,17 @@ is in effect or not."
2580 (when (boundp (c-mode-symbol "font-lock-extra-types")) 2580 (when (boundp (c-mode-symbol "font-lock-extra-types"))
2581 (c-mode-var "font-lock-extra-types"))) 2581 (c-mode-var "font-lock-extra-types")))
2582 (regexp-strings 2582 (regexp-strings
2583 (mapcan (lambda (re) 2583 (apply 'nconc
2584 (mapcar (lambda (re)
2584 (when (string-match "[][.*+?^$\\]" re) 2585 (when (string-match "[][.*+?^$\\]" re)
2585 (list re))) 2586 (list re)))
2586 extra-types)) 2587 extra-types)))
2587 (plain-strings 2588 (plain-strings
2588 (mapcan (lambda (re) 2589 (apply 'nconc
2590 (mapcar (lambda (re)
2589 (unless (string-match "[][.*+?^$\\]" re) 2591 (unless (string-match "[][.*+?^$\\]" re)
2590 (list re))) 2592 (list re)))
2591 extra-types))) 2593 extra-types))))
2592 (concat "\\<\\(" 2594 (concat "\\<\\("
2593 (c-concat-separated 2595 (c-concat-separated
2594 (append (list (c-make-keywords-re nil 2596 (append (list (c-make-keywords-re nil