diff options
| author | Stefan Monnier | 2019-11-05 14:33:36 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2019-11-05 14:33:36 -0500 |
| commit | ec5433f676035a5ad3ad8fcb22884cf0e0c290f6 (patch) | |
| tree | ac77cbfcb773b6a72d95c6a0c905f01273566b6d | |
| parent | d76bc06abc38e8b6489c7e526711a87fb5450784 (diff) | |
| download | emacs-ec5433f676035a5ad3ad8fcb22884cf0e0c290f6.tar.gz emacs-ec5433f676035a5ad3ad8fcb22884cf0e0c290f6.zip | |
* lisp/doc-view.el (doc-view--revert-buffer): Fix last change
| -rw-r--r-- | lisp/doc-view.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index d88150735fe..15a1dc3b9bd 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -451,9 +451,13 @@ Typically \"page-%s.png\".") | |||
| 451 | (apply orig-fun args) | 451 | (apply orig-fun args) |
| 452 | ;; Update the cached version of the pdf file, | 452 | ;; Update the cached version of the pdf file, |
| 453 | ;; too. This is the one that's used when | 453 | ;; too. This is the one that's used when |
| 454 | ;; rendering. | 454 | ;; rendering (bug#26996). |
| 455 | (doc-view-make-safe-dir doc-view-cache-directory) | 455 | (unless (equal buffer-file-name |
| 456 | (write-region nil nil doc-view--buffer-file-name)))) | 456 | doc-view--buffer-file-name) |
| 457 | ;; FIXME: Lars says he needed to recreate | ||
| 458 | ;; the dir, we should figure out why. | ||
| 459 | (doc-view-make-safe-dir doc-view-cache-directory) | ||
| 460 | (write-region nil nil doc-view--buffer-file-name))))) | ||
| 457 | (if (and (eq 'pdf doc-view-doc-type) | 461 | (if (and (eq 'pdf doc-view-doc-type) |
| 458 | (executable-find "pdfinfo")) | 462 | (executable-find "pdfinfo")) |
| 459 | ;; We don't want to revert if the PDF file is corrupted which | 463 | ;; We don't want to revert if the PDF file is corrupted which |