* Opening pdf files in Acroread
@ 2010-02-14 22:15 Cecil Westerhof
2010-02-15 7:53 ` Thierry Volpiatto
[not found] ` <mailman.1266.1266220709.14305.info-gnus-english@gnu.org>
0 siblings, 2 replies; 7+ messages in thread
From: Cecil Westerhof @ 2010-02-14 22:15 UTC (permalink / raw)
To: info-gnus-english
I am working with 'GNU Emacs 23.1.1' and 'Gnus v5.13'. When clicking on
an inline .pdf file I get a message like:
Displaying gv -safer /tmp/emm.31402kGI/file.pdf...done
But nothing is displayed. How can I make gnus open the .pdf file with
Acroread?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opening pdf files in Acroread
2010-02-14 22:15 Opening pdf files in Acroread Cecil Westerhof
@ 2010-02-15 7:53 ` Thierry Volpiatto
[not found] ` <mailman.1266.1266220709.14305.info-gnus-english@gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2010-02-15 7:53 UTC (permalink / raw)
To: info-gnus-english
Cecil Westerhof <Cecil@decebal.nl> writes:
> I am working with 'GNU Emacs 23.1.1' and 'Gnus v5.13'. When clicking on
> an inline .pdf file I get a message like:
> Displaying gv -safer /tmp/emm.31402kGI/file.pdf...done
>
> But nothing is displayed. How can I make gnus open the .pdf file with
> Acroread?
Not sure from where you try to open file, but adding a line like this in
your ~/.mailcap should help:
,----[ mailcap entry ]
| application/pdf; acroread %s
`----
--
Thierry Volpiatto
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opening pdf files in Acroread
[not found] ` <mailman.1266.1266220709.14305.info-gnus-english@gnu.org>
@ 2010-02-17 11:22 ` Cecil Westerhof
2010-02-17 12:01 ` Cecil Westerhof
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Cecil Westerhof @ 2010-02-17 11:22 UTC (permalink / raw)
To: info-gnus-english
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>> I am working with 'GNU Emacs 23.1.1' and 'Gnus v5.13'. When clicking on
>> an inline .pdf file I get a message like:
>> Displaying gv -safer /tmp/emm.31402kGI/file.pdf...done
>>
>> But nothing is displayed. How can I make gnus open the .pdf file with
>> Acroread?
> Not sure from where you try to open file, but adding a line like this in
> your ~/.mailcap should help:
>
> ,----[ mailcap entry ]
> | application/pdf; acroread %s
> `----
That file was not on my system. The file /etc/mailcap was, but had no
entry for pdf. I made the .mailcap file with the named entry, but to no
avail.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opening pdf files in Acroread
2010-02-17 11:22 ` Cecil Westerhof
@ 2010-02-17 12:01 ` Cecil Westerhof
2010-02-17 13:02 ` Memnon Anon
2010-04-17 18:20 ` Slackrat
2 siblings, 0 replies; 7+ messages in thread
From: Cecil Westerhof @ 2010-02-17 12:01 UTC (permalink / raw)
To: info-gnus-english
Cecil Westerhof <Cecil@decebal.nl> writes:
>>> I am working with 'GNU Emacs 23.1.1' and 'Gnus v5.13'. When clicking on
>>> an inline .pdf file I get a message like:
>>> Displaying gv -safer /tmp/emm.31402kGI/file.pdf...done
>>>
>>> But nothing is displayed. How can I make gnus open the .pdf file with
>>> Acroread?
>> Not sure from where you try to open file, but adding a line like this in
>> your ~/.mailcap should help:
>>
>> ,----[ mailcap entry ]
>> | application/pdf; acroread %s
>> `----
>
> That file was not on my system. The file /etc/mailcap was, but had no
> entry for pdf. I made the .mailcap file with the named entry, but to no
> avail.
I closed Gnus and Emacs and started them again. Now it works.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opening pdf files in Acroread
2010-02-17 11:22 ` Cecil Westerhof
2010-02-17 12:01 ` Cecil Westerhof
@ 2010-02-17 13:02 ` Memnon Anon
2010-02-17 14:39 ` Thierry Volpiatto
2010-04-17 18:20 ` Slackrat
2 siblings, 1 reply; 7+ messages in thread
From: Memnon Anon @ 2010-02-17 13:02 UTC (permalink / raw)
To: info-gnus-english
Cecil Westerhof <Cecil@decebal.nl> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>> Not sure from where you try to open file, but adding a line like this in
>> your ~/.mailcap should help:
>>
>> ,----[ mailcap entry ]
>> | application/pdf; acroread %s
>> `----
> That file was not on my system. The file /etc/mailcap was, but had no
> entry for pdf. I made the .mailcap file with the named entry, but to no
> avail.
Hi,
I have this (Debian Testing)
,----[ /etc/mailcap ]
| application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
| application/x-pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
`----
Pressing 'e' on an attached pdf opens xpdf for me.
What does "C-h v mailcap-mime-data" give for you?
Here is my relevant output:
Value:
(("application"
("vnd\\.oasis\\.opendocument\\.database"
[...]
("pdf"
(viewer . "/usr/bin/xpdf '%s'")
(type . "application/pdf")
("nametemplate" . "%s.pdf")
("description" . "Portable Document Format")
(test . "test \"$DISPLAY\" != \"\""))
("x-pdf"
(viewer . "/usr/bin/xpdf '%s'")
(type . "application/x-pdf")
("nametemplate" . "%s.pdf")
("description" . "Portable Document Format")
(test "test" "\"$DISPLAY\"" "!=" "\"\""))
("pdf"
(viewer . "fbgs -c '%s'")
(type . "application/pdf")
("needsterminal" . t)
(test))
[...]
hth
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opening pdf files in Acroread
2010-02-17 13:02 ` Memnon Anon
@ 2010-02-17 14:39 ` Thierry Volpiatto
0 siblings, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2010-02-17 14:39 UTC (permalink / raw)
To: info-gnus-english
Memnon Anon <gegendosenfleisch@googlemail.com> writes:
> Cecil Westerhof <Cecil@decebal.nl> writes:
>> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>> Not sure from where you try to open file, but adding a line like this in
>>> your ~/.mailcap should help:
>>>
>>> ,----[ mailcap entry ]
>>> | application/pdf; acroread %s
>>> `----
>> That file was not on my system. The file /etc/mailcap was, but had no
>> entry for pdf. I made the .mailcap file with the named entry, but to no
>> avail.
>
> Hi,
>
> I have this (Debian Testing)
>
> ,----[ /etc/mailcap ]
> | application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
> | application/x-pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
> `----
>
> Pressing 'e' on an attached pdf opens xpdf for me.
>
> What does "C-h v mailcap-mime-data" give for you?
> Here is my relevant output:
>
> Value:
> (("application"
> ("vnd\\.oasis\\.opendocument\\.database"
>
> [...]
>
> ("pdf"
> (viewer . "/usr/bin/xpdf '%s'")
> (type . "application/pdf")
> ("nametemplate" . "%s.pdf")
> ("description" . "Portable Document Format")
> (test . "test \"$DISPLAY\" != \"\""))
> ("x-pdf"
> (viewer . "/usr/bin/xpdf '%s'")
> (type . "application/x-pdf")
> ("nametemplate" . "%s.pdf")
> ("description" . "Portable Document Format")
> (test "test" "\"$DISPLAY\"" "!=" "\"\""))
> ("pdf"
> (viewer . "fbgs -c '%s'")
> (type . "application/pdf")
> ("needsterminal" . t)
> (test))
>
> [...]
>
> hth
This little function will give you the command used by mailcap for a
given file:
(defun get-mailcap-for-file (filename)
"Get the command to use for FILENAME from mailcap file.
The command is like <command %s> and is meant to use with `format'."
(let* ((ext (file-name-extension filename))
(mime (when ext (mailcap-extension-to-mime ext))))
(when mime (mailcap-mime-info mime))))
(get-mailcap-for-file "foo.pdf")
==> "xpdf %s"
--
Thierry Volpiatto
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Opening pdf files in Acroread
2010-02-17 11:22 ` Cecil Westerhof
2010-02-17 12:01 ` Cecil Westerhof
2010-02-17 13:02 ` Memnon Anon
@ 2010-04-17 18:20 ` Slackrat
2 siblings, 0 replies; 7+ messages in thread
From: Slackrat @ 2010-04-17 18:20 UTC (permalink / raw)
To: info-gnus-english
Cecil Westerhof a écrit profondement:
| Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
|
| >> I am working with 'GNU Emacs 23.1.1' and 'Gnus v5.13'. When clicking on
| >> an inline .pdf file I get a message like:
| >> Displaying gv -safer /tmp/emm.31402kGI/file.pdf...done
| >>
| >> But nothing is displayed. How can I make gnus open the .pdf file with
| >> Acroread?
| > Not sure from where you try to open file, but adding a line like this in
| > your ~/.mailcap should help:
| >
| > ,----[ mailcap entry ]
| > | application/pdf; acroread %s
| > `----
|
| That file was not on my system. The file /etc/mailcap was, but had no
| entry for pdf. I made the .mailcap file with the named entry, but to no
| avail.
Try this - good for acroread and xpdf
http://82.242.109.147:6080/unix/mailcap.txt
--
Slackrat
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-04-17 18:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-14 22:15 Opening pdf files in Acroread Cecil Westerhof
2010-02-15 7:53 ` Thierry Volpiatto
[not found] ` <mailman.1266.1266220709.14305.info-gnus-english@gnu.org>
2010-02-17 11:22 ` Cecil Westerhof
2010-02-17 12:01 ` Cecil Westerhof
2010-02-17 13:02 ` Memnon Anon
2010-02-17 14:39 ` Thierry Volpiatto
2010-04-17 18:20 ` Slackrat
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 NNTP newsgroup(s).