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 20:20:40 +0200 Message-ID: <40589.1109652416$1736101297@news.gmane.org> References: <86seriksak.fsf@gnu.org> <87ed27cthy.fsf@localhost> <86cyhrpfbf.fsf@gnu.org> <864j2ot4w1.fsf@gnu.org> <86r05id8f5.fsf@gnu.org> <86o70lahmt.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="14002"; 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 Sun Jan 05 19:21:29 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 1tUVFh-0003Sn-3A for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 19:21:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUVFJ-00045n-D1; Sun, 05 Jan 2025 13:21:05 -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 1tUVFH-00045V-Ls for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 13:21: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 1tUVFH-0004j5-6Q for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 13:21: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=zwkgYPVDxZDyDRMM+V2XONFXyK/tH3urca9htOlR/rY=; b=F8rtl4ofP/Glwo1MBnHOUo3ptxmik1W7yTT9K1O0NGUt6hTTWNWxYFuD7wTR4kXqAeEJfLWXpbNkf96wsKj1rN8oFkLEzypNXsfxuNKWE4eth+XnUkQIk/ylm/E1EZj35sDw8l0NDQPIs6EmZg1U1zK0n2iS08iGVYhfF3TEZgJbFuHtbG2Ve8D47xh7o0I779y9H4Emu1qksatzKnlw94cbLvAFrBAmtvwtjTc7UBONBosvsA1u5NcLe8m6wxGG3BjNF+pm5u5Z0IDGQnTs+LogUlUHzTaYB7iEkzwHt8gqvOWjAb2KTYdV2W/hmm+oNzOn2cdjLOJVoXYwOjbouQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUVFH-0001KB-0v for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 13:21:03 -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: Sun, 05 Jan 2025 18:21:02 +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.17361012505053 (code B ref 74467); Sun, 05 Jan 2025 18:21:02 +0000 Original-Received: (at 74467) by debbugs.gnu.org; 5 Jan 2025 18:20:50 +0000 Original-Received: from localhost ([127.0.0.1]:35146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUVF4-0001JR-C1 for submit@debbugs.gnu.org; Sun, 05 Jan 2025 13:20:50 -0500 Original-Received: from thaodan.de ([2a03:4000:4f:f15::1]:59102) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUVF2-0001JB-3l for 74467@debbugs.gnu.org; Sun, 05 Jan 2025 13:20:49 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 5D8EAD00059; Sun, 5 Jan 2025 20:20:41 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1736101241; bh=O7ImOJd3+H+AHBpNKjWsNSVFhtY7WmJ4I4c8AOGk+eA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=yiyQsuBvpirrCUoGphbU10KESVshtCDweE8y/gpgZEEmvMFrHbiCub38fhRzhcob0 vzT0DgJ04t1uk/yIImllPXWLLxd5LuF+Ou+m75Czc+1y6EWymSKd/nIKemYG/7i6oX q7USmWOpQ3B+NgHJNluePQ+MfPJ5ZQDj9a4uhE7qSxY36BG7SssRaYItOblmzogFzK xhasv9KTUGS5QNQwsll7DRUPat1crcaTlqFB23sP7HibNUyi+R5z9s+XCr6PPLz0ES WntCs6rCC3btMFuMTtvHsKrPVPTpXoBpeiLxp9X7GLzuEUxWMYN1Lndn8x6EDNWWYR CFjkyvlJ3yqavOXmXoEThF/oqwxS981IDV5LnQu+VbnRBhha3DbYL+Bx4uqcsTO3rD dD0bQM8gKQby8sHRvSRzSS+tQMiZMKJyyUMWo7lJvjjVURWsKalFjwEQKyUU4+t8/Y tHM+oGKo3hRGwYh/dm3T8HNhVg5BeH4riMT2bI3L9XlTqZye3o3Fsgqg2dJkt+AcsN 7sezPYa7wjZKRqKmrrWGsq/j2XbCqtTrZmA35IdABTpzmByinUwcN1fmBqsgN72+So npOCkeOAO6ORqTfgXFQd5dINhULgZluSdy3lhDCq22AeqgNnnNF6XbvYFWayMJsWdd cYINFZCfDiPIyWb0YMmZ7WIw= In-Reply-To: <86o70lahmt.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Jan 2025 08:39:54 +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:298584 Archived-At: Eli Zaretskii writes: >> From: Bj=C3=B6rn Bidar >> Cc: yantar92@posteo.net, 74467@debbugs.gnu.org, binarin@binarin.info >> Date: Sun, 05 Jan 2025 00:07:37 +0200 >>=20 >> Eli Zaretskii writes: >>=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? >> >>=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? >>=20 >> No not for file argument when Emacs stars or in emacsclient. We append >> /: and then call find_file_handler. > > I didn't mean this works OOTB. Some changes are surely needed. Ihor > seemed to say that if this can be supported, there could be an > alternative patch for fixing this issue, and I'd like to see that > alternative patch to decide which one is simpler and/or more elegant. I know you meant that. My point was to describe what is the problem. I wanted to understand what's going on as I don't know so much about the code which is below the Lisp code and how it interacts with the C-code. Do I understand correctly that when Emacs starts it tries to find the file-handler in C but the call to the handler is done in Lisp code? It is very interesting to learn how Emacs works on this level, especially when going down into (X)Emacs past. Anyways that is another topic.