diff options
| author | Juanma Barranquero | 2007-09-26 00:23:56 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-09-26 00:23:56 +0000 |
| commit | 65c96997b593ab3cdf79766a0560f09be0b4631e (patch) | |
| tree | b00fa46f1de15366e98a57f9b9db5f0d12eb34e8 | |
| parent | 0ab1b3fff56f43fa2734f075bb66f6888b3ceb97 (diff) | |
| download | emacs-65c96997b593ab3cdf79766a0560f09be0b4631e.tar.gz emacs-65c96997b593ab3cdf79766a0560f09be0b4631e.zip | |
(ada-save-exceptions-to-file): Use `mapc' rather than `mapcar'.
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index 478a07bc3b6..07d38dbdaa2 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -1145,7 +1145,7 @@ If you use ada-xref.el: | |||
| 1145 | 1145 | ||
| 1146 | (interactive) | 1146 | (interactive) |
| 1147 | (kill-all-local-variables) | 1147 | (kill-all-local-variables) |
| 1148 | 1148 | ||
| 1149 | (set-syntax-table ada-mode-syntax-table) | 1149 | (set-syntax-table ada-mode-syntax-table) |
| 1150 | 1150 | ||
| 1151 | (set (make-local-variable 'require-final-newline) mode-require-final-newline) | 1151 | (set (make-local-variable 'require-final-newline) mode-require-final-newline) |
| @@ -1423,12 +1423,12 @@ If you use ada-xref.el: | |||
| 1423 | Casing exception lists are `ada-case-exception' and `ada-case-exception-substring'." | 1423 | Casing exception lists are `ada-case-exception' and `ada-case-exception-substring'." |
| 1424 | (find-file (expand-file-name file-name)) | 1424 | (find-file (expand-file-name file-name)) |
| 1425 | (erase-buffer) | 1425 | (erase-buffer) |
| 1426 | (mapcar (lambda (x) (insert (car x) "\n")) | 1426 | (mapc (lambda (x) (insert (car x) "\n")) |
| 1427 | (sort (copy-sequence ada-case-exception) | 1427 | (sort (copy-sequence ada-case-exception) |
| 1428 | (lambda(a b) (string< (car a) (car b))))) | 1428 | (lambda(a b) (string< (car a) (car b))))) |
| 1429 | (mapcar (lambda (x) (insert "*" (car x) "\n")) | 1429 | (mapc (lambda (x) (insert "*" (car x) "\n")) |
| 1430 | (sort (copy-sequence ada-case-exception-substring) | 1430 | (sort (copy-sequence ada-case-exception-substring) |
| 1431 | (lambda(a b) (string< (car a) (car b))))) | 1431 | (lambda(a b) (string< (car a) (car b))))) |
| 1432 | (save-buffer) | 1432 | (save-buffer) |
| 1433 | (kill-buffer nil) | 1433 | (kill-buffer nil) |
| 1434 | ) | 1434 | ) |
| @@ -4583,7 +4583,7 @@ Moves to 'begin' if in a declarative part." | |||
| 4583 | ;; The following keys are bound to functions defined in ada-xref.el or | 4583 | ;; The following keys are bound to functions defined in ada-xref.el or |
| 4584 | ;; ada-prj,el., However, RMS rightly thinks that the code should be shared, | 4584 | ;; ada-prj,el., However, RMS rightly thinks that the code should be shared, |
| 4585 | ;; and activated only if the right compiler is used | 4585 | ;; and activated only if the right compiler is used |
| 4586 | 4586 | ||
| 4587 | (define-key ada-mode-map (if (featurep 'xemacs) '(shift button3) [S-mouse-3]) | 4587 | (define-key ada-mode-map (if (featurep 'xemacs) '(shift button3) [S-mouse-3]) |
| 4588 | 'ada-point-and-xref) | 4588 | 'ada-point-and-xref) |
| 4589 | (define-key ada-mode-map [(control tab)] 'ada-complete-identifier) | 4589 | (define-key ada-mode-map [(control tab)] 'ada-complete-identifier) |