From unknown Thu Jun 19 14:03:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#72203 <72203@debbugs.gnu.org> To: bug#72203 <72203@debbugs.gnu.org> Subject: Status: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded Reply-To: bug#72203 <72203@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:03:09 +0000 retitle 72203 31.0.50; browse-url-emacs (url-file-handler) errors when eglo= t is loaded reassign 72203 emacs submitter 72203 Nick OBrien severity 72203 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 19 20:57:09 2024 Received: (at submit) by debbugs.gnu.org; 20 Jul 2024 00:57:09 +0000 Received: from localhost ([127.0.0.1]:51418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUyPN-0002JW-3m for submit@debbugs.gnu.org; Fri, 19 Jul 2024 20:57:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:37048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sUyPK-0002JO-4Y for submit@debbugs.gnu.org; Fri, 19 Jul 2024 20:57:07 -0400 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 1sUyPI-00027q-0o for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2024 20:57:04 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUyPB-0007xk-Tr for bug-gnu-emacs@gnu.org; Fri, 19 Jul 2024 20:57:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1721437004; x=1721696204; bh=gC6Z4Dabr2txOdi9vKjfwunYH9fBZPeBsPdo4t1ry2Q=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=OVzWOXs/JwRuzhWKdvAvQ4hRfer6RLM5bHieiXOlnpdBRctCGy9lzyGD0Z208Wqk4 HaVVZO8KzHs44zgxamdkLKk8y3pVc9XfPhvQYJYmPgLIdsexzuWSGrr16lGB13bnwx 6pf/euAaPKFFedGtS+/iterwW1oSeMrGXh1F4+NHl2aL0Wc5DV1IeLvy4NOseS7C0b 6t4YsxGe6jM7eETs5/XR/rh1RqOdn/7yzpZ3rxYkwAIEeZMz4FZzhl0Vx5Z6XmUkqa xdqmFeaSIQfV6QEUAcNb2fJhnDanUYmHftQIoavcSXc5OdslGWGcl1rKX1VNaeUWhW MvkKgmQu0I3xw== Date: Sat, 20 Jul 2024 00:56:38 +0000 To: "bug-gnu-emacs@gnu.org" From: Nick OBrien Subject: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded Message-ID: Feedback-ID: 53815645:user:proton X-Pm-Message-ID: 25c83e9fe2a2a810e4259b3f4429c93d33b48173 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.16; envelope-from=nick4f42@proton.me; helo=mail-4316.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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) #)("https://www= .gnu.org/licenses/") locate-dominating-file("https://www.gnu.org/licenses/" #f(compiled-fu= nction (d) #)) 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(# "https://www.gnu.org/licen= ses/gpl-3.0.txt" nil nil "https://www.gnu.org/licenses/gpl-3.0.txt" (nil ni= l)) 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.t= xt")) t) elisp--eval-last-sexp(nil) #f(compiled-function () #)() eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) command-execute(eval-last-sexp) In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) Repository revision: 99b360bb5aabf324cf038c27ac76ac1513319754 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101013 System Description: NixOS 24.05 (Uakari) Configured using: 'configure --prefix=3D/nix/store/1wzjg52vljqzzwgj3i1wvlq8ybz8safl-emacs-git-20240718.= 0 --disable-build-details --with-modules --with-x-toolkit=3Dlucid --with-cairo --with-xft --with-compress-install --with-toolkit-scroll-bars --with-native-compilation --without-imagemagick --with-mailutils --without-small-ja-dic --with-tree-sitter --with-xinput2 --without-xwidgets --with-dbus --with-selinux' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr jka-compr misearch multi-isearch emacsbug help-fns radix-tree cl-extra cl-print mm-archive message sendmail yank-media dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-dav parse-time iso8601 xml url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny url-handlers browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf mailcap eglot external-completion jsonrpc xref flymake thingatpt project compat diff diff-mode track-changes easy-mmode ert pp ewoc debug backtrace help-mode find-func filenotify warnings compile text-property-search comint ansi-osc ansi-color ring pcase url-util url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json map byte-opt gv bytecomp byte-compile url-vars imenu time-date subr-x cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 176537 29166) (symbols 48 11470 0) (strings 32 36163 1998) (string-bytes 1 1251305) (vectors 16 22615) (vector-slots 8 273895 25920) (floats 8 60 96) (intervals 56 3301 59) (buffers 992 17)) From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 20 03:11:54 2024 Received: (at 72203) by debbugs.gnu.org; 20 Jul 2024 07:11:54 +0000 Received: from localhost ([127.0.0.1]:51631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sV4G1-00043M-Mw for submit@debbugs.gnu.org; Sat, 20 Jul 2024 03:11:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sV4Fy-000438-QL for 72203@debbugs.gnu.org; Sat, 20 Jul 2024 03:11:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sV4Ft-0007V0-1O; Sat, 20 Jul 2024 03:11:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=XZKQYM0t787urA4Pv8c6womIYh4M20M54tTgaDtv1zg=; b=C9yYMZFO4mmWH03E8Pwf OQ5XIOoGKN5mWvjNz2a02bWmpEom/Zy7GTpmskHI+d4KtSCIlOQIZUBntrE/if95DnOt2HugJ+GSq noh4/zC+bARBRhEBEYAOIBe8zAa7lahr6Ioipa0yO7Djx7e4SixEiX9NCMSRmUJKpvOd0p6ciJz2l AdI2xQEGw88q3mciH+harB/623orPtO+o5dIISreLIzcTh6TaxnrU+eaR1OyiqxN49FcXPQGstBJD 0JNG5yDU9uxDWSh/pn5/g6CZq2JYCJi3YdIt5Dlcj9b/ZFXNOCwP7tmdBQfvICU6gdK3FutUHmOJo 6wziJuOhlIdd+A==; Date: Sat, 20 Jul 2024 10:11:43 +0300 Message-Id: <86ttgkedw0.fsf@gnu.org> From: Eli Zaretskii To: Nick OBrien , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , Dmitry Gutov In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#72203: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72203 Cc: 72203@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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" > > 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) #)("https://www.gnu.org/licenses/") > locate-dominating-file("https://www.gnu.org/licenses/" #f(compiled-function (d) #)) > 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(# "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 () #)() > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > command-execute(eval-last-sexp) Adding João and Dmitry. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 20 20:58:37 2024 Received: (at 72203) by debbugs.gnu.org; 21 Jul 2024 00:58:37 +0000 Received: from localhost ([127.0.0.1]:54524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVKuL-0005Q6-0o for submit@debbugs.gnu.org; Sat, 20 Jul 2024 20:58:37 -0400 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]:47185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVKuJ-0005Pp-3z for 72203@debbugs.gnu.org; Sat, 20 Jul 2024 20:58:35 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id DEA4F11401B5; Sat, 20 Jul 2024 20:58:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 20 Jul 2024 20:58:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1721523508; x=1721609908; bh=2vt5zhOINJuiqDjNd67dHA2k1gA4rdacvAnZePAkby4=; b= wHY/cIyYtUu9OL6Z/05dH4dCazFFyVzSa9I6RR/L+TbOfD4w7gSMBXuElmeBOOiR aHtOxVlu7D5rZdUkDgWMnE7lFlT5SJBN80QHLs6IRXeFXDEOWzifPTZsEUUQZ5rF rbsdNUBrZkq+8Uyhw6GH6IeJxTzRwX2scdRbJKfcgH3JLXNimHccruUxVHjZ/rq7 tQouyTQ1h4dmS7ObBjDskRea09ac91m5arIi08PMw2CByspbA2GNSnS7LeJiFEPS cqOiEMvMfI/ZHyDr4Gzsd6qo+ELihSzgUi+MnwzpA6q0J+8tGkSNAuHXANh0CTOJ fg/RXRAX8gqs0WSvw/rOrg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1721523508; x= 1721609908; bh=2vt5zhOINJuiqDjNd67dHA2k1gA4rdacvAnZePAkby4=; b=Y 2qI81675uUD91zgMq3hcXmjsZcN6uyOTg5U2iADMxPrQyBQJ8BLyJdyivQr5I2wl wcnhQHOs8X/A2uaDzNuES+Mk7dnDSJLqu7O0QM6BpBEjQnOjTdc5ZqJF6axdZWN4 1nCnEHWN6qZ0r1b44lggjKlZTW+2AuVEZftmAaNicoQcGrMhgUcaEUi0X4frBIGb yXeh6JtNCAkf1xEdiW4lOK6Wv02REicgRyxkVwERUqvB3BB3boWzSETcLDYfl1wN 4BEOOm6JBr3u6EK6gz5ghLKf9nMnqXYpF9t1UvMIPGqj98y+ZsrBLQc/hdR5pgCq zDSR7gkUi9ieUlZ5Lp0JA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheeggdegudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhithhr hicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvg hrnhepjeejjeejiefgieffleetheehjeevfeeivefgjeevheehgfejfefftedvieelvdff necuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jul 2024 20:58:27 -0400 (EDT) Message-ID: <35c8fd18-cf10-43b5-aac4-49296015d251@gutov.dev> Date: Sun, 21 Jul 2024 03:58:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#72203: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded To: Nick OBrien , 72203@debbugs.gnu.org, Eli Zaretskii , =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= References: Content-Language: en-US From: Dmitry Gutov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72203 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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) #)("https://www.gnu.org/licenses/") > locate-dominating-file("https://www.gnu.org/licenses/" #f(compiled-function (d) #)) 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. Of course, we probably don't want to list any files or detect the project when default-directory is an HTTPS URL, but how do we distinguish this case from others where we're just on a remote host (e.g. Tramp, most likely)? And sure, Eglot triggers the problem by calling project-current automatically, but then project-mode-line might do the same. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 21 02:58:32 2024 Received: (at 72203) by debbugs.gnu.org; 21 Jul 2024 06:58:32 +0000 Received: from localhost ([127.0.0.1]:54666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVQWd-0006ca-QF for submit@debbugs.gnu.org; Sun, 21 Jul 2024 02:58:32 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:39973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sVQWb-0006cS-Mh for 72203@debbugs.gnu.org; Sun, 21 Jul 2024 02:58:30 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4WRZ3V5fHSz1sB7M; Sun, 21 Jul 2024 08:57:26 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4WRZ3V2yz9z1qqlg; Sun, 21 Jul 2024 08:57:26 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id q4dWUNbKi6XA; Sun, 21 Jul 2024 08:57:25 +0200 (CEST) X-Auth-Info: psdOEpNqtYoxqXFhQb+ufINTMwc1dtCtkUIxQTE8J4sAf/i4tKhaT05s8rj59DEw Received: from igel.home (aftr-82-135-83-106.dynamic.mnet-online.de [82.135.83.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 21 Jul 2024 08:57:25 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 18DD32C1FC6; Sun, 21 Jul 2024 08:57:25 +0200 (CEST) From: Andreas Schwab To: Dmitry Gutov Subject: Re: bug#72203: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded In-Reply-To: <35c8fd18-cf10-43b5-aac4-49296015d251@gutov.dev> (Dmitry Gutov's message of "Sun, 21 Jul 2024 03:58:25 +0300") References: <35c8fd18-cf10-43b5-aac4-49296015d251@gutov.dev> X-Yow: Why was I BORN? Date: Sun, 21 Jul 2024 08:57:24 +0200 Message-ID: <87v80zz0yz.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72203 Cc: Eli Zaretskii , 72203@debbugs.gnu.org, =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , Nick OBrien X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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) #)("https://www.gnu.org/licenses/") >> locate-dominating-file("https://www.gnu.org/licenses/" #f(compiled-function (d) #)) > > 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."