all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RFC: Make ~/.mailcap override other settings
@ 2018-04-12 21:22 Lars Ingebrigtsen
  2018-04-13  2:38 ` T.V Raman
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-12 21:22 UTC (permalink / raw)
  To: emacs-devel

Since, well, forever, Emacs has had several sources for information
about how to display files, like /etc/mailcap, ~/.mailcap and the
`mailcap-mime-data' variable.

But Emacs' handling of priorities here has never felt quite right, and
they have historical reasons: In olden days, some distributions put a
copy of /etc/mailcap into ~/.mailcap, so you didn't really know what the
system preferences were and what the user's preferences were.

So mailcap.el used the following precedence algorithm:

1) If it's in `mailcap-mime-data', use that.

2) If a specific type, say, "image/gif" is in both /etc/mailcap and
~/.mailcap, make the ~/.mailcap version win.

3) If we have less specific types covering the same type, make the most
specific win.  So if /etc/mailcap has "image/gif; xv" and ~/.mailcap has
"image/*; feh", then "image/gif" wins because it's more specific.

I don't really think this ever made much sense.  I think if the user has
put "image/*; feh" into ~/.mailcap, then that should win.

So I propose to make this change on master.  It's backward-incompatible,
but will lead to a lot less confusion in the years ahead.

What do all y'all think?

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





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

end of thread, other threads:[~2018-04-14 12:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-12 21:22 RFC: Make ~/.mailcap override other settings Lars Ingebrigtsen
2018-04-13  2:38 ` T.V Raman
2018-04-13 11:49   ` Lars Ingebrigtsen
2018-04-13  2:54 ` Mark Oteiza
2018-04-13  8:21 ` joakim
2018-04-13 14:00 ` Eli Zaretskii
2018-04-13 15:40   ` Lars Ingebrigtsen
2018-04-13 17:11   ` Lars Ingebrigtsen
2018-04-14 12:32     ` 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.