GNU bug report logs - #46318
28.0.50; mailcap-file-default-commands missing entries

Previous Next

Package: emacs;

Reported by: Mark Oteiza <mvoteiza <at> udel.edu>

Date: Fri, 5 Feb 2021 05:33:01 UTC

Severity: normal

Tags: fixed, moreinfo

Found in version 28.0.50

Fixed in version 28.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 46318 in the body.
You can then email your comments to 46318 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#46318; Package emacs. (Fri, 05 Feb 2021 05:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mark Oteiza <mvoteiza <at> udel.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 05 Feb 2021 05:33:02 GMT) Full text and rfc822 format available.

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

From: Mark Oteiza <mvoteiza <at> udel.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; mailcap-file-default-commands missing entries
Date: Fri, 5 Feb 2021 00:31:54 -0500
From -Q:
1. ~/.mailcap contains lines:
audio/*; mpv %s;
audio/*; play %s;
2. (require 'mailcap)
   (mailcap-file-default-commands '("lol.mp3"))
   ; => ("mpv")

I'd expect it to return '("mpv" "play" ...)

In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.4, Xaw scroll bars)
 of 2021-01-25 built on logos
Repository revision: a10c74fbea46d5299e19167248383c69fd30648c
Repository branch: master




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46318; Package emacs. (Fri, 05 Feb 2021 09:35:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mark Oteiza <mvoteiza <at> udel.edu>
Cc: 46318 <at> debbugs.gnu.org
Subject: Re: bug#46318: 28.0.50; mailcap-file-default-commands missing entries
Date: Fri, 05 Feb 2021 10:34:22 +0100
Mark Oteiza <mvoteiza <at> udel.edu> writes:

>>From -Q:
> 1. ~/.mailcap contains lines:
> audio/*; mpv %s;
> audio/*; play %s;
> 2. (require 'mailcap)
>    (mailcap-file-default-commands '("lol.mp3"))
>    ; => ("mpv")
>
> I'd expect it to return '("mpv" "play" ...)

The function will only return the commands that are actually installed.
Do you have "play" installed?

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




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Feb 2021 09:35:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46318; Package emacs. (Fri, 05 Feb 2021 15:55:01 GMT) Full text and rfc822 format available.

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

From: Mark Oteiza <mvoteiza <at> udel.edu>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 46318 <at> debbugs.gnu.org
Subject: Re: bug#46318: 28.0.50; mailcap-file-default-commands missing entries
Date: Fri, 5 Feb 2021 10:54:06 -0500
On 05/02/21 at 10:34am, Lars Ingebrigtsen wrote:
> Mark Oteiza <mvoteiza <at> udel.edu> writes:
> 
> >>From -Q:
> > 1. ~/.mailcap contains lines:
> > audio/*; mpv %s;
> > audio/*; play %s;
> > 2. (require 'mailcap)
> >    (mailcap-file-default-commands '("lol.mp3"))
> >    ; => ("mpv")
> >
> > I'd expect it to return '("mpv" "play" ...)
> 
> The function will only return the commands that are actually installed.
> Do you have "play" installed?
> 

When did it start checking for things being installed?  I don't see
executable-find or anything there.  FWIW, on another system with 24.5,
the recipe returns ("mpv" "play" "showaudio") and I have none of those
things installed on that system.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46318; Package emacs. (Sat, 06 Feb 2021 10:42:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mark Oteiza <mvoteiza <at> udel.edu>
Cc: 46318 <at> debbugs.gnu.org
Subject: Re: bug#46318: 28.0.50; mailcap-file-default-commands missing entries
Date: Sat, 06 Feb 2021 11:41:21 +0100
Mark Oteiza <mvoteiza <at> udel.edu> writes:

>> The function will only return the commands that are actually installed.
>> Do you have "play" installed?
>> 
>
> When did it start checking for things being installed?  I don't see
> executable-find or anything there.  FWIW, on another system with 24.5,
> the recipe returns ("mpv" "play" "showaudio") and I have none of those
> things installed on that system.

No, that wasn't the problem -- it was a bug in the code trying to prefer
entries from ~/.mailcap over other entries.  It would only use the first
entry found.

This is now fixed in Emacs 28.

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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 06 Feb 2021 10:42:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 46318 <at> debbugs.gnu.org and Mark Oteiza <mvoteiza <at> udel.edu> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 06 Feb 2021 10:42:02 GMT) Full text and rfc822 format available.

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

This bug report was last modified 3 years and 45 days ago.

Previous Next


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