unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Nick OBrien" <nick4f42@proton.me>,
	"João Távora" <joaotavora@gmail.com>,
	"Dmitry Gutov" <dmitry@gutov.dev>
Cc: 72203@debbugs.gnu.org
Subject: bug#72203: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded
Date: Sat, 20 Jul 2024 10:11:43 +0300	[thread overview]
Message-ID: <86ttgkedw0.fsf@gnu.org> (raw)
In-Reply-To: <LjS6TLmhUV3HuT1-co4OPKN5qQdEZ7e8TbAM_oaWkmJ1UN0zbBBdg3bTGg8vxzsiyp2z5TKd4cnFrdfo2xqyKjAV01Vp44Cq_PcJcHyiUZo=@proton.me> (bug-gnu-emacs@gnu.org)

> Date: Sat, 20 Jul 2024 00:56:38 +0000
> From:  Nick OBrien via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> Steps to reproduce:
> 
>     emacs -Q
> 
>     (require 'eglot)
>     (setq debug-on-error t)
>     (browse-url-emacs "https://www.gnu.org/licenses/gpl-3.0.txt")
> 
> There is an error, but after the gpl-3.0.txt buffer is populated.  I got
> this backtrace (with long arguments manually replaced with ...):
> 
>     Debugger entered--Lisp error: (void-function nil)
>       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>))
>       project-try-vc("https://www.gnu.org/licenses/")
>       run-hook-with-args-until-success(project-try-vc "https://www.gnu.org/licenses/")
>       project--find-in-directory("https://www.gnu.org/licenses/")
>       project-current()
>       eglot--current-project()
>       eglot-current-server()
>       eglot--maybe-activate-editing-mode()
>       run-hooks(after-change-major-mode-hook)
>       run-mode-hooks(text-mode-hook)
>       text-mode()
>       set-auto-mode-0(text-mode nil)
>       set-auto-mode--apply-alist(... nil nil)
>       set-auto-mode()
>       normal-mode(t)
>       after-find-file(nil t)
>       find-file-noselect-1(#<buffer gpl-3.0.txt> "https://www.gnu.org/licenses/gpl-3.0.txt" nil nil "https://www.gnu.org/licenses/gpl-3.0.txt" (nil nil))
>       find-file-noselect("https://www.gnu.org/licenses/gpl-3.0.txt" nil nil nil)
>       find-file-other-window("https://www.gnu.org/licenses/gpl-3.0.txt")
>       browse-url-emacs("https://www.gnu.org/licenses/gpl-3.0.txt")
>       (progn (browse-url-emacs "https://www.gnu.org/licenses/gpl-3.0.txt"))
>       eval((progn (browse-url-emacs "https://www.gnu.org/licenses/gpl-3.0.txt")) t)
>       elisp--eval-last-sexp(nil)
>       #f(compiled-function () #<bytecode 0x29ba0505e5b8a>)()
>       eval-last-sexp(nil)
>       funcall-interactively(eval-last-sexp nil)
>       command-execute(eval-last-sexp)

Adding João and Dmitry.





  reply	other threads:[~2024-07-20  7:11 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 [this message]
2024-07-21  0:58 ` Dmitry Gutov
2024-07-21  6:57   ` Andreas Schwab

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=86ttgkedw0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72203@debbugs.gnu.org \
    --cc=dmitry@gutov.dev \
    --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 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).