diff options
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/doc-view.el | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b2439d17b6d..a49549f9921 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2013-09-18 Glenn Morris <rgm@gnu.org> | 1 | 2013-09-18 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * doc-view.el (doc-view-mode): Silence --without-x compilation. | ||
| 4 | |||
| 3 | * image.el (image-type-from-buffer, image-multi-frame-p): | 5 | * image.el (image-type-from-buffer, image-multi-frame-p): |
| 4 | Remove --without-x warning/error. | 6 | Remove --without-x warning/error. |
| 5 | 7 | ||
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 589a57b64c2..cbf4d0bda31 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -1733,9 +1733,12 @@ toggle between displaying the document or editing it as text. | |||
| 1733 | "/" (:eval (number-to-string (doc-view-last-page-number))))) | 1733 | "/" (:eval (number-to-string (doc-view-last-page-number))))) |
| 1734 | ;; Don't scroll unless the user specifically asked for it. | 1734 | ;; Don't scroll unless the user specifically asked for it. |
| 1735 | (setq-local auto-hscroll-mode nil) | 1735 | (setq-local auto-hscroll-mode nil) |
| 1736 | (setq-local mwheel-scroll-up-function #'doc-view-scroll-up-or-next-page) | 1736 | (if (boundp 'mwheel-scroll-up-function) ; not --without-x build |
| 1737 | (setq-local mwheel-scroll-down-function | 1737 | (setq-local mwheel-scroll-up-function |
| 1738 | #'doc-view-scroll-down-or-previous-page) | 1738 | #'doc-view-scroll-up-or-next-page)) |
| 1739 | (if (boundp 'mwheel-scroll-down-function) | ||
| 1740 | (setq-local mwheel-scroll-down-function | ||
| 1741 | #'doc-view-scroll-down-or-previous-page)) | ||
| 1739 | (setq-local cursor-type nil) | 1742 | (setq-local cursor-type nil) |
| 1740 | (use-local-map doc-view-mode-map) | 1743 | (use-local-map doc-view-mode-map) |
| 1741 | (add-hook 'after-revert-hook 'doc-view-reconvert-doc nil t) | 1744 | (add-hook 'after-revert-hook 'doc-view-reconvert-doc nil t) |