From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu 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 16:11:41 +0530 (IST) Message-ID: <20241110.161141.2279816734440691375.enometh@meer.net> References: <86msi7ljb0.fsf@gnu.org> <20241110.123007.483734644166546380.enometh@meer.net> <86h68fl86n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35851"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 74208@debbugs.gnu.org To: eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 10 11:44:19 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 1tA5QO-0008lC-E2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Nov 2024 11:44:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tA5Q6-0007zX-4q; Sun, 10 Nov 2024 05:43:50 -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 1tA5ON-0003hx-9E for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 05:42:08 -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 1tA5OM-0000iX-OC for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 05:42:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Mime-Version:References:In-Reply-To:From:Date:To:Subject; bh=xelK99mkxs1Xtc766a1O0HKqsiyHDljGP/wM7hgQNkk=; b=fZw6JNuntnEuKUIYQLC154f24Bucp7yHRb1SvXX01hcQuIeljH0gGJcP/JpT//lsM21fkMycCFjT50Q3a57kNVQIJfss8EAn3E4EcgnBH0DUgB+G08Br9fiD+cc4Bvryb+0LGxWB+517lb5McqKQ3kNbge0KKk499IX1CnXdNELhI71V5R4QgckS2wTPx67RXEySwnpTOQquvmDjlSMy7ipfVYUrQjT1X/M/K79InguMwPIXOxtnqX3XOiBLnjFyG9LAPjdZw2ULmNNLvvsUAzaz9DT9EbfiO5K+6P1/NuVicjlZLTalgaBcSvY3eupr2B+dl+4mzxAknGYkKZdP/Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tA5OM-0002tN-Iz for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 05:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Madhu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Nov 2024 10:42: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.173123529811081 (code B ref 74208); Sun, 10 Nov 2024 10:42:02 +0000 Original-Received: (at 74208) by debbugs.gnu.org; 10 Nov 2024 10:41:38 +0000 Original-Received: from localhost ([127.0.0.1]:55854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA5Ny-0002sf-2k for submit@debbugs.gnu.org; Sun, 10 Nov 2024 05:41:38 -0500 Original-Received: from smtp0.ctinetworks.com ([205.166.61.207]:53510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tA5Nv-0002sX-Tr for 74208@debbugs.gnu.org; Sun, 10 Nov 2024 05:41:36 -0500 X-ctinetworks-Watermark: 1732099290.65369@onhV3aCWmTYJr/eIArmVVg X-ctinetworks-Envelope-From: enometh@meer.net X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-Message-ID: 356D9601C.A2CAC Original-Received: from localhost (unknown [117.254.37.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: enometh@meer.net) by smtp0.ctinetworks.com (Postfix) with ESMTPSA id 356D9601C; Sun, 10 Nov 2024 05:41:23 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp0.ctinetworks.com 356D9601C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meer.net; s=ctidkims1; t=1731235285; bh=xelK99mkxs1Xtc766a1O0HKqsiyHDljGP/wM7hgQNkk=; h=Date:To:Cc:Subject:From:In-Reply-To:References:From; b=TJJYpZyKq6gW2lZaT1DZXw2QW8qJ6yWEePhkOD9ZtSQ7d93Q0xtCly83JYrjVcwRV ZZJt2YfPKv1JqvxLx0UOA+4QL4rdyru9n7a0FZIQEhJoe1rbYzuLQSdP00Tpf6i10M PizKvMvQrp14MxRyuXsn/T1vJDZJawuw/oBlCDwk= In-Reply-To: <86h68fl86n.fsf@gnu.org> X-Mailer: Mew version 6.9 on Emacs 31.0.50 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:295175 Archived-At: * 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. ?????