From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#2414: 23.0.90; use dired-guess-default too for minibuffer-default-add-shell-commands Date: Sat, 04 Dec 2021 22:27:18 +0100 Message-ID: <877dck12o9.fsf@gnus.org> References: <000601c99396$05d396a0$0200a8c0@us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5899"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 2414@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 22:28:18 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 1mtcZt-0001NJ-Fz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 22:28:17 +0100 Original-Received: from localhost ([::1]:38508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtcZs-0001Ns-7H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 16:28:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtcZf-0001M5-DQ for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtcZe-0007Di-Kn for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtcZe-0000cd-Bd for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:28:02 -0500 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 2414-submit@debbugs.gnu.org id=B2414.16386532512336 (code B ref 2414); Sat, 04 Dec 2021 21:28:02 +0000 Original-Received: (at 2414) by debbugs.gnu.org; 4 Dec 2021 21:27:31 +0000 Original-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 Original-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=; Original-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 X-Now-Playing: Joni Mitchell's _The Hissing Of Summer Lawns_: "Edith And The Kingpin" In-Reply-To: <000601c99396$05d396a0$0200a8c0@us.oracle.com> (Drew Adams's message of "Fri, 20 Feb 2009 12:01:29 -0800") 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:221517 Archived-At: "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