bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5102: 23.1; doc-view on a buffer not linked to a file


From: Stefan Monnier
Subject: bug#5102: 23.1; doc-view on a buffer not linked to a file
Date: Sat, 05 Dec 2009 13:49:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>> Tassilo, please tell whether DocView is designed to work in non-file
>> buffers?

Yes, it is.

> No, it cannot handle non-file buffers, because ghostscript and friends
> only handle input files and don't support piping in the output.  So the

It already has special code for Tramp and jka-compr files, where it
saves the buffer's content to a temp file.

Harven(?), does the patch below help?


        Stefan


--- doc-view.el.~1.93.~ 2009-11-30 22:13:35.000000000 -0500
+++ doc-view.el 2009-12-05 13:48:54.000000000 -0500
@@ -1237,7 +1237,7 @@
          ;; supposed to return nil for things like local files accessed via
          ;; `su' or via file://...
          ((let ((file-name-handler-alist nil))
-            (not (file-readable-p buffer-file-name)))
+            (not (and buffer-file-name (file-readable-p buffer-file-name))))
           (expand-file-name
            (file-name-nondirectory buffer-file-name)
            doc-view-cache-directory))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]