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: Sat, 07 Dec 2024 14:20:45 +0200 Message-ID: <8634izk7ky.fsf@gnu.org> References: <86msi7ljb0.fsf@gnu.org> <20241110.123007.483734644166546380.enometh@meer.net> <20241111.074725.1221470735788072992.enometh@meer.net> <864j3ym915.fsf@gnu.org> <86v7wdjdyk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9568"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74208@debbugs.gnu.org To: monnier@iro.umontreal.ca, enometh@meer.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 13:21:24 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 1tJtoJ-0002My-Sl for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 13:21:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJto1-0002au-88; Sat, 07 Dec 2024 07:21: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 1tJtnz-0002aR-42 for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:21:03 -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 1tJtny-0000xF-R5 for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:21: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=maLxO9OgeJbvu6QjDXKjgZVbtrsPcIq40V6xmigVUjs=; b=s8aEKax10NRYNsa6K2wo0HGtOWxTA18YjjJfzwc3rZhaFo2mBF2e6egoN2t58787QOLfbDWkyRP4QROyVKqt82WymUl7DXZvubbC0NHwvIIxKDE3Zgd1lytrvf65n/qhACUjnsjyPuArWMqdbYSxKgxnq08RNbjnx95d0MaFbPPYVuZXL3xHcBWQvT1Q6N4ne6ajfKBS0pwY4as5CyFG99YMJk9JlHtWkFtq0wxnQ1qhjJ9FRwEzkGFDQwojViCz8rc4zXEg+QQuzLDYGuViCor/D4ewVKnjbT+iJynL+Xm/X6muS+n09jp250TSq90lPW7qSfUoBSGARbVa4w+aUw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJtny-0001Zb-Ld for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 07:21: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: Sat, 07 Dec 2024 12:21: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.17335740576011 (code B ref 74208); Sat, 07 Dec 2024 12:21:02 +0000 Original-Received: (at 74208) by debbugs.gnu.org; 7 Dec 2024 12:20:57 +0000 Original-Received: from localhost ([127.0.0.1]:45682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtns-0001Yt-ML for submit@debbugs.gnu.org; Sat, 07 Dec 2024 07:20:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtnq-0001Ye-Jc for 74208@debbugs.gnu.org; Sat, 07 Dec 2024 07:20:55 -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 1tJtnj-0000vb-M3; Sat, 07 Dec 2024 07:20:49 -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=maLxO9OgeJbvu6QjDXKjgZVbtrsPcIq40V6xmigVUjs=; b=NTZbPtgfaMkf zIEz9mcZ5xuRYb8nWunQF7t6kbLNkhXd1oV48GpTsvDFHgQzXtWDL1hQvtXfso47L2e5psRFkwNmf +MrCGmGCiWCkxqlYIU89nNeb7zgtwH0fLU0Wa/wMdTu+BblJVgHr6U0aqdAm5P5GCXYi4g+ra0Vmm eOBSjf0UAwDH4YWreB4wZDx41pRsjrVVCwwiRMLf9pIYXjRgPHkmvQBSQBljiWbJhwgQbbDUJSRUQ kUvdpIowA1oJ5Ut0BW1Jo4H92t6Kz3mCeaYGlaqDd7XVvGZF3SjLYdYZ9VIZW09NsCGZLFpZsDprA gXHTEyGeftORAeLm4SZu3A==; In-Reply-To: <86v7wdjdyk.fsf@gnu.org> (message from Eli Zaretskii on Sun, 24 Nov 2024 09:19:47 +0200) 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:296546 Archived-At: Ping! Do we want to do anything about this issue? > Cc: enometh@meer.net, 74208@debbugs.gnu.org > Date: Sun, 24 Nov 2024 09:19:47 +0200 > From: Eli Zaretskii > > > From: Stefan Monnier > > Cc: enometh@meer.net, 74208@debbugs.gnu.org > > Date: Sat, 23 Nov 2024 22:00:16 -0500 > > > > > Ping! How should we make progress with this issue? > > > > I think the core of this bug report is that `shell-command` can fail > > when `default-directory` is set to a value that doesn't correspond to > > a local directory. > > > > At least for things like `(shell-command "date")` this is undesirable. > > > > Maybe `call-process` should try to "look for" a valid directory if > > `default-directory` isn't good enough? > > It already does: > > Lisp_Object > get_current_directory (bool encode) > { > Lisp_Object curdir = BVAR (current_buffer, directory); > Lisp_Object dir = Funhandled_file_name_directory (curdir); > > /* If the file name handler says that dir is unreachable, use > a sensible default. */ > if (NILP (dir)) > dir = build_string ("~"); > > I guess this case somehow evades the test? > > > >