From: Tassilo Horn Date: Wed, 12 Mar 2008 14:59:10 +0000 (+0000) Subject: (doc-view-current-cache-dir): Set buffer used for X-Git-Tag: emacs-pretest-23.0.90~7266 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86903c81aefbcb7959b3facc117d8bc270ba5372;p=emacs.git (doc-view-current-cache-dir): Set buffer used for md5 sum calculation to single-byte. --- 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)))))