aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Malabarba2015-02-05 15:57:01 -0200
committerArtur Malabarba2015-02-06 07:44:02 -0200
commit5c9ad35f1e5fd8ee5561ef48baac1f6ff20ae679 (patch)
tree87f6d5d7920cc14f9bb95b8fd5ec2f6f38006434
parente14961fca13be44a737b32fb1346554a7832a690 (diff)
downloademacs-5c9ad35f1e5fd8ee5561ef48baac1f6ff20ae679.tar.gz
emacs-5c9ad35f1e5fd8ee5561ef48baac1f6ff20ae679.zip
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'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/doc-view.el9
2 files changed, 7 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 68c2dab829d..32bbd2ccf3f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12015-02-06 Artur Malabarba <bruce.connor.am@gmail.com>
2
3 * doc-view.el (doc-view-kill-proc-and-buffer): Obsolete. Use
4 `image-kill-buffer' instead.
5
12015-02-06 Thomas Fitzsimmons <fitzsim@fitzsim.org> 62015-02-06 Thomas Fitzsimmons <fitzsim@fitzsim.org>
2 7
3 * net/ldap.el (ldap-search-internal): Fix docstring. 8 * net/ldap.el (ldap-search-internal): Fix docstring.
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index b718f1d8b2c..5f1c94a0128 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -415,7 +415,6 @@ Typically \"page-%s.png\".")
415 (define-key map "H" 'doc-view-fit-height-to-window) 415 (define-key map "H" 'doc-view-fit-height-to-window)
416 (define-key map "P" 'doc-view-fit-page-to-window) 416 (define-key map "P" 'doc-view-fit-page-to-window)
417 ;; Killing the buffer (and the process) 417 ;; Killing the buffer (and the process)
418 (define-key map (kbd "k") 'doc-view-kill-proc-and-buffer)
419 (define-key map (kbd "K") 'doc-view-kill-proc) 418 (define-key map (kbd "K") 'doc-view-kill-proc)
420 ;; Slicing the image 419 ;; Slicing the image
421 (define-key map (kbd "s s") 'doc-view-set-slice) 420 (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."
645 (setq doc-view--current-timer nil)) 644 (setq doc-view--current-timer nil))
646 (setq mode-line-process nil)) 645 (setq mode-line-process nil))
647 646
648(defun doc-view-kill-proc-and-buffer () 647(define-obsolete-function-alias 'doc-view-kill-proc-and-buffer
649 "Kill the current converter process and buffer." 648 #'image-kill-buffer "25.1")
650 (interactive)
651 (doc-view-kill-proc)
652 (when (eq major-mode 'doc-view-mode)
653 (kill-buffer (current-buffer))))
654 649
655(defun doc-view-make-safe-dir (dir) 650(defun doc-view-make-safe-dir (dir)
656 (condition-case nil 651 (condition-case nil