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 14:48:06 +0300 Message-ID: <83a6j055e1.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="16048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 18132@debbugs.gnu.org, rrt@sc3d.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 13:49:20 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 1meFWa-0003wr-2K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 13:49:20 +0200 Original-Received: from localhost ([::1]:45664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meFWY-0003jo-Ks for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 07:49:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meFWJ-0003jP-89 for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 07:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51212) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meFWI-0003YH-1D for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 07:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meFWH-0007M1-Ri for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 07:49: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 11:49: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.163498970528224 (code B ref 18132); Sat, 23 Oct 2021 11:49:01 +0000 Original-Received: (at 18132) by debbugs.gnu.org; 23 Oct 2021 11:48:25 +0000 Original-Received: from localhost ([127.0.0.1]:34525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meFVh-0007LA-29 for submit@debbugs.gnu.org; Sat, 23 Oct 2021 07:48:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meFVf-0007Kw-OT for 18132@debbugs.gnu.org; Sat, 23 Oct 2021 07:48:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58482) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meFVZ-0002YH-P9; Sat, 23 Oct 2021 07:48:17 -0400 Original-Received: from [87.69.77.57] (port=2406 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 1meFVZ-0003es-Ak; Sat, 23 Oct 2021 07:48:17 -0400 In-Reply-To: (message from Stefan Kangas on Sat, 23 Oct 2021 02:48:19 -0700) 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:217973 Archived-At: > From: Stefan Kangas > Date: Sat, 23 Oct 2021 02:48:19 -0700 > Cc: rrt@sc3d.org, 18132@debbugs.gnu.org > > Eli Zaretskii writes: > > > More generally, I'm not sure mailcap is the right tool for the job: > > its main purpose is to view attachments to email messages, where we > > generally have metadata (MIME etc.) which is not necessarily available > > for arbitrary disk files. > > Isn't that just "file --mime-type -b"? file is a BSD command AFAICT so > it should presumably be available almost everywhere. It isn't available on Windows, for starters. (I do have it, but I ported it myself.) And what about files that have no MIME type defined for them? Or where 'file's output is not really useful, like this: $ file --mime-type -b elisp.info application/octet-stream