From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5102: 23.1; doc-view on a buffer not linked to a file Date: Sat, 05 Dec 2009 13:49:43 -0500 Message-ID: References: <87ljhlbmdt.fsf@ergodik.univ-brest.fr> <87bpiezfov.fsf@mail.jurta.org> <87zl5ygy1f.fsf@thinkpad.tsdh.de> Reply-To: Stefan Monnier , 5102@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260040069 17738 80.91.229.12 (5 Dec 2009 19:07:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 19:07:49 +0000 (UTC) Cc: 5102@emacsbugs.donarmstrong.com, harven To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 20:07:41 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NGzym-0000p3-VE for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 20:07:41 +0100 Original-Received: from localhost ([127.0.0.1]:33582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGzym-0001kN-8p for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 14:07:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGzyh-0001hz-B2 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 14:07:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGzyc-0001dc-BW for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 14:07:34 -0500 Original-Received: from [199.232.76.173] (port=57996 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGzyc-0001dY-8D for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 14:07:30 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36910) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGzyb-000876-L7 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 14:07:29 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5J7PYP017476; Sat, 5 Dec 2009 11:07:27 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB5It7aH015339; Sat, 5 Dec 2009 10:55:07 -0800 Resent-Date: Sat, 5 Dec 2009 10:55:07 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 05 Dec 2009 18:55:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5102 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5102-submit@emacsbugs.donarmstrong.com id=B5102.126003899114535 (code B ref 5102); Sat, 05 Dec 2009 18:55:07 +0000 Original-Received: (at 5102) by emacsbugs.donarmstrong.com; 5 Dec 2009 18:49:51 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5InnpF014532 for <5102@emacsbugs.donarmstrong.com>; Sat, 5 Dec 2009 10:49:51 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4EAPQ5GktFpZ7i/2dsb2JhbACBTNMwhDMEih4 X-IronPort-AV: E=Sophos;i="4.47,347,1257138000"; d="scan'208";a="50754731" Original-Received: from 69-165-158-226.dsl.teksavvy.com (HELO pastel.home) ([69.165.158.226]) by ironport2-out.pppoe.ca with ESMTP; 05 Dec 2009 13:49:43 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 87B0A80B1; Sat, 5 Dec 2009 13:49:43 -0500 (EST) In-Reply-To: <87zl5ygy1f.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Fri, 04 Dec 2009 23:43:56 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 05 Dec 2009 14:07:34 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33256 Archived-At: >> 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))