From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el) Date: Fri, 24 May 2024 20:56:05 +0300 Organization: LINKOV.NET Message-ID: <86sey7qekq.fsf@mail.linkov.net> References: <86v89lt6mk.fsf@mail.linkov.net> <83leag7loj.fsf@gnu.org> <86o7f8ijnd.fsf@mail.linkov.net> <86y1eb8bi8.fsf@mail.linkov.net> <861qbz9r54.fsf@mail.linkov.net> <86fs0ef372.fsf@mail.linkov.net> <83y1e529a2.fsf@gnu.org> <86sf4db0wf.fsf@mail.linkov.net> <835y1915hl.fsf@gnu.org> <86r0jvbd26.fsf@mail.linkov.net> <86v836z8h6.fsf@mail.linkov.net> <86jzjm6mrb.fsf@gnu.org> <86h6epm9qj.fsf@mail.linkov.net> <867cfl576h.fsf@gnu.org> <86msogjuzv.fsf@mail.linkov.net> <8634q84cpa.fsf@gnu.org> <86fru7vivr.fsf@mail.linkov.net> <86ttin3btn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20553"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 18132@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 24 20:00:12 2024 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 1sAZD9-000517-Rc for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 May 2024 20:00:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAZCw-000792-4x; Fri, 24 May 2024 13:59:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAZCu-00078Z-Ct for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 13:59:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAZCu-0008Hi-4S for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 13:59:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAZD1-0002Dn-05 for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 14:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2024 18:00:02 +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.17165735458490 (code B ref 18132); Fri, 24 May 2024 18:00:02 +0000 Original-Received: (at 18132) by debbugs.gnu.org; 24 May 2024 17:59:05 +0000 Original-Received: from localhost ([127.0.0.1]:38362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAZC4-0002Cr-UX for submit@debbugs.gnu.org; Fri, 24 May 2024 13:59:05 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:60895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAZBz-0002C8-Ec; Fri, 24 May 2024 13:58:59 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id CE1FF1BF203; Fri, 24 May 2024 17:58:45 +0000 (UTC) In-Reply-To: <86ttin3btn.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 24 May 2024 10:31:48 +0300") X-GND-Sasl: juri@linkov.net 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285787 Archived-At: close 18132 30.0.50 thanks >> >> >> > What about optionally letting the system facilities present the menu >> >> >> > of appropriate commands and let the user select from that menu? >> >> >> >> >> >> This is already implemented by the context menu in Dired. >> >> >> I've checked that the contents of this context menu is exactly >> >> >> the same as on the default OS file manager since both use XDG. >> >> > >> >> > Can you tell me how to try that starting from "emacs -Q"? >> >> >> >> You can move to e.g. a PDF file in a Dired buffer and click the right button. >> > >> > Thanks, I added a w32-shell-execute item to that menu. >> >> But w32-shell-execute is supposed to be in 'dired-do-open' >> that corresponds to "Open" in the context menu. > > "Open" corresponds to w32-shell-execute call with 1st argument "open", > not "openas" (which is what I added). And AFAICT, dired-do-open does > exactly that, so we are okay, I think. > >> BTW, it would be nice to have a keybinding for 'dired-do-open'. >> For example, the big "E" (mnemonics "External") is free >> in 'dired-mode-map'. > > Fine by me. So now pushed 'dired-guess-shell-alist-optional', the 'E' keybinding and the item in the Dired menu, and closed.