aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2006-02-09 01:36:22 +0000
committerJuanma Barranquero2006-02-09 01:36:22 +0000
commitddd1e91e60b58cfcc553236f75f4cbadef71244c (patch)
tree25e3c831591f995c00c561a3a6ab870e28c08b22
parentd5905ab9153b05107c63731053cf97681d4c61e7 (diff)
downloademacs-ddd1e91e60b58cfcc553236f75f4cbadef71244c.tar.gz
emacs-ddd1e91e60b58cfcc553236f75f4cbadef71244c.zip
(hilit-chg-update-all-buffers): Use `mapc' instead of `mapcar'; return nil.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/hilit-chg.el17
2 files changed, 14 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 65cbcacd4f7..a0718768996 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-02-09 Juanma Barranquero <lekktu@gmail.com>
2
3 * hilit-chg.el (hilit-chg-update-all-buffers): Use `mapc' instead of
4 `mapcar'; return nil.
5
12006-02-08 Chong Yidong <cyd@stupidchicken.com> 62006-02-08 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * mouse.el (mouse-drag-track): Don't change window if we rebind to 8 * mouse.el (mouse-drag-track): Don't change window if we rebind to
diff --git a/lisp/hilit-chg.el b/lisp/hilit-chg.el
index a68e20cf6de..6bea0ad4b4b 100644
--- a/lisp/hilit-chg.el
+++ b/lisp/hilit-chg.el
@@ -521,7 +521,7 @@ the text properties of type `hilit-chg'."
521This allows you to manually remove highlighting from uninteresting changes." 521This allows you to manually remove highlighting from uninteresting changes."
522 (interactive "r") 522 (interactive "r")
523 (let ((after-change-functions nil)) 523 (let ((after-change-functions nil))
524 (remove-text-properties beg end '(hilit-chg nil)) 524 (remove-text-properties beg end '(hilit-chg nil))
525 (hilit-chg-fixup beg end))) 525 (hilit-chg-fixup beg end)))
526 526
527(defun hilit-chg-set-face-on-change (beg end leng-before 527(defun hilit-chg-set-face-on-change (beg end leng-before
@@ -662,7 +662,7 @@ Hook variables:
662 ;; an argument is given 662 ;; an argument is given
663 ((eq arg 'active) 663 ((eq arg 'active)
664 'active) 664 'active)
665 ((eq arg 'passive) 665 ((eq arg 'passive)
666 'passive) 666 'passive)
667 ((> (prefix-numeric-value arg) 0) 667 ((> (prefix-numeric-value arg) 0)
668 'active) 668 'active)
@@ -960,9 +960,9 @@ changes are made, so \\[highlight-changes-next-change] and
960 ;; which calls this function as a hook 960 ;; which calls this function as a hook
961 (defvar x) ;; placate the byte-compiler 961 (defvar x) ;; placate the byte-compiler
962 (defvar y) 962 (defvar y)
963 (setq e (current-buffer)) 963 (setq e (current-buffer))
964 (let ((n 0) extent p va vb a b) 964 (let ((n 0) extent p va vb a b)
965 (setq x nil y nil) ;; x and y are bound by hilit-chg-get-diff-info 965 (setq x nil y nil) ;; x and y are bound by hilit-chg-get-diff-info
966 (while (< n ediff-number-of-differences) 966 (while (< n ediff-number-of-differences)
967 (ediff-make-fine-diffs n) 967 (ediff-make-fine-diffs n)
968 (setq va (ediff-get-fine-diff-vector n 'A)) 968 (setq va (ediff-get-fine-diff-vector n 'A))
@@ -1085,7 +1085,7 @@ variable `highlight-changes-global-changes-existing-buffers' is non-nil).
1085 (progn 1085 (progn
1086 (if (eq arg 'active) 1086 (if (eq arg 'active)
1087 (setq highlight-changes-global-initial-state 'active) 1087 (setq highlight-changes-global-initial-state 'active)
1088 (if (eq arg 'passive) 1088 (if (eq arg 'passive)
1089 (setq highlight-changes-global-initial-state 'passive))) 1089 (setq highlight-changes-global-initial-state 'passive)))
1090 (setq global-highlight-changes t) 1090 (setq global-highlight-changes t)
1091 (message "Turning ON Global Highlight Changes mode in %s state" 1091 (message "Turning ON Global Highlight Changes mode in %s state"
@@ -1131,7 +1131,7 @@ from `global-highlight-changes' when turning on global Highlight Changes mode."
1131 (memq major-mode highlight-changes-global-modes))) 1131 (memq major-mode highlight-changes-global-modes)))
1132 (t 1132 (t
1133 (and 1133 (and
1134 (not (string-match "^[ *]" (buffer-name))) 1134 (not (string-match "^[ *]" (buffer-name)))
1135 (buffer-file-name)))) 1135 (buffer-file-name))))
1136 (progn 1136 (progn
1137 (hilit-chg-set value) 1137 (hilit-chg-set value)
@@ -1146,14 +1146,15 @@ from `global-highlight-changes' when turning on global Highlight Changes mode."
1146 1146
1147 1147
1148(defun hilit-chg-update-all-buffers (value) 1148(defun hilit-chg-update-all-buffers (value)
1149 (mapcar 1149 (mapc
1150 (function (lambda (buffer) 1150 (function (lambda (buffer)
1151 (with-current-buffer buffer 1151 (with-current-buffer buffer
1152 (if value 1152 (if value
1153 (hilit-chg-turn-on-maybe value) 1153 (hilit-chg-turn-on-maybe value)
1154 (hilit-chg-turn-off-maybe)) 1154 (hilit-chg-turn-off-maybe))
1155 ))) 1155 )))
1156 (buffer-list))) 1156 (buffer-list))
1157 nil)
1157 1158
1158;;;; Desktop support. 1159;;;; Desktop support.
1159 1160