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: Fri, 24 May 2024 10:31:48 +0300 Message-ID: <86ttin3btn.fsf@gnu.org> References: <86ttp6j8ax.fsf@mail.linkov.net> <8334wp93ww.fsf@gnu.org> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13719"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 18132@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 24 09:33:15 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 1sAPQR-0003He-7O for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 May 2024 09:33:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAPQJ-0000tl-Q4; Fri, 24 May 2024 03:33:07 -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 1sAPQ8-0000q4-4R for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 03:32: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 1sAPQ7-00013r-Rz for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 03:32:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAPQE-0004yO-CI for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 03:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2024 07:33: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.171653593819093 (code B ref 18132); Fri, 24 May 2024 07:33:02 +0000 Original-Received: (at 18132) by debbugs.gnu.org; 24 May 2024 07:32:18 +0000 Original-Received: from localhost ([127.0.0.1]:35509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAPPV-0004xt-J5 for submit@debbugs.gnu.org; Fri, 24 May 2024 03:32:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAPPQ-0004xn-SY for 18132@debbugs.gnu.org; Fri, 24 May 2024 03:32:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAPPE-0000ys-2z; Fri, 24 May 2024 03:32:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SILU1FoMf4cwwJLS1Jlyo3MSzWcskK1v7BlH2idCdqQ=; b=dzCZiqCnr6az UqqnKw6IlEb7beR09KVnm0ylxvclIaXfdtreSqDGUB2bdN5YajQZn6MJ/hzkbBzLDEmnRxfiiEGv/ hDrSMhxsmLfMlvjO3wRFn01tqWtPWCqxhaqvScf8FyR+17qDJQSDfWlCMdvjPkdBnxo7cOMT5WsD6 s8/0wHynv30qe+X8NgeZ/AKoZMREQw48+5Zw4DDWCGQI3OKxjKJxRry1iBY1eWqaEqW2aSbgEJOPK k+SgAekblxOk5J8aSTlI5qECg+8gzuRCLV7/5Q48HSwtqofoh2DXy4yuFKanWxVMFpDIAcQRjucLJ 4NzRLPOIQbc+2smCM+otRw==; In-Reply-To: <86fru7vivr.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 24 May 2024 09:44:52 +0300) 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:285748 Archived-At: > From: Juri Linkov > Cc: 18132@debbugs.gnu.org > Date: Fri, 24 May 2024 09:44:52 +0300 > > >> >> > 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.