Commit 5c9ad35f authored by Artur Malabarba's avatar Artur Malabarba

doc-view.el (doc-view-kill-proc-and-buffer): Obsolete.

Use image-kill-buffer instead.
(doc-view-mode): Add `doc-view-kill-proc' to `kill-buffer-hook'.
parent e14961fc
2015-02-06 Artur Malabarba <>
* doc-view.el (doc-view-kill-proc-and-buffer): Obsolete. Use
`image-kill-buffer' instead.
2015-02-06 Thomas Fitzsimmons <>
* net/ldap.el (ldap-search-internal): Fix docstring.
......@@ -415,7 +415,6 @@ Typically \"page-%s.png\".")
(define-key map "H" 'doc-view-fit-height-to-window)
(define-key map "P" 'doc-view-fit-page-to-window)
;; Killing the buffer (and the process)
(define-key map (kbd "k") 'doc-view-kill-proc-and-buffer)
(define-key map (kbd "K") 'doc-view-kill-proc)
;; Slicing the image
(define-key map (kbd "s s") 'doc-view-set-slice)
......@@ -645,12 +644,8 @@ at the top edge of the page moves to the previous page."
(setq doc-view--current-timer nil))
(setq mode-line-process nil))
(defun doc-view-kill-proc-and-buffer ()
"Kill the current converter process and buffer."
(when (eq major-mode 'doc-view-mode)
(kill-buffer (current-buffer))))
(define-obsolete-function-alias 'doc-view-kill-proc-and-buffer
#'image-kill-buffer "25.1")
(defun doc-view-make-safe-dir (dir)
(condition-case nil
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment