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: Mon, 11 Nov 2024 07:47:25 +0530 (IST) Message-ID: <20241111.074725.1221470735788072992.enometh@meer.net> References: <86msi7ljb0.fsf@gnu.org> <20241110.123007.483734644166546380.enometh@meer.net> 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="7223"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, 74208@debbugs.gnu.org To: monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 11 03:18:37 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 1tAK0h-0001fj-OV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Nov 2024 03:18:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAK0D-000165-Ap; Sun, 10 Nov 2024 21:18:05 -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 1tAK0A-00015c-Lr for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 21:18: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 1tAK0A-0004WF-Dd for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 21:18:02 -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=lhfFbGlYrTQcAnf6XknIjP2DFCl+e/7PqrFvXjlZrfo=; b=qQSKRmWt0F1oFblTmz8yAYHii+y6pbavxH0kdC5t66T890+St9vz9f7syW48wZzZE3uChvlmMGUS8AtugN2ReJBoIx9NNFjIakB5n2Rne9S7DmRWqSJDOjDzob4hiF9gxfeKA77vAA+LrztjF5zXIdwrkOOfRJtAvd+uyvoAzgpI90LlwmbDWiKL6rHMOq8PHMpRlRxAnX3frXL3TsVMWPmKzzIkV/CkCrc4kOBjn1ct6DT9WKsdoTeaaGNq5iMlhkQ+In5e8XCiHb+zskimRbV2o41wSaQ+6gcfItcMnJhpm/z6uWozR7rJh/G2lcPuvD45abxDPpr9hUIKCrGkWg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tAK0A-0002ht-5H for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2024 21:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Madhu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Nov 2024 02:18: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.173129142910345 (code B ref 74208); Mon, 11 Nov 2024 02:18:02 +0000 Original-Received: (at 74208) by debbugs.gnu.org; 11 Nov 2024 02:17:09 +0000 Original-Received: from localhost ([127.0.0.1]:57235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAJzJ-0002gm-07 for submit@debbugs.gnu.org; Sun, 10 Nov 2024 21:17:09 -0500 Original-Received: from smtp0.ctinetworks.com ([205.166.61.207]:37310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAJzG-0002gd-P1 for 74208@debbugs.gnu.org; Sun, 10 Nov 2024 21:17:07 -0500 X-ctinetworks-Watermark: 1732155426.07367@yJywO38YMS7czIZkKlNpsA X-ctinetworks-Envelope-From: enometh@meer.net X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-Message-ID: 1DFB9601C.A449F Original-Received: from localhost (unknown [117.254.37.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: enometh@meer.net) by smtp0.ctinetworks.com (Postfix) with ESMTPSA id 1DFB9601C; Sun, 10 Nov 2024 21:17:03 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp0.ctinetworks.com 1DFB9601C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meer.net; s=ctidkims1; t=1731291425; bh=lhfFbGlYrTQcAnf6XknIjP2DFCl+e/7PqrFvXjlZrfo=; h=Date:To:Cc:Subject:From:In-Reply-To:References:From; b=dXXjy/e/xytdWXu6oA1dcsMcnNl5a4XsH3hLZToNGO6ufoZ4u2Y4ZXLmD3g2UAcFA uDwflu66XaPaKkfJGffzmxROZnZ0xO6aHvAZLz+firZl4qWr/qAPob+HI9HBPX9D2l 8D89B7JimFsZ5j5Snmfu3quv9Zpu3SdO4Pd4Oh2s= In-Reply-To: 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:295211 Archived-At: >> The problem is that the parameter DIR == "http://example.com" was >> getting bound to default-directory with undesirable results. > It can also have desirable results sometimes (depends on the URL at point > and what kind of support for URLs you have in your Emacs, admittedly). > Do you happen to have a more realistic scenario than your "echo foo" > that lets us better judge the severity of the problem, and maybe other > ways to solve the actual problem? Are you saying it is ok for emacs to make all calls to `call-prcoess' to unconditionally fail --- when emacs is waiting for input at the minibuffer? the calls to call-process can come from anywhere, from timers, or from outside via emacsclient, etc. I already posted that any hypothetical completion facilites are singularly useless for the task of ffap (url) -- to get the url at point into the minibuffer and maybe manually edit it. If these facilities exist and you are using them, I'd like to see an example.