From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74467: 31.0.50; org-protocol emacsclient.desktop change is not fully functional Date: Sun, 05 Jan 2025 00:07:37 +0200 Message-ID: <4050.6290899188$1736028508@news.gmane.org> References: <86seriksak.fsf@gnu.org> <87ed27cthy.fsf@localhost> <86cyhrpfbf.fsf@gnu.org> <864j2ot4w1.fsf@gnu.org> <86r05id8f5.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22815"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74467@debbugs.gnu.org, yantar92@posteo.net, binarin@binarin.info To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 23:08:20 2025 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 1tUCJf-0005pX-Uj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 23:08:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUCJV-0002Xo-H9; Sat, 04 Jan 2025 17:08:09 -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 1tUCJQ-0002WG-5V for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 17:08:04 -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 1tUCJP-00041E-TF for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 17:08:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=r5Qd7DD2HgvyfB89tMeLcjY7EONeNrTw24LgHfg6PPk=; b=JxiUzSJ3Z6I7cUZ9WXIBwPwZRXG1vGs44Mmah1vuPGEx4Q2QJdn1W0JMvC3gpHJGWeJdzfH0qaZRBTFZ82XsdvtuNHU3s/Z1mQeuyaUXRQtIwiPUST7cRlIIuAKSg5YhaOboA05mW1yaJt8K5E2zYS1RzJNXPG6xD4vx7S4gvyNrQjL9XOdKwe1eY1FVBuDSqe/pH92zcvJzAoL7wcBa1SvcFKwge/UiKFMZHiLxBew5hfnc59rG+1vsPaIK7CGebtofE7wRJlbevfhIehyHrMRwSURm6GyNICB6wBO1e3OuUq5qXuBkTcUArP3EqWdjDRmMyCiBaCINpj4i/0rzQw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUCJN-0007hR-PL for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 17:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 22:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74467 X-GNU-PR-Package: emacs Original-Received: via spool by 74467-submit@debbugs.gnu.org id=B74467.173602846929576 (code B ref 74467); Sat, 04 Jan 2025 22:08:01 +0000 Original-Received: (at 74467) by debbugs.gnu.org; 4 Jan 2025 22:07:49 +0000 Original-Received: from localhost ([127.0.0.1]:57775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUCJA-0007gy-TT for submit@debbugs.gnu.org; Sat, 04 Jan 2025 17:07:49 -0500 Original-Received: from thaodan.de ([2a03:4000:4f:f15::1]:54130) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUCJ7-0007gk-Dy for 74467@debbugs.gnu.org; Sat, 04 Jan 2025 17:07:47 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 50A62D0002E; Sun, 5 Jan 2025 00:07:38 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1736028458; bh=xytuB0KitB43Gq2hijD5ed21ue6Cd+CdoTtTfossU5Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=OG0Jz0AgI4K5F3aEh7Ax8d51alvojq+Ez/xJrHFXocs2VIDO7J0Xzx0qnxKozUWhu 9ZyNJCh1xywB4wO48znf6T7QPErcd1LKN6ffPFL4JS6B/Nh7x7W5n4Lv5P5ZY6GYrt XBCWVewvTo+vJJUY/+sdYu1i/PhLIpxo9Z2See/ffZIDeUsNo7ilrH6e3MlvHncgLD X2ipWR9TLAUTGtRaL93TrydsgJzm+Ruw156UDkR9IwMOqveSkbRhkDPNTFJT5K0cwo FOOk69wUArdZRR6LvYmADFgJS/NYjKE+GdXQaehREGDAVE1zARLLmydUzMipnbjJf0 nTZQ+OC3NRNTgD0xZxthcu7RmOLZ1eGa9cp6+gDtYQkyZs80kgnmStDoXSZI/7i/bE 9v+Ay79w22YL26QFggFnJ91uzq3D8zheYfAXATe/2KanlJPNUqWWjQZw1hHOZPtx7M Qp6pSCapi9niq97nik+J2LuJ6PlJQQPsU4AIBeJYHYcT1OFBS8z1h83IUjsdBBBX9J 1a6DKtpqY4LKAbklc5nBU1OMJOF7Gy/QvVYkMrsQW9So3dxmdS1ecTZARXnKl2lPtT eTPmeDEdpRvxE3bFR8YuZcvHuWOwQLAHUH3wgfNMjimktl0MJj4nYozLE70lWKEFQl NGOdWJp9xbHIpWa42hml0vlM= In-Reply-To: <86r05id8f5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 15:18:22 +0200") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH 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:298482 Archived-At: Eli Zaretskii writes: >> From: Bj=C3=B6rn Bidar >> Cc: yantar92@posteo.net, 74467@debbugs.gnu.org, binarin@binarin.info >> Date: Thu, 02 Jan 2025 22:02:05 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> Cc: 74467@debbugs.gnu.org, binarin@binarin.info >> >> Date: Mon, 16 Dec 2024 22:01:56 +0200 >> >> From: Eli Zaretskii >> >>=20 >> >> > From: Ihor Radchenko >> >> > Cc: Alexey Lebedeff , 74467@debbugs.gnu.org >> >> > Date: Mon, 16 Dec 2024 19:34:01 +0000 >> >> >=20 >> >> > Eli Zaretskii writes: >> >> >=20 >> >> > >> One solution would be introducing separate=C2=A0 .desktop file >> >> > >> (i.e. 'etc/emacsclient-org-protocol.desktop'), analoguous to the= already >> >> > >> existing 'etc/emacsclient-mail.desktop' (which uses '%u'). >> >> > > >> >> > > Ihor, could you please look into this? >> >> >=20 >> >> > I am attaching an *untested* patch that implements a new .desktop f= ile. >> >>=20 >> >> Thanks. Let's see if someone objects. >> >>=20 >> >> > Note that an alternative could be handling file:// URIs by Emacs. Y= our call. >> >>=20 >> >> I thought we already did? >> > >> > Ping! Since we already know how to handle file:// UTIs, what would >> > the solution using that look like? >>=20 >> Would it work to add a file-handler for uris to call? > > Isn't that what we already do when we visit files given by file:// > URI? No not for file argument when Emacs stars or in emacsclient. We append /: and then call find_file_handler. Is the .*:/ part ignore when calling find-file-file interactively? When I call find-file in eshell with someting like "file:///etc/os-release" I get this: Debugger entered--entering a function: * directory-abbrev-apply("/home/bidar/dev/emacs/emacs/src/file:/etc/os-rele= ase") * abbreviate-file-name("/home/bidar/dev/emacs/emacs/src/file:/etc/os-releas= e") * find-file-noselect("file:///etc/os-release" nil nil nil) * #("file:///etc/os-release") * apply(# "file:///etc/os-release") * find-file("file:///etc/os-release") eval((find-file "file:///etc/os-release")) =20