aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan D2014-04-16 23:58:25 -0400
committerStefan Monnier2014-04-16 23:58:25 -0400
commite51c8d91c2099e993b119447be4f7a859c5bb35e (patch)
tree43beb988c6b2b3f60426217036111dbd561be8fc
parent2ff06dac09ff973734c74c15540c15529cb2413b (diff)
downloademacs-e51c8d91c2099e993b119447be4f7a859c5bb35e.tar.gz
emacs-e51c8d91c2099e993b119447be4f7a859c5bb35e.zip
* lisp/image-mode.el (image-mode-window-put): Also update the property of
the "default window". * lisp/doc-view.el (doc-view-new-window-function): If no window exists, move to the last known page.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/doc-view.el2
-rw-r--r--lisp/image-mode.el3
3 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f740e7f23df..a811b876e3c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12014-04-17 Ian D <dunni@gnu.org> (tiny change)
2
3 * image-mode.el (image-mode-window-put): Also update the property of
4 the "default window".
5 * doc-view.el (doc-view-new-window-function): If no window
6 exists, move to the last known page.
7
12014-04-16 Stefan Monnier <monnier@iro.umontreal.ca> 82014-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in 10 * progmodes/perl-mode.el (perl-calculate-indent): Don't auto-indent in
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 42544851f6b..4ff78b55d4b 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -336,7 +336,7 @@ of the page moves to the previous page."
336 ;; Don't do it if there's a conversion is running, since in that case, it 336 ;; Don't do it if there's a conversion is running, since in that case, it
337 ;; will be done later. 337 ;; will be done later.
338 (with-selected-window (car winprops) 338 (with-selected-window (car winprops)
339 (doc-view-goto-page 1))))) 339 (doc-view-goto-page (image-mode-window-get 'page t))))))
340 340
341(defvar-local doc-view--current-files nil 341(defvar-local doc-view--current-files nil
342 "Only used internally.") 342 "Only used internally.")
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index de6bb85bcb6..98fc3857f41 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -90,6 +90,9 @@ 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)
94 (cons (cons prop val)
95 (delq (assq prop (cdr winprops)) (cdr winprops))))
93 (setcdr winprops (cons (cons prop val) 96 (setcdr winprops (cons (cons prop val)
94 (delq (assq prop (cdr winprops)) (cdr winprops))))) 97 (delq (assq prop (cdr winprops)) (cdr winprops)))))
95 98