From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: kjonca@poczta.onet.pl (Kamil =?iso-8859-2?Q?Jo=F1ca?=) Newsgroups: gmane.emacs.help Subject: Re: pdf viewer Date: Sat, 06 Oct 2018 13:14:08 +0200 Organization: Telekomunikacja Polska Message-ID: <87va6fjpj3.fsf@alfa.kjonca> References: <87k1mv78ht.fsf@alfa.kjonca> <87woqvjtxg.fsf@iki.fi> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1538824421 17603 195.159.176.226 (6 Oct 2018 11:13:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2018 11:13:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 06 13:13:37 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8kWe-0004Tu-OS for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 13:13:36 +0200 Original-Received: from localhost ([::1]:38713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8kYl-00045l-AR for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 07:15:47 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Cancel-Lock: sha1:eBtp9+j1/XTWkgWArd+jfTJVyRc= Original-Lines: 37 Original-NNTP-Posting-Host: 178.235.55.163 Original-X-Trace: 1538824456 unt-rea-a-02.news.neostrada.pl 482 178.235.55.163:46118 Original-X-Complaints-To: abuse@news.neostrada.pl Original-Xref: usenet.stanford.edu gnu.emacs.help:224029 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118155 Archived-At: "Garreau, Alexandre" writes: > On 2018-10-06 at 12:39, Teemu Likonen wrote: >> Kamil Jońca [2018-10-06 11:02:54+02] wrote: >> >>> For some time emacs view pdf files with its internal viewer. But I >>> want to keep old behavior - open them with xpdf/evince How can I do >>> it? >> >> You can use mailcap-user-mime-data variable to override the (generated) >> defaults in mailcap-mime-data: >> >> (setq mailcap-user-mime-data >> '(((type . "application/pdf") >> (viewer . "evince %s")))) > > My emacs uses its internal viewer doc view, and yet I see this in my > predefined (I didn’t touch it myself) mailcap-user-mime-data: > > #+BEGIN_SRC elisp > ("pdf" > (viewer . "okular '%s'") > (type . "application/pdf") > (test "test" "\"$DISPLAY\"" "!=" "\"\"") > ("nametemplate" . "%s.pdf")) > #+END_SRC > Are you sure you speak about mailcap-user-mime-data, not mailcap-mime-data? I have huge mailcap-mime-data, but mailcap-user-mime-data was empty/undefined. KJ -- http://stopstopnop.pl/stop_stopnop.pl_o_nas.html A lie in time saves nine.