From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74208: 31.0.50; minibuffer read-file-name-default mutates global value of default-directory incorrectly Date: Sun, 10 Nov 2024 12:45:52 +0200 Message-ID: <86ed3jl63j.fsf@gnu.org> References: <86msi7ljb0.fsf@gnu.org> <20241110.123007.483734644166546380.enometh@meer.net> <86h68fl86n.fsf@gnu.org> <20241110.161141.2279816734440691375.enometh@meer.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13598"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 74208@debbugs.gnu.org To: Madhu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 10 11:47:51 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 1tA5Ty-0003Il-BX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Nov 2024 11:47:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tA5TE-0003q4-El; Sun, 10 Nov 2024 05:47:04 -0500 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 1tA5TC-0003mu-Iv for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 05:47:02 -0500 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 1tA5TC-0003Ur-A6 for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 05:47:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=+imfZX82TX0pZ2YrS6Jhq3BmcQHtiPDY+Zz0HS7nd5w=; b=TZNJMsxQU1/xTNhgWrflX0PJZ/xBHZFd3moftJenY8MSq3/6/2KpCl6W1sihugIubSwtbgbnPkpBBBtZZuHZqYMBVozBX8d+TsbrzVRR+KprKrpu8t/PuWaQggdYb2AJaXiqqGIzB6krO+73nFKYM6k9w3sFo27Ye02KfN6ZfaNmKni1kFR0wGmuBi8peKr3PgCMfpVs+Io64pJt4H4zXHxM5OrqNwT1ZOuQ1p6CPjBBYPDXhM9vq9lVmQ3EKSjLzCzBe0BwUWU2W25uvxD9Wx0n1ZNiIElwhO7Z9WAL3SmBL4N/D3E2Gf9BJ8V67RjLAp2sOvwP9g8kA3kXitDKVg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tA5TC-00038P-4w for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 05:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Nov 2024 10:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74208 X-GNU-PR-Package: emacs Original-Received: via spool by 74208-submit@debbugs.gnu.org id=B74208.173123556311959 (code B ref 74208); Sun, 10 Nov 2024 10:47:02 +0000 Original-Received: (at 74208) by debbugs.gnu.org; 10 Nov 2024 10:46:03 +0000 Original-Received: from localhost ([127.0.0.1]:55872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA5SF-00036p-CF for submit@debbugs.gnu.org; Sun, 10 Nov 2024 05:46:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA5SC-00036L-MC for 74208@debbugs.gnu.org; Sun, 10 Nov 2024 05:46:01 -0500 Original-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 1tA5S7-00036g-F8; Sun, 10 Nov 2024 05:45:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+imfZX82TX0pZ2YrS6Jhq3BmcQHtiPDY+Zz0HS7nd5w=; b=DKzIDAjDEVAe My7uj1EwvAq7lIFe533GEHQwJi6Wzv5OQiJc/jQOi/QrTU91gjyqcIc7MiZ9tqerEvUWlB4WFEXWn JqDWK4A/5/Tnk//HOHFJtatYeO1RJ4UqEqqBzmUHQl1Ap/u9NAFwkALwCOIxZmxi6K/zFEqxDnogd uHUjj8VkFxjELBdFmWjPVYA1WdvWY7pHLkIM+jjhkGH1fBgaLCx/+mabvAlMvXNxYQZl2yRwtTgmY +CdigNrQT/Z8m9Hvr65ryYgePVkrpT7UkMjdCDqTWJeo4Whd86/kRWUhvSoP64SdgOiaj+eobzSCq Eb8waaVxgv+AP2ID0zaEGA==; In-Reply-To: <20241110.161141.2279816734440691375.enometh@meer.net> (message from Madhu on Sun, 10 Nov 2024 16:11:41 +0530 (IST)) 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:295177 Archived-At: > Date: Sun, 10 Nov 2024 16:11:41 +0530 (IST) > Cc: monnier@iro.umontreal.ca, 74208@debbugs.gnu.org > From: Madhu > > * Eli Zaretskii <86h68fl86n.fsf@gnu.org> > Wrote on Sun, 10 Nov 2024 12:00:48 +0200 > > (expand-file-name "http://example.com" "~") > > => /my/home/directory/http:/example.com > I get the same result. > > > In what version of Emacs do you see your result? > > I was evaluating it under edebug after calling edebug-defun on > read-file-name-default, and ivoking (ffap) on the url. > > It returns the argument with or without the second parameter to > expand-file-name, and I was hoping I could count on this behaviour to > separate the urls from the files. > > The behaviour of expand-file-name is apparenlty modified when it comes > to read-file-name-default, but I can't spot what's going on. ????? Perhaps because TRAMP was loaded?