GNU bug report logs - #44338
27.1; EWW can't download and view pdf

Previous Next

Package: emacs;

Reported by: Nicholas Harrison <nicholasharrison222 <at> gmail.com>

Date: Fri, 30 Oct 2020 22:21:02 UTC

Severity: minor

Tags: fixed, patch

Found in version 27.1

Fixed in version 28.1

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


Message #38 received at 44338 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 44338 <at> debbugs.gnu.org, Nicholas Harrison <nicholasharrison222 <at> gmail.com>
Subject: Re: bug#44338: 27.1; EWW can't download and view pdf
Date: Tue, 03 Nov 2020 21:28:58 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> (pp mailcap--computed-mime-data (current-buffer))
> =>
>
>   ("pdf"
>    (viewer . doc-view-mode)
>    (type . "application/pdf")
>    (test . window-system))
>   ("pdf"
>    (viewer . pdf-view-mode)
>    (type . "application/pdf")
>    (test . window-system))
>
> So doc-view-mode is ahead of pdf-view-mode in the computed structure...
>
> Ah; mailcap-mime-data entries are handled in opposite order -- the final
> matching entry is the one that wins, not the first one?  Looks like it.

Yes, mailcap--computed-mime-data is in reverse order w.r.t. both major
and minor mime types.

> I've now noted this in the doc string, and I've also moved pdf-view-mode
> later, because it makes sense to prefer that if it's installed (since
> doc-view-mode is build in.

Alternatively, mailcap--computed-mime-data could be kept in canonical
order, e.g. in mailcap-add-mailcap-entry?

[BTW, I don't see the function mailcap-add used anywhere.]
[And neither do I see your changes on Savannah. ;]

Thanks,

-- 
Basil




This bug report was last modified 4 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.