From unknown Sun Jun 22 15:25:57 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2414: 23.0.90; use dired-guess-default too for minibuffer-default-add-shell-commands Reply-To: "Drew Adams" , 2414@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 20:10:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2414 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123516010430331 (code B ref -1); Fri, 20 Feb 2009 20:10:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 20 Feb 2009 20:01:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1KK1fpo030325 for ; Fri, 20 Feb 2009 12:01:42 -0800 Received: from mx10.gnu.org ([199.232.76.166]:52090) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LabX1-0002Ed-5c for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 14:59:31 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LabZ2-0006WG-QH for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 15:01:38 -0500 Received: from rcsinet13.oracle.com ([148.87.113.125]:54156 helo=rgminet13.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LabZ2-0006UC-8d for emacs-pretest-bug@gnu.org; Fri, 20 Feb 2009 15:01:36 -0500 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1KK2WL6025781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 20 Feb 2009 20:02:33 GMT Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1KK1S2j029399 for ; Fri, 20 Feb 2009 20:01:29 GMT Received: from dradamslap1 (/24.5.128.33) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 20 Feb 2009 12:01:25 -0800 From: "Drew Adams" To: Date: Fri, 20 Feb 2009 12:01:29 -0800 Message-ID: <000601c99396$05d396a0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcmTlgTlM4Ywfk6oRceJo/Ce3dy/dA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A09020B.499F0C17.0307:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) Enhancement request: `minibuffer-default-add-shell-commands' should add to the minibuffer defaults list not only the commands determined by MIME type (which it does now, using `mailcap-file-default-commands'), but also the commands determined by `dired-guess-default'. `dired-guess-default' is defined in dired-x.el, but it has nothing to do with Dired, AFAICT, so there is no reason that it should not be available (and used) generally. And variables `dired-guess-shell-alist-user' and `dired-guess-shell-alist-default' should also be factored out of dired-x.el. They too are not Dired-related, AFAICT. It is true that the default value of `dired-guess-shell-alist-default' is computed using some variables, such as `dired-guess-shell-gnutar', that are defined in dired-x.el. However, those parts of the value could be picked up dynamically and conditionally instead. Or, if they too are not Dired-related, they could be moved elsewhere and made available generally. Note, BTW, that dired-x.el already uses `minibuffer-default-add-shell-commands' in `dired-smart-shell-command' (in dired-x.el). It makes no sense that only the MIME types be used to come up with defaults, and not also `dired-guess-default', in the very library that defines `dired-guess-default'! My guess is that someone just updated `dired-smart-shell-command' for Emacs 23 mechanically, without thinking about the commands provided by `dired-guess-default'. IOW, it was a mechanical substitution of the same diff that was used to update `read-shell-command'. The idea behind this enhancement request is that there is no reason that `minibuffer-default-add-shell-commands' should not benefit also from the candidate commands defined by these alists. In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600) of 2009-02-01 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' From cyd@stupidchicken.com Sat Feb 21 07:05:23 2009 Received: (at control) by emacsbugs.donarmstrong.com; 21 Feb 2009 15:05:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1LF5LUS030554 for ; Sat, 21 Feb 2009 07:05:22 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 0E73C57E21A; Sat, 21 Feb 2009 10:06:18 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 2414 wishlist Date: Sat, 21 Feb 2009 10:06:18 -0500 Message-ID: <87eixrkexh.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 2414 wishlist thanks From unknown Sun Jun 22 15:25:57 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2414: 23.0.90; use dired-guess-default too for minibuffer-default-add-shell-commands Reply-To: Juri Linkov , 2414@debbugs.gnu.org Resent-From: Juri Linkov Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 22 Feb 2009 22:05:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2414 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2414-submit@emacsbugs.donarmstrong.com id=B2414.123533976812187 (code B ref 2414); Sun, 22 Feb 2009 22:05:09 +0000 Received: (at 2414) by emacsbugs.donarmstrong.com; 22 Feb 2009 21:56:08 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MLu4fo012181 for <2414@emacsbugs.donarmstrong.com>; Sun, 22 Feb 2009 13:56:05 -0800 Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1LbMIt-000B1a-DB; Sun, 22 Feb 2009 23:56:03 +0200 From: Juri Linkov To: Drew Adams Cc: 2414@debbugs.gnu.org Organization: JURTA References: <000601c99396$05d396a0$0200a8c0@us.oracle.com> Date: Sun, 22 Feb 2009 23:54:10 +0200 In-Reply-To: <000601c99396$05d396a0$0200a8c0@us.oracle.com> (Drew Adams's message of "Fri, 20 Feb 2009 12:01:29 -0800") Message-ID: <87r61qf8ph.fsf@jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanner-Signature: 7155bbd8d023de41950ebecbe4708355 X-DrWeb-checked: yes > Enhancement request: > > `minibuffer-default-add-shell-commands' should add to the minibuffer > defaults list not only the commands determined by MIME type (which it > does now, using `mailcap-file-default-commands'), but also the > commands determined by `dired-guess-default'. > > `dired-guess-default' is defined in dired-x.el, but it has nothing to > do with Dired, AFAICT, so there is no reason that it should not be > available (and used) generally. > > And variables `dired-guess-shell-alist-user' and > `dired-guess-shell-alist-default' should also be factored out of > dired-x.el. They too are not Dired-related, AFAICT. Instead of generalizing `dired-guess-shell-alist-default', I'd rather create a similar user-defined list of commands to override default MIME commands in `mailcap-mime-data' (using something like `mailcap-add'). > Note, BTW, that dired-x.el already uses `minibuffer-default-add-shell-commands' > in `dired-smart-shell-command' (in dired-x.el). It makes no > sense that only the MIME types be used to come up with defaults, and > not also `dired-guess-default', in the very library that defines > `dired-guess-default'! Thanks for the pointer. After moving code with `minibuffer-default-add-shell-commands' from `shell-command' to `read-shell-command' on 2008-07-31 I forgot to change `dired-smart-shell-command' the same way. Fixed now. > My guess is that someone just updated `dired-smart-shell-command' for > Emacs 23 mechanically, without thinking about the commands provided > by `dired-guess-default'. IOW, it was a mechanical substitution of > the same diff that was used to update `read-shell-command'. `dired-smart-shell-command' is unrelated to `dired-guess-default' with its alists. `dired-smart-shell-command' is bound to `M-!' and according to its docstring it should work like `shell-command'. Moreover, currently `M-!' is the only way to use MIME commands from `mailcap-file-default-commands' when dired-x is loaded! -- Juri Linkov http://www.jurta.org/emacs/ From unknown Sun Jun 22 15:25:57 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2414: 23.0.90; use dired-guess-default too for minibuffer-default-add-shell-commands Reply-To: "Drew Adams" , 2414@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 22 Feb 2009 23:10:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2414 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2414-submit@emacsbugs.donarmstrong.com id=B2414.123534388428545 (code B ref 2414); Sun, 22 Feb 2009 23:10:04 +0000 Received: (at 2414) by emacsbugs.donarmstrong.com; 22 Feb 2009 23:04:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from acsinet11.oracle.com (acsinet11.oracle.com [141.146.126.233]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MN4eiD028539 for <2414@emacsbugs.donarmstrong.com>; Sun, 22 Feb 2009 15:04:41 -0800 Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1MN4v9S007045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 22 Feb 2009 23:04:58 GMT Received: from acsmt707.oracle.com (acsmt707.oracle.com [141.146.40.85]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1MN4dQk029487; Sun, 22 Feb 2009 23:04:41 GMT Received: from dradamslap1 (/24.5.128.33) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 22 Feb 2009 23:04:30 +0000 From: "Drew Adams" To: "'Juri Linkov'" Cc: <2414@debbugs.gnu.org> References: <000601c99396$05d396a0$0200a8c0@us.oracle.com> <87r61qf8ph.fsf@jurta.org> Date: Sun, 22 Feb 2009 15:04:53 -0800 Message-ID: <001b01c99541$f91510d0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87r61qf8ph.fsf@jurta.org> Thread-Index: AcmVOGOwqE7lnXwdT3SiqcP7UasRxgABISSA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt707.oracle.com [141.146.40.85] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.49A1D9FF.0330:SCFSTAT928724,ss=1,fgs=0 > > Enhancement request: > > > > `minibuffer-default-add-shell-commands' should add to the minibuffer > > defaults list not only the commands determined by MIME type > (which it > > does now, using `mailcap-file-default-commands'), but also the > > commands determined by `dired-guess-default'. > > > > `dired-guess-default' is defined in dired-x.el, but it has > > nothing to do with Dired, AFAICT, so there is no reason that > > it should not be available (and used) generally. > > > > And variables `dired-guess-shell-alist-user' and > > `dired-guess-shell-alist-default' should also be factored out of > > dired-x.el. They too are not Dired-related, AFAICT. > > Instead of generalizing `dired-guess-shell-alist-default', > I'd rather create a similar user-defined list of commands > to override default MIME commands in `mailcap-mime-data' > (using something like `mailcap-add'). `dired-guess-shell-alist-user' is the user-defined list; `dired-guess-shell-alist-default' is not user-defined. But a user-defined list lets users override and supplement a default list of rules. Why would this necessarily have anything to do with MIME types? The Dired-X style rules provide an orthogonal way to provide guesses of shell commands for given file types. If you want to *also* do something similar for MIME types (a user-defined MIME-association list, to override default MIME-association behavior), that's another story. That is a separate suggestion from the one I am making. What is wrong with having a default set of Dired-X style rules, such as `dired-guess-shell-alist-default' - but outside of Dired(-X), and likewise let users provide a set of custom rules to override these default rules (like `dired-guess-shell-alist-user' - but outside of Dired(-X))? Why couple such rules with MIME-type overrides? MIME-type associations are a different kind of file-type association from the simple Dired-X style rules. And we could go beyond this, to include MS Windows file-type associations (which I believe are in the Registry). On Windows, Emacs could employ also those associations when trying to suggest appropriate programs (shell commands) for a given set of file types. FWIW, (except for including MS Windows associations), I do this in Icicles. For example, for a PDF file marked in Dired, the MIME-type association comes up with commands `gv -safer' and `pdftotext ? -', and the Dired-X rules come up with command `xpdf' (with my Cygwin bash shell and default MIME types). There's no reason not to provide all three commands to the user. And there's no reason to try to shoehorn everything into the form of MIME-type associations, so that MIME alone is made to come up with all three guesses. Improving MIME associations is possible, but it is a separate question. Not everything need be done in the context of MIME types. The Dired-X style rules are handy and orthogonal, as are MS Windows file-type associations. Come to think of it, there might be a reason for Dired to keep its own set of such rules, in *addition* to creating a global set. That might be handy for use by code and hooks etc. Dunno. But the main thing is to move these two alists out of Dired-X and make their associations available generally, in the same way as the MIME associations are available generally. > > Note, BTW, that dired-x.el already uses > > `minibuffer-default-add-shell-commands' > > in `dired-smart-shell-command' (in dired-x.el). It makes no > > sense that only the MIME types be used to come up with defaults, and > > not also `dired-guess-default', in the very library that defines > > `dired-guess-default'! > > Thanks for the pointer. After moving code with > `minibuffer-default-add-shell-commands' from `shell-command' > to `read-shell-command' on 2008-07-31 I forgot to change > `dired-smart-shell-command' the same way. Fixed now. > > > My guess is that someone just updated > > `dired-smart-shell-command' for > > Emacs 23 mechanically, without thinking about the commands provided > > by `dired-guess-default'. IOW, it was a mechanical substitution of > > the same diff that was used to update `read-shell-command'. > > `dired-smart-shell-command' is unrelated to `dired-guess-default' > with its alists. `dired-smart-shell-command' is bound to `M-!' > and according to its docstring it should work like `shell-command'. Yes, you're right about that - I misspoke. > Moreover, currently `M-!' is the only way to use MIME commands from > `mailcap-file-default-commands' when dired-x is loaded! From unknown Sun Jun 22 15:25:57 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2414: 23.0.90; use dired-guess-default too for minibuffer-default-add-shell-commands Reply-To: Juri Linkov , 2414@debbugs.gnu.org Resent-From: Juri Linkov Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 22 Feb 2009 23:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2414 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2414-submit@emacsbugs.donarmstrong.com id=B2414.12353459955247 (code B ref 2414); Sun, 22 Feb 2009 23:45:02 +0000 Received: (at 2414) by emacsbugs.donarmstrong.com; 22 Feb 2009 23:39:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MNdpp1005241 for <2414@emacsbugs.donarmstrong.com>; Sun, 22 Feb 2009 15:39:52 -0800 Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay02.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1LbNvK-00099g-K3; Mon, 23 Feb 2009 01:39:50 +0200 From: Juri Linkov To: "Drew Adams" Cc: 2414@debbugs.gnu.org Organization: JURTA References: <000601c99396$05d396a0$0200a8c0@us.oracle.com> <87r61qf8ph.fsf@jurta.org> <001b01c99541$f91510d0$0200a8c0@us.oracle.com> Date: Mon, 23 Feb 2009 01:37:45 +0200 In-Reply-To: <001b01c99541$f91510d0$0200a8c0@us.oracle.com> (Drew Adams's message of "Sun, 22 Feb 2009 15:04:53 -0800") Message-ID: <8763j283ay.fsf@jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanner-Signature: 068dd79c68aafbc760c35e97c5d420ed X-DrWeb-checked: yes > Come to think of it, there might be a reason for Dired to keep its own > set of such rules, in *addition* to creating a global set. That might > be handy for use by code and hooks etc. Dunno. > > But the main thing is to move these two alists out of Dired-X and make > their associations available generally, in the same way as the MIME > associations are available generally. I mostly agree but such a general task is for after the release. However, now I fixed an omission in dired-x.el to use exactly the same functions as were implemented for dired-aux.el (using read-shell-command instead of read-from-minibuffer and correctly setting minibuffer-default-add-dired-shell-commands in dired-read-shell-command). This causes MIME commands to be automatically added after guess-shell commands. So currently Dired-x users can be more happy because they have both command sets. -- Juri Linkov http://www.jurta.org/emacs/ From unknown Sun Jun 22 15:25:57 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2414: 23.0.90; use dired-guess-default too for minibuffer-default-add-shell-commands Reply-To: "Drew Adams" , 2414@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 23 Feb 2009 00:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2414 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2414-submit@emacsbugs.donarmstrong.com id=B2414.123534873717829 (code B ref 2414); Mon, 23 Feb 2009 00:35:03 +0000 Received: (at 2414) by emacsbugs.donarmstrong.com; 23 Feb 2009 00:25:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from rgminet11.oracle.com (rcsinet11.oracle.com [148.87.113.123]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1N0PYu9017823 for <2414@emacsbugs.donarmstrong.com>; Sun, 22 Feb 2009 16:25:35 -0800 Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1N0RtBY018989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 23 Feb 2009 00:27:57 GMT Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1N0PXMo011396; Mon, 23 Feb 2009 00:25:34 GMT Received: from dradamslap1 (/24.5.128.33) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 23 Feb 2009 00:25:23 +0000 From: "Drew Adams" To: "'Juri Linkov'" Cc: <2414@debbugs.gnu.org> References: <000601c99396$05d396a0$0200a8c0@us.oracle.com><87r61qf8ph.fsf@jurta.org><001b01c99541$f91510d0$0200a8c0@us.oracle.com> <8763j283ay.fsf@jurta.org> Date: Sun, 22 Feb 2009 16:25:47 -0800 Message-ID: <002501c9954d$46a2e1f0$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8763j283ay.fsf@jurta.org> Thread-Index: AcmVRuUPq4hpuKT1TGC4PTC7QTUlFwAA57bQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.49A1ECF5.0105:SCFSTAT928724,ss=1,fgs=0 > > Come to think of it, there might be a reason for Dired to > > keep its own set of such rules, in *addition* to creating > > a global set. That might be handy for use by code and hooks > > etc. Dunno. > > > > But the main thing is to move these two alists out of > > Dired-X and make their associations available generally, > > in the same way as the MIME associations are available > > generally. > > I mostly agree but such a general task is for after the release. Sure. > However, now I fixed an omission in dired-x.el to use exactly > the same functions as were implemented for dired-aux.el > (using read-shell-command instead of read-from-minibuffer and > correctly setting minibuffer-default-add-dired-shell-commands > in dired-read-shell-command). This causes MIME commands to be > automatically added after guess-shell commands. So currently > Dired-x users can be more happy because they have both command sets. Looks good. From unknown Sun Jun 22 15:25:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2414: 23.0.90; use dired-guess-default too for minibuffer-default-add-shell-commands Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2414 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Drew Adams" Cc: 2414@debbugs.gnu.org Received: via spool by 2414-submit@debbugs.gnu.org id=B2414.16386532512336 (code B ref 2414); Sat, 04 Dec 2021 21:28:02 +0000 Received: (at 2414) by debbugs.gnu.org; 4 Dec 2021 21:27:31 +0000 Received: from localhost ([127.0.0.1]:55353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcZ8-0000bc-TM for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:27:31 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcZ7-0000bH-92 for 2414@debbugs.gnu.org; Sat, 04 Dec 2021 16:27:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ThqoDJJ7u/zxwfZXzw2JC2jkEsSoJxFCsqDr1DQsvB8=; b=YmV1xGisSut6VEekx/U4OP6NhD yUy/tLecfi5235cWCMgq+IB++JCiCg+ixINlw+srffjP4CqFLoUOcg4BKGnR0Wa/IpgqxORzevLQq o/u2rm8Lq9rWof0rKSZlkuOvHsbPyMhiUKAADeloKUuQwL+IzUhOHUX5YW5XM/ZLKfZQ=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtcYx-0000e5-7H; Sat, 04 Dec 2021 22:27:22 +0100 From: Lars Ingebrigtsen References: <000601c99396$05d396a0$0200a8c0@us.oracle.com> X-Now-Playing: Joni Mitchell's _The Hissing Of Summer Lawns_: "Edith And The Kingpin" Date: Sat, 04 Dec 2021 22:27:18 +0100 In-Reply-To: <000601c99396$05d396a0$0200a8c0@us.oracle.com> (Drew Adams's message of "Fri, 20 Feb 2009 12:01:29 -0800") Message-ID: <877dck12o9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Drew Adams" writes: > `dired-guess-default' is defined in dired-x.el, but it has nothing to > do with Dired, AFAICT, so there is no reason that it should not be > available (and used) generally. > > And variables `dired- [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Drew Adams" writes: > `dired-guess-default' is defined in dired-x.el, but it has nothing to > do with Dired, AFAICT, so there is no reason that it should not be > available (and used) generally. > > And variables `dired-guess-shell-alist-user' and > `dired-guess-shell-alist-default' should also be factored out of > dired-x.el. They too are not Dired-related, AFAICT. Well... they are dired-specific, because they're only used in dired. (And using them elsewhere would be pretty surprising.) Emacs does have a problem in this area, though -- I'm guessing there's a dozen different packages that define similar functionality (i.e., "what's in mailcap but with some extras"), and consolidating these would be nice. But the problem is that there's different use cases -- the things a person wants to do in Dired isn't necessarily what they'd want to do in Gnus when receiving an attachment). And so we're where we are. So I don't want to make the minibuffer function depend on Dired, and I don't want to make these things non-Dired-applicable (because that'd annoy people who have customised their Dired experience), so there's nothing actionable left here, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 16:27:34 2021 Received: (at control) by debbugs.gnu.org; 4 Dec 2021 21:27:34 +0000 Received: from localhost ([127.0.0.1]:55356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcZC-0000br-5H for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:27:34 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcZB-0000bR-Fc for control@debbugs.gnu.org; Sat, 04 Dec 2021 16:27:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FheNk05GC1WZWDvmEe4jCKTO1ApsfPz4kfTVj8JOyr4=; b=k666ja184TP4wuCK6rspVdO4y3 vEnbBunh47hbBLk8H47lZL8VIJfTHX6ABn044y48jq+yZLstGREJY2RW1KtzcZgCcP8FDS5FlIp3T 3S4PwfBJzrC3/ITwRQYzoPA9Ydd8vznMfYWPkBS1DFJrXAoQ1uZbYmluBcwbf7D+5fHw=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtcZ3-0000eG-Lf for control@debbugs.gnu.org; Sat, 04 Dec 2021 22:27:28 +0100 Date: Sat, 04 Dec 2021 22:27:25 +0100 Message-Id: <875ys412o2.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #2414 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 2414 wontfix close 2414 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 2414 wontfix close 2414 quit From unknown Sun Jun 22 15:25:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#2414: 23.0.90; use dired-guess-default too for minibuffer-default-add-shell-commands Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Dec 2021 10:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2414 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix To: Lars Ingebrigtsen Cc: Drew Adams , 2414@debbugs.gnu.org Received: via spool by 2414-submit@debbugs.gnu.org id=B2414.163869868418999 (code B ref 2414); Sun, 05 Dec 2021 10:05:03 +0000 Received: (at 2414) by debbugs.gnu.org; 5 Dec 2021 10:04:44 +0000 Received: from localhost ([127.0.0.1]:56412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtoNv-0004wE-Tt for submit@debbugs.gnu.org; Sun, 05 Dec 2021 05:04:44 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:57225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtoNp-0004v1-Ed for 2414@debbugs.gnu.org; Sun, 05 Dec 2021 05:04:37 -0500 Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 390B1C0007; Sun, 5 Dec 2021 10:04:29 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <000601c99396$05d396a0$0200a8c0@us.oracle.com> <877dck12o9.fsf@gnus.org> Date: Sun, 05 Dec 2021 11:25:05 +0200 In-Reply-To: <877dck12o9.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 04 Dec 2021 22:27:18 +0100") Message-ID: <864k7ne74e.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Emacs does have a problem in this area, though -- I'm guessing there's a > dozen different packages that define similar functionality (i.e., > "what's in mailcap but with some extras"), and consolidating these would > be nice. But the problem is that there's different use cases -- the > things a person wants to do in Dired isn't necessarily what they'd want > to do in Gnus when receiving an attachment). Such consolidation was discussed recently in https://debbugs.gnu.org/18132#92