From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: RFC: Make ~/.mailcap override other settings Date: Thu, 12 Apr 2018 22:54:17 -0400 Message-ID: <878t9rizom.fsf@udel.edu> 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 1523587996 6050 195.159.176.226 (13 Apr 2018 02:53:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2018 02:53:16 +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:53:12 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 1f6opq-0001St-RS for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2018 04:53:10 +0200 Original-Received: from localhost ([::1]:38965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6orx-0003UG-94 for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2018 22:55:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6or3-0003Pg-Su for emacs-devel@gnu.org; Thu, 12 Apr 2018 22:54:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6or0-00082k-01 for emacs-devel@gnu.org; Thu, 12 Apr 2018 22:54:25 -0400 Original-Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]:36090) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6oqz-00081h-PP for emacs-devel@gnu.org; Thu, 12 Apr 2018 22:54:21 -0400 Original-Received: by mail-yw0-x229.google.com with SMTP id c9so510231ywb.3 for ; Thu, 12 Apr 2018 19:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=I4jcH3J2yblBIp5uTc9kUzRSxAeBJDAFCN2RwmclPis=; b=uRme+0uEWOJvWXFle98IsYc+kv1qTAsDSclL/SKTaNWV+6KriobZARg7RA9HZJ7Is+ /epKk2XyqiqL31+CMqOtCzUzFZgMEFa6/fo3H93gG1lw3/gXo6irujm0N1TIRWiqryEC d44Yhu5m/0v1JYfyUGvw+7LdnhNnSb4hZATbtqpDdCtBUv0M3KRZ6UydZ5LrR6gnwFJh vw3YKu6RU3ySMzUkSL7kkJQgu2733NdIE9Cnh1YdKQ4JDg9AMuux6rDVxdlg53CFxNAq 2E7bok2oV4nOCoVvbeMaCG6PQS10o9D0n1vhWs02tvhJJIgwCPmeizbd+veINCexLdmk j7NQ== 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=I4jcH3J2yblBIp5uTc9kUzRSxAeBJDAFCN2RwmclPis=; b=DFHR1dXcRV6Th1ba+he97QT+EM+rTbWqlWj9y7QtawOZ4hl5cefGTWJwE9aF9XZ/0m SGl1mk2J03vH7sXVo34Pu3QRXRMDQShffM9eDw21z6z5rLTCiXGq6XEMDtIUE6zT1J+r 1Tp0BO/7c+BnQp3TQ71381KpS2V+aDA7+FJnWxqR7PvN8AfX/M0+kG/S9FmevyeSgia7 1mWZiWz4VF430Xn1beLuLBzDMfHo1ne9a0BFNoxw/jeLpg2zLs7W2EDPXgIejFxMAwMT 574BL8jl8eN+8r4gxJxffhAzd7EI8xMVJqn1x7mDdBobuNdFHqxK1vPoXOtbk6Qbc3aq MH5A== X-Gm-Message-State: ALQs6tBBANogsGZkKwHXE4NrV69PMrtswBX+5wE+dutKOYQVy0jG+k/h +YVGYtlwaABHW4iGxsuZUwo+Xhvs7AU= X-Google-Smtp-Source: AIpwx48pgVW4Gr5am2neZkLAQO1FI8sXmA3JMcL2jKJbKEBfbOF+TsiHDiIkcWzMGcpyjSmdWoKepw== X-Received: by 10.13.251.69 with SMTP id l66mr2864719ywf.499.1523588059316; Thu, 12 Apr 2018 19:54:19 -0700 (PDT) Original-Received: from logos (pool-96-234-152-91.bltmmd.fios.verizon.net. [96.234.152.91]) by smtp.gmail.com with ESMTPSA id m31sm3982880qtd.95.2018.04.12.19.54.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 19:54:18 -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:4002:c05::229 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:224535 Archived-At: Lars Ingebrigtsen writes: > 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. Yikes, this does sound bizarre. > 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? +1. Makes sense to me to have rule precedence follow the usual user- then system- specific config convention. The RFC[0] doesn't seem to say anything about it and (as an example) it looks like that's how (neo)mutt has done it [1]. [0] https://tools.ietf.org/html/rfc1524 [1] https://raw.githubusercontent.com/neomutt/neomutt/92914f28/rfc1524.c