all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#46318: 28.0.50; mailcap-file-default-commands missing entries
@ 2021-02-05  5:31 Mark Oteiza
  2021-02-05  9:34 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Oteiza @ 2021-02-05  5:31 UTC (permalink / raw)
  To: 46318

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#46318: 28.0.50; mailcap-file-default-commands missing entries
  2021-02-05  5:31 bug#46318: 28.0.50; mailcap-file-default-commands missing entries Mark Oteiza
@ 2021-02-05  9:34 ` Lars Ingebrigtsen
  2021-02-05 15:54   ` Mark Oteiza
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-05  9:34 UTC (permalink / raw)
  To: Mark Oteiza; +Cc: 46318

Mark Oteiza <mvoteiza@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#46318: 28.0.50; mailcap-file-default-commands missing entries
  2021-02-05  9:34 ` Lars Ingebrigtsen
@ 2021-02-05 15:54   ` Mark Oteiza
  2021-02-06 10:41     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Oteiza @ 2021-02-05 15:54 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 46318

On 05/02/21 at 10:34am, Lars Ingebrigtsen wrote:
> Mark Oteiza <mvoteiza@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#46318: 28.0.50; mailcap-file-default-commands missing entries
  2021-02-05 15:54   ` Mark Oteiza
@ 2021-02-06 10:41     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-06 10:41 UTC (permalink / raw)
  To: Mark Oteiza; +Cc: 46318

Mark Oteiza <mvoteiza@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-06 10:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-05  5:31 bug#46318: 28.0.50; mailcap-file-default-commands missing entries Mark Oteiza
2021-02-05  9:34 ` Lars Ingebrigtsen
2021-02-05 15:54   ` Mark Oteiza
2021-02-06 10:41     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.