mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-13 16:38:14 +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:
parent
e14961fca1
commit
5c9ad35f1e
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user