From: "Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 74467@debbugs.gnu.org, yantar92@posteo.net, binarin@binarin.info
Subject: bug#74467: 31.0.50; org-protocol emacsclient.desktop change is not fully functional
Date: Sun, 05 Jan 2025 00:07:37 +0200 [thread overview]
Message-ID: <4050.6290899188$1736028508@news.gmane.org> (raw)
In-Reply-To: <86r05id8f5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 15:18:22 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Björn Bidar <bjorn.bidar@thaodan.de>
>> Cc: yantar92@posteo.net, 74467@debbugs.gnu.org, binarin@binarin.info
>> Date: Thu, 02 Jan 2025 22:02:05 +0200
>>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>> >> Cc: 74467@debbugs.gnu.org, binarin@binarin.info
>> >> Date: Mon, 16 Dec 2024 22:01:56 +0200
>> >> From: Eli Zaretskii <eliz@gnu.org>
>> >>
>> >> > From: Ihor Radchenko <yantar92@posteo.net>
>> >> > Cc: Alexey Lebedeff <binarin@binarin.info>, 74467@debbugs.gnu.org
>> >> > Date: Mon, 16 Dec 2024 19:34:01 +0000
>> >> >
>> >> > Eli Zaretskii <eliz@gnu.org> writes:
>> >> >
>> >> > >> One solution would be introducing separate .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?
>> >> >
>> >> > I am attaching an *untested* patch that implements a new .desktop file.
>> >>
>> >> Thanks. Let's see if someone objects.
>> >>
>> >> > Note that an alternative could be handling file:// URIs by Emacs. Your call.
>> >>
>> >> 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?
>
> 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-release")
* abbreviate-file-name("/home/bidar/dev/emacs/emacs/src/file:/etc/os-release")
* find-file-noselect("file:///etc/os-release" nil nil nil)
* #<subr find-file>("file:///etc/os-release")
* apply(#<subr find-file> "file:///etc/os-release")
* find-file("file:///etc/os-release")
eval((find-file "file:///etc/os-release"))
next prev parent reply other threads:[~2025-01-04 22:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-21 18:53 bug#74467: 31.0.50; org-protocol emacsclient.desktop change is not fully functional Alexey Lebedeff via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-23 13:12 ` Eli Zaretskii
2024-11-23 19:58 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-07 12:17 ` Eli Zaretskii
2024-12-16 19:34 ` Ihor Radchenko
2024-12-16 20:01 ` Eli Zaretskii
2024-12-16 21:07 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <87o71bgwvl.fsf@>
2024-12-17 12:15 ` Eli Zaretskii
2024-12-17 13:00 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-28 11:37 ` Eli Zaretskii
2025-01-02 20:02 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <87zfk9q91e.fsf@>
2025-01-04 13:18 ` Eli Zaretskii
2025-01-04 22:07 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
[not found] ` <877c7aw7va.fsf@>
2025-01-05 6:39 ` Eli Zaretskii
2025-01-05 8:55 ` Ihor Radchenko
2025-01-05 18:13 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <87wmf9t9hm.fsf@>
2025-01-05 18:36 ` Ihor Radchenko
2025-01-05 21:31 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <87cyh1t0ag.fsf@>
2025-01-06 18:44 ` Ihor Radchenko
2025-01-07 8:05 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-11 11:09 ` Eli Zaretskii
2025-01-05 18:20 ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <87sepxt953.fsf@>
2025-01-05 19:11 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='4050.6290899188$1736028508@news.gmane.org' \
--to=bug-gnu-emacs@gnu.org \
--cc=74467@debbugs.gnu.org \
--cc=binarin@binarin.info \
--cc=bjorn.bidar@thaodan.de \
--cc=eliz@gnu.org \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).