1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-14 16:50:58 +00:00

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'.
This commit is contained in:
Artur Malabarba 2015-02-05 15:57:01 -02:00
parent e14961fca1
commit 5c9ad35f1e
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2015-02-06 Artur Malabarba <bruce.connor.am@gmail.com>
* doc-view.el (doc-view-kill-proc-and-buffer): Obsolete. Use
`image-kill-buffer' instead.
2015-02-06 Thomas Fitzsimmons <fitzsim@fitzsim.org>
* net/ldap.el (ldap-search-internal): Fix docstring.

View File

@ -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."
(interactive)
(doc-view-kill-proc)
(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