GNU bug report logs - #51600
29.0.50; Entries in ~/.mailcap are overruled (Win10)

Previous Next

Package: emacs;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Thu, 4 Nov 2021 10:36:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51600 in the body.
You can then email your comments to 51600 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#51600; Package emacs. (Thu, 04 Nov 2021 10:36:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arash Esbati <arash <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 04 Nov 2021 10:36:01 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: emacs-bugs <bug-gnu-emacs <at> gnu.org>
Subject: 29.0.50; Entries in ~/.mailcap are overruled (Win10)
Date: Thu, 04 Nov 2021 11:35:09 +0100
Hi all,

I slightly changed the entry for "application/pdf" in my ~/.mailcap and
while trying out the result, I see that Emacs overrules my entries when
I start Gnus and write a message.  I'm on Win10 where for example I have
these 2 entries in ~/.mailcap:

    application/ms-tnef; wmopener.exe "%s"
    application/pdf;     start AcroRd32.exe %s

When I start Emacs and eval these forms in *scratch*, I get:

    (mailcap-mime-info "application/pdf")
    "start AcroRd32.exe %s"

    (mailcap-mime-info "application/ms-tnef")
    "wmopener.exe \"%s\""

As I'm writing this message, I get:

    (mailcap-mime-info "application/pdf")
    doc-view-mode

    (mailcap-mime-info "application/ms-tnef")
    nil

It used to work for me for a long time, so I suspect something went
wrong (at least for Windows) after this commit: daea9b3b44

Can others reproduce this?

Best, Arash




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51600; Package emacs. (Thu, 04 Nov 2021 11:09:02 GMT) Full text and rfc822 format available.

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

From: Gregory Heytings <gregory <at> heytings.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: 51600 <at> debbugs.gnu.org
Subject: Re: bug#51600: 29.0.50; Entries in ~/.mailcap are overruled
 (Win10)
Date: Thu, 04 Nov 2021 11:08:30 +0000
[Message part 1 (text/plain, inline)]
>
> When I start Emacs and eval these forms in *scratch*, I get:
>
> (mailcap-mime-info "application/pdf")
> "start AcroRd32.exe %s"
>
> (mailcap-mime-info "application/ms-tnef")
> "wmopener.exe \"%s\""
>
> As I'm writing this message, I get:
>
> (mailcap-mime-info "application/pdf")
> doc-view-mode
>
> (mailcap-mime-info "application/ms-tnef")
> nil
>

Indeed.  Patch attached.
[Reset-mailcap-entries-only-when-mailcap-files-are-re.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51600; Package emacs. (Thu, 04 Nov 2021 17:49:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: Arash Esbati <arash <at> gnu.org>, 51600 <at> debbugs.gnu.org
Subject: Re: bug#51600: 29.0.50; Entries in ~/.mailcap are overruled (Win10)
Date: Thu, 04 Nov 2021 18:48:47 +0100
Gregory Heytings <gregory <at> heytings.org> writes:

> Indeed.  Patch attached.

Thanks; applied to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 51600 <at> debbugs.gnu.org and Arash Esbati <arash <at> gnu.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 04 Nov 2021 17:50:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51600; Package emacs. (Thu, 04 Nov 2021 19:06:01 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: 51600 <at> debbugs.gnu.org
Subject: Re: bug#51600: 29.0.50; Entries in ~/.mailcap are overruled (Win10)
Date: Thu, 04 Nov 2021 20:04:33 +0100
Gregory Heytings <gregory <at> heytings.org> writes:

> Indeed.  Patch attached.

Thanks for the quick fix, works as expected.

Best, Arash




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 Dec 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 145 days ago.

Previous Next


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