aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-09-21 08:05:59 +0000
committerGlenn Morris2007-09-21 08:05:59 +0000
commit8c5de2a1193f0b9fa38ccf6f98c8427a136579cb (patch)
treebc83d9727eff0ad057b10cd61aad87bf70faef91
parent1eff4ba396eebeb2e28077869fa30df4e0d53f73 (diff)
downloademacs-8c5de2a1193f0b9fa38ccf6f98c8427a136579cb.tar.gz
emacs-8c5de2a1193f0b9fa38ccf6f98c8427a136579cb.zip
(fortran-mode-abbrev-table, fortran-line-length): Use mapc rather than mapcar.
-rw-r--r--lisp/progmodes/fortran.el30
1 files changed, 15 insertions, 15 deletions
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 098cc8b8d82..016e484a6c5 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -649,7 +649,7 @@ Used in the Fortran entry in `hs-special-modes-alist'.")
649(let (abbrevs-changed) 649(let (abbrevs-changed)
650 ;; Use the 6th arg (SYSTEM-FLAG) of define-abbrev if possible. 650 ;; Use the 6th arg (SYSTEM-FLAG) of define-abbrev if possible.
651 ;; Only use `apply' to quieten the byte-compiler. 651 ;; Only use `apply' to quieten the byte-compiler.
652 (mapcar 652 (mapc
653 (function (lambda (element) 653 (function (lambda (element)
654 (condition-case nil 654 (condition-case nil
655 (apply 'define-abbrev fortran-mode-abbrev-table 655 (apply 'define-abbrev fortran-mode-abbrev-table
@@ -852,20 +852,20 @@ Fortran mode. If the optional argument GLOBAL is non-nil, it
852affects all Fortran buffers, and also the default." 852affects all Fortran buffers, and also the default."
853 (interactive "p") 853 (interactive "p")
854 (let (new) 854 (let (new)
855 (mapcar (lambda (buff) 855 (mapc (lambda (buff)
856 (with-current-buffer buff 856 (with-current-buffer buff
857 (when (eq major-mode 'fortran-mode) 857 (when (eq major-mode 'fortran-mode)
858 (setq fortran-line-length nchars 858 (setq fortran-line-length nchars
859 fill-column fortran-line-length 859 fill-column fortran-line-length
860 new (fortran-font-lock-syntactic-keywords)) 860 new (fortran-font-lock-syntactic-keywords))
861 ;; Refontify only if necessary. 861 ;; Refontify only if necessary.
862 (unless (equal new font-lock-syntactic-keywords) 862 (unless (equal new font-lock-syntactic-keywords)
863 (setq font-lock-syntactic-keywords 863 (setq font-lock-syntactic-keywords
864 (fortran-font-lock-syntactic-keywords)) 864 (fortran-font-lock-syntactic-keywords))
865 (if font-lock-mode (font-lock-mode 1)))))) 865 (if font-lock-mode (font-lock-mode 1))))))
866 (if global 866 (if global
867 (buffer-list) 867 (buffer-list)
868 (list (current-buffer)))) 868 (list (current-buffer))))
869 (if global 869 (if global
870 (setq-default fortran-line-length nchars)))) 870 (setq-default fortran-line-length nchars))))
871 871