1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

(doc-view-mode): Bugfix: Add conversion killing

function to kill-buffer-hook, not to kill-buffer.
Reported by Markus Triska <markus.triska@gmx.at>
This commit is contained in:
Tassilo Horn 2008-11-05 11:06:22 +00:00
parent bc6922de39
commit f1809341da
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-11-05 Tassilo Horn <tassilo@member.fsf.org>
* doc-view.el (doc-view-mode): Bugfix: Add conversion killing
function to kill-buffer-hook, not to kill-buffer.
Reported by Markus Triska <markus.triska@gmx.at>
2008-11-04 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc.el (calc-quit): Make sure that the keypad buffer

View File

@ -1141,7 +1141,7 @@ toggle between displaying the document or editing it as text.
(remove-overlays (point-min) (point-max) 'doc-view t))
nil t)
(add-hook 'clone-indirect-buffer-hook 'doc-view-clone-buffer-hook nil t)
(add-hook 'kill-buffer 'doc-view-kill-proc nil t)
(add-hook 'kill-buffer-hook 'doc-view-kill-proc nil t)
(remove-overlays (point-min) (point-max) 'doc-view t) ;Just in case.
;; Keep track of display info ([vh]scroll, page number, overlay, ...)