From: Michael Albinus <michael.albinus@gmx.de>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: emacs-devel@gnu.org, Angelo Graziosi <angelo.graziosi@alice.it>
Subject: Re: DocView broken!
Date: Thu, 10 Jan 2008 13:49:44 +0100 [thread overview]
Message-ID: <nqprw9hml3.fsf@alcatel-lucent.de> (raw)
In-Reply-To: <87ve616hot.fsf@member.fsf.org> (Tassilo Horn's message of "Thu, 10 Jan 2008 12:30:58 +0100")
Tassilo Horn <tassilo@member.fsf.org> 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.
next prev parent reply other threads:[~2008-01-10 12:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 23:33 DocView broken! Angelo Graziosi
2008-01-10 11:30 ` Tassilo Horn
2008-01-10 12:49 ` Michael Albinus [this message]
2008-01-10 13:40 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nqprw9hml3.fsf@alcatel-lucent.de \
--to=michael.albinus@gmx.de \
--cc=angelo.graziosi@alice.it \
--cc=emacs-devel@gnu.org \
--cc=tassilo@member.fsf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).