From: Andreas Schwab <schwab@linux-m68k.org>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: "Eli Zaretskii" <eliz@gnu.org>,
72203@debbugs.gnu.org, "João Távora" <joaotavora@gmail.com>,
"Nick OBrien" <nick4f42@proton.me>
Subject: bug#72203: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded
Date: Sun, 21 Jul 2024 08:57:24 +0200 [thread overview]
Message-ID: <87v80zz0yz.fsf@igel.home> (raw)
In-Reply-To: <35c8fd18-cf10-43b5-aac4-49296015d251@gutov.dev> (Dmitry Gutov's message of "Sun, 21 Jul 2024 03:58:25 +0300")
On Jul 21 2024, Dmitry Gutov wrote:
> On 20/07/2024 03:56, Nick OBrien via Bug reports for GNU Emacs, the Swiss
> army knife of text editors wrote:
>> nil(...)
>> url-directory-files("https://www.gnu.org/licenses/" nil ... t nil)
>> apply(url-directory-files ("https://www.gnu.org/licenses/" nil ... t nil))
>> url-file-handler(directory-files"https://www.gnu.org/licenses/" nil ... t nil)
>> directory-files("https://www.gnu.org/licenses/" nil ... t)
>> #f(compiled-function (d) #<bytecode 0x183c21e239c1e2a3>)("https://www.gnu.org/licenses/")
>> locate-dominating-file("https://www.gnu.org/licenses/" #f(compiled-function (d) #<bytecode 0x183c21e239c1e2a3>))
>
> Is it possible that url-file-handler is misbehaving here?
>
> The first lines look sensible, and then at the end we call nil as a
> function.
That's because the "https" URL scheme backend does not define the
url-https-directory-files function. The function created by
url-handlers-create-wrapper does not handle that situation specially, it
just lets the error happen.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
prev parent reply other threads:[~2024-07-21 6:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-20 0:56 bug#72203: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded Nick OBrien via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-20 7:11 ` Eli Zaretskii
2024-07-21 0:58 ` Dmitry Gutov
2024-07-21 6:57 ` Andreas Schwab [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v80zz0yz.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=72203@debbugs.gnu.org \
--cc=dmitry@gutov.dev \
--cc=eliz@gnu.org \
--cc=joaotavora@gmail.com \
--cc=nick4f42@proton.me \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.