summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Nicandro <nathanielnicandro@gmail.com>2019-03-08 16:12:30 -0600
committerNathaniel Nicandro <nathanielnicandro@gmail.com>2019-03-08 16:14:16 -0600
commitfb683c8f4d47114204126c3b9ea9b5e8b4bf937c (patch)
treea8be89a419bdf7aa6d6d453fc683238aaf62d85a
parente39e1995189945e71d452900c418b9d0fe8cf6e1 (diff)
Don't go to initial page when activating `pdf-view-mode`
This fixes an issue where the page of a PDF being shown in the `selected-window` would be reset if the PDF was different than the PDF of the `current-buffer`.
-rw-r--r--lisp/pdf-view.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/pdf-view.el b/lisp/pdf-view.el
index f66c4de..d4de336 100644
--- a/lisp/pdf-view.el
+++ b/lisp/pdf-view.el
@@ -413,9 +413,7 @@ PNG images in Emacs buffers."
(run-with-timer 1 nil (lambda (buffer)
(when (buffer-live-p buffer)
(pdf-view-check-incompatible-modes buffer)))
- (current-buffer))
- ;; Setup initial page and start display
- (pdf-view-goto-page (or (pdf-view-current-page) 1)))
+ (current-buffer)))
(unless (version< emacs-version "24.4")
(defun cua-copy-region--pdf-view-advice (&rest _)