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#65469: [PATCH] * etc/emacsclient.desktop: Make Emacs default application for org-protocol Date: Wed, 20 Sep 2023 17:01:27 +0300 Message-ID: <87o7hxgczs.fsf@thaodan.de> References: <87v8d66r7l.fsf@localhost> <87led53q0c.fsf@thaodan.de> <87fs3bkho4.fsf@localhost> <835y47g2b2.fsf@gnu.org> <83r0mveel5.fsf@gnu.org> <87cyyfnkvf.fsf@thaodan.de> <837comevw5.fsf@gnu.org> <877comr3te.fsf@thaodan.de> <8334zae81i.fsf@gnu.org> <87o7hyo1bs.fsf@localhost> <83v8c6cpwe.fsf@gnu.org> <87a5tinvzp.fsf@localhost> <83jzsmclvx.fsf@gnu.org> <871qeunu1u.fsf@localhost> <83a5ticjla.fsf@gnu.org> <87wmwl8a15.fsf@localhost> <83msxharqw.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="11190"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65469@debbugs.gnu.org, Ihor Radchenko , stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 20 16:02:25 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 1qixmZ-0002j6-VH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Sep 2023 16:02:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qixmD-00030x-PL; Wed, 20 Sep 2023 10:02:01 -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 1qixm8-0002zY-6e for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 10:01:59 -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 1qixm5-0002c6-7f for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 10:01:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qixmE-0005ZG-KO for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 10:02:02 -0400 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: Wed, 20 Sep 2023 14:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65469-submit@debbugs.gnu.org id=B65469.169521850621374 (code B ref 65469); Wed, 20 Sep 2023 14:02:02 +0000 Original-Received: (at 65469) by debbugs.gnu.org; 20 Sep 2023 14:01:46 +0000 Original-Received: from localhost ([127.0.0.1]:60053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qixly-0005Ye-2U for submit@debbugs.gnu.org; Wed, 20 Sep 2023 10:01:46 -0400 Original-Received: from thaodan.de ([2a03:4000:4f:f15::1]:58270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qixlt-0005YT-98 for 65469@debbugs.gnu.org; Wed, 20 Sep 2023 10:01:44 -0400 Original-Received: from odin (dsl-trebng12-50dc77-87.dhcp.inet.fi [80.220.119.87]) by thaodan.de (Postfix) with ESMTPSA id 832B3D08DEB; Wed, 20 Sep 2023 17:01:28 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1695218488; bh=8tm7zXImRGht6wMdD6GYycEj/ojLQqE6GlNqrGyt0Ew=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=V8Y2X89hlv2zy1BUYZvNDDH0oKWwf3KwJKlV/7yJX66FOoQ9/7jq2Ju5w8kkeVTAS 5jgkJGkAL5lImRXMdRyHcnl9xkC8H6wG5bPrNpNB8Pg9q9QcYLrOImXo8NzyBk5G5r pH3ck1fs9e6tHWW/ng3yckqGJXHw0JFk1dlJjbXzNi8IlyYY6Bpdwg4FD4iiaE02Ec gfC9NfYi/0QiaVoAKINBzAPNA/lCoKLFJQDSQGBExAiX4O72SX4UnjLD8I8+RLkSzu HaHm0x+wb5QxIm/az98a/yjx5NExLrNzyhmTAk1+y/7o6/cn4C4iDBLL3eZWFHXd6z kpo/4pYXmo8/hJARnsdJCCZLFDYHpljVLp9kOlUrVSKvzA/PLmtNVxOGydQ3MoEVTO K/mY7LoDs1bYUHzGWs36/XbhzkcZHGhFxEfXPHg5qlVyYDFpNb2926N8bCZ3y124+f 5GOSiqqdZykjMZg7+uBasZSGGfnZXwJGWWYKB0myazgLOfsU+1B+KJ0TUYfisDpBPC NAo+Y80WXqnbjeVg8Flhk6PNAEGnvQe+SDvvYdfrVPuVRHlvat0fr+zU6v2AiUHUc2 oy2TqbRTXKTfEXOLmpPRS5i2SvFuSI1vLMGE/lXBT8YJ80fOfB43zBa+1veNscR1Wy Q3uFtdGgkKmoQdIdDWG229pI= In-Reply-To: <83msxharqw.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 20 Sep 2023 16:39:19 +0300") 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:270925 Archived-At: Eli Zaretskii writes: >> From: Ihor Radchenko >> Cc: bjorn.bidar@thaodan.de, 65469@debbugs.gnu.org, >> stefankangas@gmail.com >> Date: Wed, 20 Sep 2023 09:32:38 +0000 >>=20 >> Eli Zaretskii writes: >>=20 >> >> I guess it depends on the level of precision you want to have in >> >> the >> >> NEWS entry. For me, the NEWS entry sounds good enough, but I >> >> wanted to >> >> make things more clear after Bj=C3=B6rn's comment. >> > >> > So what is imprecise in the wording I suggested a couple of >> > messages >> > ago? >>=20 >> Previously, users had to manually configure their desktop environment >> to open 'org-protocol' links in Emacs. On any XDG-compliant system, >> including GNU/Linux and some others, these links should now open in >> Emacs automatically >>=20 >> 1. GNU/Linux by itself is not XDG-compliant. Only some desktop >> environments are. > > How about this minor variation: > > Previously, users had to manually configure their desktop > environment > to open 'org-protocol' links in Emacs. On any XDG-compliant > desktop > environment, including KDE and GNOME on GNU/Linux, and some > others, > these links should now open in Emacs automatically > >> 2. System does not have to be fully XDG-compliant. It is enough that >> some apps (like Firefox) follow XDG spec and that xdg-utils is >> installed. > > Does the above change solve this problem as well? Or maybe try this > variant: > > ** On capable systems, Emacs is now the default application for 'org-pr= otocol'. > Org mode provides a way to quickly capture bookmarks, notes, and links > using 'emacsclient': > > emacsclient "org-protocol://store-link?url=3DURL&title=3DTITLE" > > Previously, users had to manually configure their desktop environment > to open 'org-protocol' links in Emacs. On any XDG-compliant desktop > environment, including KDE and GNOME on GNU/Linux, and some others, > these links should now open in Emacs automatically if the application > that opens the link follows the XDG spec and xdg-utils are installed. > This is because the "emacsclient.desktop" file now arranges for Emacs > to be the default application for the 'org-protocol' URI scheme. See > the Org mode manual, Info node "(org) Protocols" for more details. Why the focus on Linux? For example, you can install KDE on BSD and have the same benefit of the change as on Linux.