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: Thu, 02 Jan 2025 22:02:05 +0200 Message-ID: <15458.4464196645$1735848202@news.gmane.org> References: <86seriksak.fsf@gnu.org> <87ed27cthy.fsf@localhost> <86cyhrpfbf.fsf@gnu.org> <864j2ot4w1.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="23043"; 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 Thu Jan 02 21:03:13 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 1tTRPV-0005mQ-1D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 21:03:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTRPO-000100-SF; Thu, 02 Jan 2025 15:03:07 -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 1tTRPK-0000ze-On for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:03:03 -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 1tTRPK-0006u6-68 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:03:02 -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=GDWVym2UfBS61qh4lYhGkqBc2CDB//k138NmKC4pAvo=; b=UMwMng6WwK9iGsy8Au94CuTTR2Y+g9c0lBtm1daG5MuOaUkcnchJ5jVRp6zm7YZ+/1svuQvNYCCgDoSUswRTiXj+pAkpdsjun87LANGbsaQEzbbZ9BWigTlYbQAS+QUa4byJ6zshBLGiFAe0PaH9hmas4s26NcOT/p/42DrrLAFkCjSiqSUNGDGeLe0/3sMUks1fdXLl4kizpnB8SUqjts1zLahTEXPxVPoaxuG+PAYYm97H90YoAeTLL3JeMVO/lwMfZ/tRJl26TurC5DSN/aoTTLZC+ZjJwx+BA6JR0BqYStXqFJcemSYZKuc3h9V/+5CuGS3oCrTZPQIN8nfqXg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTRPK-00055G-0S for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:03:02 -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: Thu, 02 Jan 2025 20:03: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.173584813619410 (code B ref 74467); Thu, 02 Jan 2025 20:03:01 +0000 Original-Received: (at 74467) by debbugs.gnu.org; 2 Jan 2025 20:02:16 +0000 Original-Received: from localhost ([127.0.0.1]:46827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTROa-00052y-5w for submit@debbugs.gnu.org; Thu, 02 Jan 2025 15:02:16 -0500 Original-Received: from thaodan.de ([185.216.177.71]:35880) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTROX-00052W-EK for 74467@debbugs.gnu.org; Thu, 02 Jan 2025 15:02:14 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id DC90ED00030; Thu, 2 Jan 2025 22:02:06 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1735848127; bh=PblHZKF6OXFVKcVs41T+YdQefiyQLdLbG0IGtTagK3g=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=JuTJlRWNoQxd80WPAKJd/1rwdqxohfkY6M+rewwvO8Vd7KXtUpNGLYzmRfNdovEMI A7rH6XaCoiLHgwfKLk+HO3+KsdR4hfkEiwPfDP9AVxhklV+V13u+HHJKQNKg5kNiHN coFZEL1NmzPQ4yylgUNvhJVKtBa3LKbZcIrWuaWSwetSgYdayreJAKb8SLMHLeRlSD 4pOLgl8uNT0vQo1G2d4BHKkho68EkvKCWB5w4e0Bgi0pBlGbzkxG3E1BmZLhP60w3K 09h7Y45oFOsjoqYCKA54DBamg9kvrZuYdTJ9ptoFQ4GN0wbE8JfrSLZ2kXabJ+NzmP /jP3ltglKuMM0KKsrK0K5qqXOT/KSTAtKOqKYMDMXG5j71m5hZvtGJKNA5CWYsf9Mt Txd1pdSQI5wuji0Ck3iEQZR9L2U0KEv9fBqR8yr+xXDFn5mKk+GrF7terfMwpuTvcK J22/vIml2UDokOxD2CnB27bPJ8CchyXy+0fxGHIQIKdq/811i2aNZwKUr/AgRNE9ZJ B3UCAJ4R+TYSzOaS+H8T6Gt0vOVZa+Wn1I8Zpd8EF1QODvPik2B5wv/QyL243uDPC4 jzUObPdveiMXIIu+gVAHctyGwA8UzAqEKakDwKiffDP2zkvST7OdA/yTRNV+QZT9i2 9hI7Ph3f2PVIJOuLLii3qtlQ= In-Reply-To: <864j2ot4w1.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 28 Dec 2024 13:37:34 +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:298229 Archived-At: Eli Zaretskii writes: >> 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 al= ready >> > >> 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 file. >>=20 >> Thanks. Let's see if someone objects. >>=20 >> > Note that an alternative could be handling file:// URIs by Emacs. Your= 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? Would it work to add a file-handler for uris to call? Further change so that if the file argument does start with '^.*://' to not append '/:'. With these changes Emacs can handle any url forwarded to Emacs. We might also want signal an error if the uri send to Emacs was not handled by browse-url.