aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-02-19 16:14:30 +0800
committerChong Yidong2012-02-19 16:14:30 +0800
commit20af23949ddcb8b4b2ca54c51911117415f2d46a (patch)
tree0aa6a2789da0d3a072582fba6043693f60b76906
parent5d55b248c3d92e48ed5f841463551f56610c754e (diff)
downloademacs-20af23949ddcb8b4b2ca54c51911117415f2d46a.tar.gz
emacs-20af23949ddcb8b4b2ca54c51911117415f2d46a.zip
Fix mode-line-format handling bug in Ediff.
* lisp/vc/ediff-init.el (ediff-strip-mode-line-format): Handle non-list mode-line formats. Fixes: debbugs:10839
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/rmail.el7
-rw-r--r--lisp/vc/ediff-init.el6
3 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c4ec297cb30..5455d4320f8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-02-19 Chong Yidong <cyd@gnu.org>
2
3 * vc/ediff-init.el (ediff-strip-mode-line-format): Handle non-list
4 mode-line formats (Bug#10839).
5
12012-02-18 Glenn Morris <rgm@gnu.org> 62012-02-18 Glenn Morris <rgm@gnu.org>
2 7
3 * mail/rmail.el (rmail-dont-reply-to-names): Mark as obsolete. 8 * mail/rmail.el (rmail-dont-reply-to-names): Mark as obsolete.
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 49e23a3b2f6..2d327c7a0f0 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -4700,7 +4700,7 @@ SENDERS is a string of regexps separated by commas.
4700;;;*** 4700;;;***
4701 4701
4702;;;### (autoloads (unforward-rmail-message undigestify-rmail-message) 4702;;;### (autoloads (unforward-rmail-message undigestify-rmail-message)
4703;;;;;; "undigest" "undigest.el" "1be42b2d20b13004f0ad1b504630ed00") 4703;;;;;; "undigest" "undigest.el" "a31a35802a2adbc51be42959c3043dbd")
4704;;; Generated autoloads from undigest.el 4704;;; Generated autoloads from undigest.el
4705 4705
4706(autoload 'undigestify-rmail-message "undigest" "\ 4706(autoload 'undigestify-rmail-message "undigest" "\
@@ -4711,8 +4711,9 @@ Leaves original message, deleted, before the undigestified messages.
4711 4711
4712(autoload 'unforward-rmail-message "undigest" "\ 4712(autoload 'unforward-rmail-message "undigest" "\
4713Extract a forwarded message from the containing message. 4713Extract a forwarded message from the containing message.
4714This puts the forwarded message into a separate rmail message 4714This puts the forwarded message into a separate rmail message following
4715following the containing message. 4715the containing message. This command is only useful when messages are
4716forwarded with `rmail-enable-mime-composing' set to nil.
4716 4717
4717\(fn)" t nil) 4718\(fn)" t nil)
4718 4719
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el
index 806be855909..2de5e4dbdaf 100644
--- a/lisp/vc/ediff-init.el
+++ b/lisp/vc/ediff-init.el
@@ -1743,8 +1743,10 @@ Unless optional argument INPLACE is non-nil, return a new string."
1743 1743
1744;; If ediff modified mode line, strip the modification 1744;; If ediff modified mode line, strip the modification
1745(defsubst ediff-strip-mode-line-format () 1745(defsubst ediff-strip-mode-line-format ()
1746 (if (member (car mode-line-format) '(" A: " " B: " " C: " " Ancestor: ")) 1746 (and (consp mode-line-format)
1747 (setq mode-line-format (nth 2 mode-line-format)))) 1747 (member (car mode-line-format)
1748 '(" A: " " B: " " C: " " Ancestor: "))
1749 (setq mode-line-format (nth 2 mode-line-format))))
1748 1750
1749;; Verify that we have a difference selected. 1751;; Verify that we have a difference selected.
1750(defsubst ediff-valid-difference-p (&optional n) 1752(defsubst ediff-valid-difference-p (&optional n)