* Re: Recent Emacs doesn't respect my mailcap
[not found] <mailman.18666.1422291069.1147.help-gnu-emacs@gnu.org>
@ 2015-01-27 0:10 ` Lars Magne Ingebrigtsen
2015-01-27 1:31 ` Rasmus
[not found] ` <mailman.18710.1422322318.1147.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 9+ messages in thread
From: Lars Magne Ingebrigtsen @ 2015-01-27 0:10 UTC (permalink / raw)
To: Rasmus; +Cc: help-gnu-emacs
Rasmus <rasmus@gmx.us> writes:
> In recent Emacs (v25+) doc-view has completely taken opening PDFs from
> within Emacs, disregarding my preferences as stated via ~/.mailcap.
Did this start happening yesterday? Then this might be related to this
change:
http://permalink.gmane.org/gmane.emacs.gnus.general/85405
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Recent Emacs doesn't respect my mailcap
2015-01-27 0:10 ` Recent Emacs doesn't respect my mailcap Lars Magne Ingebrigtsen
@ 2015-01-27 1:31 ` Rasmus
[not found] ` <mailman.18710.1422322318.1147.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 9+ messages in thread
From: Rasmus @ 2015-01-27 1:31 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
Lars Magne Ingebrigtsen <lmi@gnus.org> writes:
> Rasmus <rasmus@gmx.us> writes:
>
>> In recent Emacs (v25+) doc-view has completely taken opening PDFs from
>> within Emacs, disregarding my preferences as stated via ~/.mailcap.
>
> Did this start happening yesterday? Then this might be related to this
> change:
>
> http://permalink.gmane.org/gmane.emacs.gnus.general/85405
Thanks for the pointer. It didn't start happening yesterday, but I
thought I also saw it with a fresh build, but maybe I was imaging things.
Maybe mailcap-mime-data should have an implicit USER-SET/PRIORITY flag
that is added to entries read from user-mailcaps. These could then be
preferred by `mailcap-viewer-lessp'. Would that solution work?
Larsi wrote in January in other thread:
> [...] but we can perhaps tweak this later if it seems annoying.
IMO it's extremely annoying. Doc-view is nice and all, but it's not fast
enough for being the default viewer (initial load is 5s of seconds
sampling typical pdfs from the last couple of days, zoom and scrolling is
very slow).
For now I'll eradicate doc-view from mailcap-mime-data manually.
—Rasmus
--
This message is brought to you by the department of redundant departments
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <mailman.18710.1422322318.1147.help-gnu-emacs@gnu.org>]
* Re: Recent Emacs doesn't respect my mailcap
[not found] ` <mailman.18710.1422322318.1147.help-gnu-emacs@gnu.org>
@ 2015-01-27 1:35 ` Lars Magne Ingebrigtsen
2015-01-27 1:40 ` Rasmus
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Lars Magne Ingebrigtsen @ 2015-01-27 1:35 UTC (permalink / raw)
To: Rasmus; +Cc: help-gnu-emacs
Rasmus <rasmus@gmx.us> writes:
> Maybe mailcap-mime-data should have an implicit USER-SET/PRIORITY flag
> that is added to entries read from user-mailcaps. These could then be
> preferred by `mailcap-viewer-lessp'. Would that solution work?
I though the first viable viewer in the list would be used? So the
priority is how it's ordered...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Recent Emacs doesn't respect my mailcap
2015-01-27 1:35 ` Lars Magne Ingebrigtsen
@ 2015-01-27 1:40 ` Rasmus
[not found] ` <mailman.18712.1422322837.1147.help-gnu-emacs@gnu.org>
2015-01-27 19:17 ` Jose A. Ortega Ruiz
2 siblings, 0 replies; 9+ messages in thread
From: Rasmus @ 2015-01-27 1:40 UTC (permalink / raw)
To: help-gnu-emacs
Lars Magne Ingebrigtsen <lmi@gnus.org> writes:
> I though the first viable viewer in the list would be used? So the
> priority is how it's ordered...
According to Peder:
> > Hmm, I haven't removed that entry, but I do have earlier entries keyed
> > to "pdf" that point to xdg-open. Still doesn't use it, though...
> 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 took his word for it, though.
On my system:
(assoc "pdf" (assoc "application" mailcap-mime-data)) =>
("pdf" (viewer . "evince %s") (type . "application/pdf"))
But I'm still stuck with doc-view...
—Rasmus
--
The second rule of Fight Club is: You do not talk about Fight Club
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <mailman.18712.1422322837.1147.help-gnu-emacs@gnu.org>]
* Re: Recent Emacs doesn't respect my mailcap
[not found] ` <mailman.18712.1422322837.1147.help-gnu-emacs@gnu.org>
@ 2015-01-27 1:58 ` Lars Magne Ingebrigtsen
2015-01-27 2:11 ` Rasmus
0 siblings, 1 reply; 9+ messages in thread
From: Lars Magne Ingebrigtsen @ 2015-01-27 1:58 UTC (permalink / raw)
To: Rasmus; +Cc: help-gnu-emacs, ding
Rasmus <rasmus@gmx.us> 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 took his word for it, though.
Oh, sorry, forgot that bit...
I've looked at the code a bit more, and what it's doing now seems rather
odd.
I can't seem to get
(mailcap-mime-info "application/pdf")
to respect my ~/.mailcap file at all? Is that a bug or is it supposed
to be that way?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Recent Emacs doesn't respect my mailcap
2015-01-27 1:58 ` Lars Magne Ingebrigtsen
@ 2015-01-27 2:11 ` Rasmus
0 siblings, 0 replies; 9+ messages in thread
From: Rasmus @ 2015-01-27 2:11 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: ding
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Recent Emacs doesn't respect my mailcap
2015-01-27 1:35 ` Lars Magne Ingebrigtsen
2015-01-27 1:40 ` Rasmus
[not found] ` <mailman.18712.1422322837.1147.help-gnu-emacs@gnu.org>
@ 2015-01-27 19:17 ` Jose A. Ortega Ruiz
2 siblings, 0 replies; 9+ messages in thread
From: Jose A. Ortega Ruiz @ 2015-01-27 19:17 UTC (permalink / raw)
To: help-gnu-emacs
On Tue, Jan 27 2015, Lars Magne Ingebrigtsen wrote:
> Rasmus <rasmus@gmx.us> writes:
>
>> Maybe mailcap-mime-data should have an implicit USER-SET/PRIORITY flag
>> that is added to entries read from user-mailcaps. These could then be
>> preferred by `mailcap-viewer-lessp'. Would that solution work?
>
> I though the first viable viewer in the list would be used? So the
> priority is how it's ordered...
No, that's the problem: the viewer is picked by ordering them using
`mailcap-viewer-lessp`, and that function is giving preference to
elisp-based viewer over any other, no matter in which order they were
read. IMHO, that's a bug.
Cheers,
jao
--
I took a speed reading course and read War and Peace in twenty
minutes. It involves Russia. -Woody Allen
^ permalink raw reply [flat|nested] 9+ messages in thread
* Recent Emacs doesn't respect my mailcap
@ 2015-01-26 16:50 Rasmus
2015-01-28 10:46 ` Nicolas Richard
0 siblings, 1 reply; 9+ messages in thread
From: Rasmus @ 2015-01-26 16:50 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
In recent Emacs (v25+) doc-view has completely taken opening PDFs from
within Emacs, disregarding my preferences as stated via ~/.mailcap.
Before, mime types of 'application/pdf' would be opened via evince in both
org and gnus. Now if I'm lucky it opens in doc-view or, worse, (in gnus)
asks me where to save it.
From emacs -q, doc-view respects neither of these settings:
(require 'mailcap)
;; neither of these works
(mailcap-add "application/pdf" "evince %s")
(mailcap-parse-mailcaps)
;; ~/.mailcap has the line:
;; application/pdf; evince %s;
;; application/*; xdg-open %s;
I looked through etc/NEWS but didn't see any obvious source of this new
behavior.
Can anybody tell me what might've cause doc-view's recent power-trip?
Thanks,
Rasmus
--
Send from my Emacs
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Recent Emacs doesn't respect my mailcap
2015-01-26 16:50 Rasmus
@ 2015-01-28 10:46 ` Nicolas Richard
0 siblings, 0 replies; 9+ messages in thread
From: Nicolas Richard @ 2015-01-28 10:46 UTC (permalink / raw)
To: Rasmus; +Cc: help-gnu-emacs
Rasmus <rasmus@gmx.us> writes:
> In recent Emacs (v25+) doc-view has completely taken opening PDFs from
> within Emacs, disregarding my preferences as stated via ~/.mailcap.
>
> I looked through etc/NEWS but didn't see any obvious source of this new
> behavior.
Thanks for bringing this up ! I have similar problems. I think
7747e23ecd6c7b140a67812ad22421ef426a7a24 is a potential culprit.
--
Nicolas
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-01-28 10:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.18666.1422291069.1147.help-gnu-emacs@gnu.org>
2015-01-27 0:10 ` Recent Emacs doesn't respect my mailcap Lars Magne Ingebrigtsen
2015-01-27 1:31 ` Rasmus
[not found] ` <mailman.18710.1422322318.1147.help-gnu-emacs@gnu.org>
2015-01-27 1:35 ` Lars Magne Ingebrigtsen
2015-01-27 1:40 ` Rasmus
[not found] ` <mailman.18712.1422322837.1147.help-gnu-emacs@gnu.org>
2015-01-27 1:58 ` Lars Magne Ingebrigtsen
2015-01-27 2:11 ` Rasmus
2015-01-27 19:17 ` Jose A. Ortega Ruiz
2015-01-26 16:50 Rasmus
2015-01-28 10:46 ` Nicolas Richard
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).