diff options
| author | Juanma Barranquero | 2007-09-25 10:41:00 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-09-25 10:41:00 +0000 |
| commit | 5110e1660c9128dbded7dc05e08049d8c93f569b (patch) | |
| tree | 91d4a6ab41e83a366637b0c83662a4515adf0d28 | |
| parent | 1ffe7343fab7ee85cddc7ebf6d0abe0bfc0b90aa (diff) | |
| download | emacs-5110e1660c9128dbded7dc05e08049d8c93f569b.tar.gz emacs-5110e1660c9128dbded7dc05e08049d8c93f569b.zip | |
(produce-allout-mode-map, allout-process-exposed):
Use `mapc' rather than `mapcar'.
| -rw-r--r-- | lisp/allout.el | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/allout.el b/lisp/allout.el index d243a188812..a827d6162c5 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -1130,17 +1130,17 @@ Built on top of optional BASE-MAP, or empty sparse map if none specified. | |||
| 1130 | See doc string for allout-keybindings-list for format of binding list." | 1130 | See doc string for allout-keybindings-list for format of binding list." |
| 1131 | (let ((map (or base-map (make-sparse-keymap))) | 1131 | (let ((map (or base-map (make-sparse-keymap))) |
| 1132 | (pref (list allout-command-prefix))) | 1132 | (pref (list allout-command-prefix))) |
| 1133 | (mapcar (function | 1133 | (mapc (function |
| 1134 | (lambda (cell) | 1134 | (lambda (cell) |
| 1135 | (let ((add-pref (null (cdr (cdr cell)))) | 1135 | (let ((add-pref (null (cdr (cdr cell)))) |
| 1136 | (key-suff (list (car cell)))) | 1136 | (key-suff (list (car cell)))) |
| 1137 | (apply 'define-key | 1137 | (apply 'define-key |
| 1138 | (list map | 1138 | (list map |
| 1139 | (apply 'concat (if add-pref | 1139 | (apply 'concat (if add-pref |
| 1140 | (append pref key-suff) | 1140 | (append pref key-suff) |
| 1141 | key-suff)) | 1141 | key-suff)) |
| 1142 | (car (cdr cell))))))) | 1142 | (car (cdr cell))))))) |
| 1143 | keymap-list) | 1143 | keymap-list) |
| 1144 | map)) | 1144 | map)) |
| 1145 | ;;;_ : Menu bar | 1145 | ;;;_ : Menu bar |
| 1146 | (defvar allout-mode-exposure-menu) | 1146 | (defvar allout-mode-exposure-menu) |
| @@ -5463,7 +5463,7 @@ Defaults: | |||
| 5463 | (progn (set-buffer frombuf) | 5463 | (progn (set-buffer frombuf) |
| 5464 | (allout-listify-exposed from to format)))) | 5464 | (allout-listify-exposed from to format)))) |
| 5465 | (set-buffer tobuf) | 5465 | (set-buffer tobuf) |
| 5466 | (mapcar func listified) | 5466 | (mapc func listified) |
| 5467 | (pop-to-buffer tobuf))) | 5467 | (pop-to-buffer tobuf))) |
| 5468 | 5468 | ||
| 5469 | ;;;_ - Copy exposed | 5469 | ;;;_ - Copy exposed |