From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: raman@google.com (T.V Raman) Newsgroups: gmane.emacs.devel Subject: Re: RFC: Make ~/.mailcap override other settings Date: Thu, 12 Apr 2018 19:38:56 -0700 Message-ID: References: <87zi28f7cf.fsf@mouse.gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523587039 31794 195.159.176.226 (13 Apr 2018 02:37:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2018 02:37:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 13 04:37:15 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6oaR-0008Ay-J7 for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2018 04:37:15 +0200 Original-Received: from localhost ([::1]:37882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6ocY-0006Mz-7l for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2018 22:39:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6ocO-0006LI-Al for emacs-devel@gnu.org; Thu, 12 Apr 2018 22:39:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6ocJ-0007zI-2x for emacs-devel@gnu.org; Thu, 12 Apr 2018 22:39:16 -0400 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:35117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6ocI-0007yu-SP for emacs-devel@gnu.org; Thu, 12 Apr 2018 22:39:11 -0400 Original-Received: by mail-pf0-x22d.google.com with SMTP id u86so5376181pfd.2 for ; Thu, 12 Apr 2018 19:39:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=mxUvp8V39y0NSMlWcGI23QCvfaxB4TVIXNkDYYRxMfQ=; b=Eh2SxJD2GRNmPYIR9efHyzn5O3xYLEepRl/7zBvMSIAT03i8Kyvnj5+B0T8P9qppS+ IFstuP1DcVyviu0S09yeECeOgVZ/+azQP1ggP2abD6JrbKwEry2gTVNiH6A3GpFwJ79j KirDW5j11gVZzOaFVSfm7aWMM2tgkZFHBSXzw6zLiNkXmPCMEAIlnjIMG98RyUJ6BYIE cRINdNbrjnBzK5IIeOdIOtUbsNwz2hnYvt0cwS7khS5TYJinly1mSXb7jI3veBzBsSTr ubZp1ddO/IfBZdDtONoFEZgKltt38WzvfjqCSiW4pjbbwUUCR8Wco+4f86g5H5x9QPNZ jY/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=mxUvp8V39y0NSMlWcGI23QCvfaxB4TVIXNkDYYRxMfQ=; b=d9gfgcfCOuli0MGMn8L0l0H859DUkagkIy2K6aRVo1pPqPSyY0tqXiv3n1JYlyEXrt YyFFXoiFnmXt2ofibv0EkhmfmgsYlDzoP3dir4KMNqgx9YahAbCGcn09vZLx5mRoPg84 uZKD0fZgMQkIP4kgpfyGi6xcpNnkb2FgmqV/FgxpARTNLMp3DfdDZZjRqmgE0WDkhX7g /mIhzHqS06DqXZTjazNI1CtkEPkdV1JOLyl2zjOXcO8yo4OUCGZZO6KCgx0FBex8AGVY eTfCcPuDfqWx9kvzmaevbVHuvwn4P+3cIewyrIL4xkM+wRzNrt3SX4w+CcQNz02725dC h1Lw== X-Gm-Message-State: ALQs6tDdSYY+D0PS15XQtIBj3GUJZ6UsMaNVJ+UNTi+dBqhxYjDV9pj0 fGPKyr8n/FQjLCrwijE6uMvlr7GIK/M= X-Google-Smtp-Source: AIpwx4/yEVvFXo/ZBXfAaefUzidi1TLJzhNlbcQKM2AUBYBmJXlgJ2R9UdHAGvrzAiboEq/WBd95zQ== X-Received: by 10.99.124.15 with SMTP id x15mr326941pgc.308.1523587146658; Thu, 12 Apr 2018 19:39:06 -0700 (PDT) Original-Received: from raman-glaptop (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id z13sm6043690pfe.55.2018.04.12.19.38.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 19:38:58 -0700 (PDT) In-Reply-To: <87zi28f7cf.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Thu, 12 Apr 2018 23:22:24 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224534 Archived-At: Lars Ingebrigtsen writes: Simplifying these as you suggest would be a good thing. Looking at my .custom file, I also have things like mm-text-html-renderer and associated content-type definitions going back the days of emacs/w3 -- defined in mm-decode.el -- do those need to be reconciled as well? to > 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? --