From 86903c81aefbcb7959b3facc117d8bc270ba5372 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Wed, 12 Mar 2008 14:59:10 +0000 Subject: [PATCH] (doc-view-current-cache-dir): Set buffer used for md5 sum calculation to single-byte. --- lisp/ChangeLog | 5 +++++ lisp/doc-view.el | 1 + 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3518243b3ca..96e12e49f3b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-03-12 Tassilo Horn + + * doc-view.el (doc-view-current-cache-dir): Set buffer used for + md5 sum calculation to single-byte. + 2008-03-12 Stefan Monnier * doc-view.el (doc-view-new-window-function): Add assertion. diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 01dd163ac80..a68e41e3b90 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -470,6 +470,7 @@ It's a subdirectory of `doc-view-cache-directory'." "-" (let ((file doc-view-buffer-file-name)) (with-temp-buffer + (set-buffer-multibyte nil) (insert-file-contents-literally file) (md5 (current-buffer))))) doc-view-cache-directory))))) -- 2.39.5