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: Wed, 29 Nov 2023 15:07:08 +0200 Message-ID: <83leag7loj.fsf@gnu.org> References: <83lf2k5gna.fsf@gnu.org> <83ilxn3qpo.fsf@gnu.org> <878ryizwyi.fsf@mail.linkov.net> <86y1eoxtrr.fsf@mail.linkov.net> <83leaofebt.fsf@gnu.org> <86edgfk37h.fsf@mail.linkov.net> <83zfz3dyae.fsf@gnu.org> <86h6l9zorh.fsf@mail.linkov.net> <838r6kby1m.fsf@gnu.org> <86msuz5cft.fsf@mail.linkov.net> <86ttp6j8ax.fsf@mail.linkov.net> <8334wp93ww.fsf@gnu.org> <86v89lt6mk.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19654"; 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 Wed Nov 29 14:08:10 2023 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 1r8KIU-0004th-Ix for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Nov 2023 14:08:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8KIG-0002Ej-Dt; Wed, 29 Nov 2023 08:07:56 -0500 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 1r8KIE-0002EO-Tv for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 08:07:54 -0500 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 1r8KIE-0001Rk-Hx for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 08:07:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r8KIM-0003Va-0J for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 08:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Nov 2023 13:08: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.170126325413450 (code B ref 18132); Wed, 29 Nov 2023 13:08:01 +0000 Original-Received: (at 18132) by debbugs.gnu.org; 29 Nov 2023 13:07:34 +0000 Original-Received: from localhost ([127.0.0.1]:49095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8KHt-0003Us-Sh for submit@debbugs.gnu.org; Wed, 29 Nov 2023 08:07:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8KHr-0003UW-1e for 18132@debbugs.gnu.org; Wed, 29 Nov 2023 08:07:32 -0500 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 1r8KHe-0001Nu-35; Wed, 29 Nov 2023 08:07:18 -0500 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=Pl7J/Gd/QEOZZ+TtvD6xYI+2RazkfaEiIQvafBz06Sg=; b=RJdI/EKw4SLZ sJVgP7XD+KFUWBI+iC8PYbIWExFlwR38/tjJq7ApSRc4FQqi8eAaZGaVmmYHjaZ1p+DqpkJi+3cGp G0PjU/NZV6TvAiUi9bSasMh4M+DpzbbVGp1WYNcMjq376UCrW10DL/4IlPRYzAoACfseU1QxzXZy6 Qu6cEjgHyh8WqphPK9Wsl47qeAguUTkvjxWFIySqNEh3Ci4nDMwpvS6M4uBGYR2QRvH2Na0uijT+l 5QFC9Z27H0dQPSqla99p2wclvGaVcy2y10mpfYXhcOj0RnFoiQiJ9Yw5O2ACQ+I3riAdmPT6G+t7n nvRspNbLQPYXCiwjk3QPEg==; In-Reply-To: <86v89lt6mk.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 29 Nov 2023 09:09:07 +0200) 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:275220 Archived-At: > From: Juri Linkov > Cc: 18132@debbugs.gnu.org > Date: Wed, 29 Nov 2023 09:09:07 +0200 > > >> + ((eq system-type 'windows-nt) > >> + "open") > > > > If this is supposed to be a shell command that can be invoked via the > > likes of call-process and start-process, then this should be "start", > > not "open" (the latter doesn't exist as an executable command on > > Windows). > > Ok, will replace with "start", since only strings are used for commands. > > Usually context menus on file managers include two items: > > "Open" that opens immediately > "Open With" with a list of commands > > So "start" will be used for "Open With" if someone prefers this. > Then a new command 'dired-do-open' bound to the "Open" menu item > will hard-code 'w32-shell-execute' call with the "open" command. SGTM, thanks.