aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-04-21 10:34:49 -0400
committerStefan Monnier2014-04-21 10:34:49 -0400
commit9253f7af873a4a343b46c219bbba8daa6ad73fe6 (patch)
tree56bab8edfc634480464eb07b528ca1fb7ef77abb
parentb53a667a5aa8d09635c7b8c3cae32b91b7ef75a6 (diff)
downloademacs-9253f7af873a4a343b46c219bbba8daa6ad73fe6.tar.gz
emacs-9253f7af873a4a343b46c219bbba8daa6ad73fe6.zip
* lisp/image-mode.el (image-mode-window-put): Don't assume there's a `t'
entry in image-mode-winprops-alist.
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/image-mode.el5
2 files changed, 10 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3c5dc44010b..0fd29f0ffba 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,9 +1,12 @@
12014-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * image-mode.el (image-mode-window-put): Don't assume there's a `t'
4 entry in image-mode-winprops-alist.
5
12014-04-21 Daniel Colascione <dancol@dancol.org> 62014-04-21 Daniel Colascione <dancol@dancol.org>
2 7
3 * emacs-lisp/bytecomp.el (byte-compile-recurse-toplevel): New 8 * emacs-lisp/bytecomp.el (byte-compile-recurse-toplevel): New function.
4 function. 9 (byte-compile-recurse-toplevel, byte-compile-initial-macro-environment)
5 (byte-compile-recurse-toplevel,
6 (byte-compile-initial-macro-environment,
7 (byte-compile-toplevel-file-form): Use it. 10 (byte-compile-toplevel-file-form): Use it.
8 11
9 * emacs-lisp/cl-macs.el: 12 * emacs-lisp/cl-macs.el:
@@ -14,8 +17,7 @@
14 * vc/vc.el (vc-root-dir): New public autoloaded function for 17 * vc/vc.el (vc-root-dir): New public autoloaded function for
15 generically finding the current VC root. 18 generically finding the current VC root.
16 * vc/vc-hooks.el (vc-not-supported): New error. 19 * vc/vc-hooks.el (vc-not-supported): New error.
17 (vc-call-backend): Signal `vc-not-supported' instead of generic 20 (vc-call-backend): Signal `vc-not-supported' instead of generic error.
18 error.
19 21
202014-04-20 Daniel Colascione <dancol@dancol.org> 222014-04-20 Daniel Colascione <dancol@dancol.org>
21 23
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 98fc3857f41..b75946475dd 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -90,9 +90,8 @@ otherwise it defaults to t, used for times when the buffer is not displayed."
90 90
91(defun image-mode-window-put (prop val &optional winprops) 91(defun image-mode-window-put (prop val &optional winprops)
92 (unless (consp winprops) (setq winprops (image-mode-winprops winprops))) 92 (unless (consp winprops) (setq winprops (image-mode-winprops winprops)))
93 (setcdr (assq t image-mode-winprops-alist) 93 (unless (eq t (car winprops))
94 (cons (cons prop val) 94 (image-mode-window-put prop val t))
95 (delq (assq prop (cdr winprops)) (cdr winprops))))
96 (setcdr winprops (cons (cons prop val) 95 (setcdr winprops (cons (cons prop val)
97 (delq (assq prop (cdr winprops)) (cdr winprops))))) 96 (delq (assq prop (cdr winprops)) (cdr winprops)))))
98 97