From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#72203: 31.0.50; browse-url-emacs (url-file-handler) errors when eglot is loaded Date: Sun, 21 Jul 2024 03:58:25 +0300 Message-ID: <35c8fd18-cf10-43b5-aac4-49296015d251@gutov.dev> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19411"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Nick OBrien , 72203@debbugs.gnu.org, Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 21 02:59:21 2024 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 1sVKv2-0004vL-Et for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Jul 2024 02:59:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVKul-000278-6z; Sat, 20 Jul 2024 20:59:03 -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 1sVKuk-00026w-2Z for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 20:59:02 -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 1sVKuj-0004fC-CL for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 20:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sVKuk-0005Qn-An for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2024 20:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jul 2024 00:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72203 X-GNU-PR-Package: emacs Original-Received: via spool by 72203-submit@debbugs.gnu.org id=B72203.172152351720843 (code B ref 72203); Sun, 21 Jul 2024 00:59:02 +0000 Original-Received: (at 72203) by debbugs.gnu.org; 21 Jul 2024 00:58:37 +0000 Original-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 Original-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 Original-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) Original-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 Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jul 2024 20:58:27 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:289052 Archived-At: 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.