From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el) Date: Sat, 23 Oct 2021 16:20:16 +0300 Message-ID: <834k976fov.fsf@gnu.org> References: <87d2cn67zo.fsf@mail.jurta.org> <87bns6dcul.fsf@mail.jurta.org> <87silbstsc.fsf@mail.jurta.org> <83lf2k5gna.fsf@gnu.org> <83h7d85ec3.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan@marxist.se, 18132@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 15:21:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meGxT-0008MQ-Ai for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 15:21:11 +0200 Original-Received: from localhost ([::1]:35294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meGxS-0006TP-1B for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 09:21:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meGxK-0006Sc-BY for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 09:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meGxK-0000uS-2n for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 09:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meGxJ-0001N3-S0 for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 09:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 13:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18132 X-GNU-PR-Package: emacs Original-Received: via spool by 18132-submit@debbugs.gnu.org id=B18132.16349952365211 (code B ref 18132); Sat, 23 Oct 2021 13:21:01 +0000 Original-Received: (at 18132) by debbugs.gnu.org; 23 Oct 2021 13:20:36 +0000 Original-Received: from localhost ([127.0.0.1]:34700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meGwu-0001Lz-8G for submit@debbugs.gnu.org; Sat, 23 Oct 2021 09:20:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meGws-0001Lm-KA for 18132@debbugs.gnu.org; Sat, 23 Oct 2021 09:20:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:32860) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meGwn-0008Ha-44; Sat, 23 Oct 2021 09:20:29 -0400 Original-Received: from [87.69.77.57] (port=4352 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meGwm-0001Ti-N4; Sat, 23 Oct 2021 09:20:29 -0400 In-Reply-To: (message from Reuben Thomas on Sat, 23 Oct 2021 14:06:27 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217991 Archived-At: > From: Reuben Thomas > Date: Sat, 23 Oct 2021 14:06:27 +0100 > Cc: Eli Zaretskii , 18132@debbugs.gnu.org > > I agree with Eli that mailcap is not the right tool for the job. (Then why are we still talking about 'file'?) > file's MIME-type support is easy to fix for types that don't (yet) have a MIME type supplied; file is actively > maintained and frequently released. Not sure it will help. Example: $ file --mime-type -k -b lisp/international/uni-bidi.el application/octet-stream Looks like there are some fundamental problems in 'file' that make it not ideal for this purpose, to say the least. Which, to me, just reiterates what I already said up-thread: we should allow users to override what the system-level tools provide, because they will never be 100% satisfactory for our needs.