From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: DocView broken! Date: Thu, 10 Jan 2008 13:49:44 +0100 Message-ID: References: <478559C0.7020409@alice.it> <87ve616hot.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199969357 26993 80.91.229.12 (10 Jan 2008 12:49:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2008 12:49:17 +0000 (UTC) Cc: emacs-devel@gnu.org, Angelo Graziosi To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 10 13:49:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCwql-0005gm-Gn for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2008 13:49:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCwqN-0007Bu-RE for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2008 07:49:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCwqK-0007Ao-IS for emacs-devel@gnu.org; Thu, 10 Jan 2008 07:49:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCwqG-00078G-2s for emacs-devel@gnu.org; Thu, 10 Jan 2008 07:49:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCwqF-00077w-QJ for emacs-devel@gnu.org; Thu, 10 Jan 2008 07:49:03 -0500 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JCwqF-0001RH-8T for emacs-devel@gnu.org; Thu, 10 Jan 2008 07:49:03 -0500 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay1.alcatel.de (8.13.4/8.13.4/ICT) with ESMTP id m0ACmWA9018073; Thu, 10 Jan 2008 13:48:32 +0100 In-Reply-To: <87ve616hot.fsf@member.fsf.org> (Tassilo Horn's message of "Thu, 10 Jan 2008 12:30:58 +0100") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.51 on 149.204.45.72 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86696 Archived-At: Tassilo Horn writes: Hi Tassilo, >> Now when I try to visit a PDF file in the minibuffer I see: >> >> File mode specification error: (void-function tramp-tramp-file-p) >> >> and the file is shown as a text (Text mode). > > Sorry, my bad. I checked in a fix for this a minute ago. Your approach to require Tramp is not clean I fear. There are users who don't use Tramp at all. Furthermore, tramp-tramp-file-p is not a documented function, that means it could change without any notice. Better would be to apply (file-remote-p buffer-file-name) Furthermore, you shall check (stringp buffer-file-name) at all - try "M-x doc-view-mode" when you are in *scratch* ... > Bye, > Tassilo Best regards, Michael.