help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recent Emacs doesn't respect my mailcap


From: Rasmus
Subject: Re: Recent Emacs doesn't respect my mailcap
Date: Tue, 27 Jan 2015 03:11:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Hi,

Lars Magne Ingebrigtsen <lmi@gnus.org> writes:

>>> That's because mailcap.el sorts the candidates using
>>> mailcap-viewer-lessp, which is hardcoded to prefer lisp-implemented
>>> viewers.
>>
>> http://thread.gmane.org/gmane.emacs.gnus.general/85405
> 
> I've looked at the code a bit more, and what it's doing now seems rather
> odd.

OK.  I haven't checked it yet.

> I can't seem to get
>
> (mailcap-mime-info "application/pdf")
>
> to respect my ~/.mailcap file at all?  

Nope.

I picks up evince, which is in my ~/.mailcap after I remove doc-view-mode:

(setcdr
   (assoc "application" mailcap-mime-data)
   (remove '("pdf"
             (viewer . doc-view-mode)
             (type . "application/pdf")
             (test eq window-system 'x))
           (cdr (assoc "application" mailcap-mime-data))))

> Is that a bug or is it supposed to be that way?

A bug, I hope!

Thanks,
Rasmus

-- 
Bang bang




reply via email to

[Prev in Thread] Current Thread [Next in Thread]