From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74208: 31.0.50; minibuffer read-file-name-default mutates global value of default-directory incorrectly Date: Sun, 08 Dec 2024 16:13:48 +0100 Message-ID: <87jzcaus0j.fsf@gmx.de> References: <87y10qv9y1.fsf@gmx.de> <20241208.161924.1904937058365373006.enometh@meer.net> <87seqyv286.fsf@gmx.de> <20241208.172910.1771877886474437176.enometh@meer.net> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24028"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74208@debbugs.gnu.org To: Madhu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 08 16:15:27 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 1tKJ0I-000605-F3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Dec 2024 16:15:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKIzx-0007w6-WB; Sun, 08 Dec 2024 10:15:06 -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 1tKIzv-0007tm-Ci for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 10:15:04 -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 1tKIzv-0000YN-2k for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 10:15: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:Date:References:In-Reply-To:From:To:Subject; bh=Z0GHhJ+FHB9MzA61UrystWj8Su0Lc3Cbt/iLZVkcxMA=; b=vb6kE681H4lRBOseFhkD0RxgiFNaHlQQSWeSnQt4P08W0F03SH4l2CZ0NzV7HXUL3/00H/DirHAEsDHaVhc2mL+nRfraMIC8J7As816ftthZHHp8I2F9LbqgRQHCxO+wyJdrYsGMkttORqJeohm1igrnEO3L/aDahJBY6jaYoGRSGwUS/AqYb+uGb1d8D33yBzMnidn+H3AzASvHgQcssJZHFBk6K8r/hoGEsDJnf7HSQe4Lgh0UI7cFTdqmVWp5KZJI0rBR7dSHtvgqidpz7JyTnBlnxr8tehxZAOpoJuKzipd/MdX28wqe/fScS/ZFTcEHoPefbzLeh936gzs9Kw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKIzt-0006io-Op for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2024 10:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Dec 2024 15:15:01 +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.173367084425741 (code B ref 74208); Sun, 08 Dec 2024 15:15:01 +0000 Original-Received: (at 74208) by debbugs.gnu.org; 8 Dec 2024 15:14:04 +0000 Original-Received: from localhost ([127.0.0.1]:51391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKIyy-0006h6-Ee for submit@debbugs.gnu.org; Sun, 08 Dec 2024 10:14:04 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:52395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKIyw-0006gU-Al for 74208@debbugs.gnu.org; Sun, 08 Dec 2024 10:14:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1733670829; x=1734275629; i=michael.albinus@gmx.de; bh=Z0GHhJ+FHB9MzA61UrystWj8Su0Lc3Cbt/iLZVkcxMA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=AKeE0uMLhka5LRZVhsf8oBBJrvMxLK32MbbdctOvfjVcgN00nYFrh99D/Ww/ks7I 8QuSDvN0mPHwhqmisjUAE3DclGoQs7DDo6qop4AOIETPpRGttBybIKht7r5QpHA73 DulV7FptfKi8h4Xx+kK9dsBYXQDgRyBIq4wP1zbzPyqtu9lgaTWV8fTALgJw5Ijez hVVd7XTlUaNPgUoi1bzKqx/Ux3n86u/tHTPdxMjx/6azxN1kj/xk2kB7qoQtYjyLf 24AGJQAbmUVAV/sL1LDhDnraxFn05inQyc8pFzjdy9ur17lTgCisPEs+xTLTcKNTN qYaXFT+GwrAvZ0U7IQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MHoNC-1tO63v2Piw-0075QQ; Sun, 08 Dec 2024 16:13:49 +0100 In-Reply-To: <20241208.172910.1771877886474437176.enometh@meer.net> (Madhu's message of "Sun, 08 Dec 2024 17:29:10 +0530 (IST)") X-Provags-ID: V03:K1:vEAJezcFULfebr6DacoT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 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:296641 Archived-At: --=-=-= Content-Type: text/plain Madhu writes: Hi Madhu, >> I've checked the problem in ffap.el. It looks like we could use a much >> simpler solution: implement unhandled-file-name-directory in >> ffap--url-file-handler. Something like > > In a quick test with the "M-! echo foo" (in a recursive minibuffer at > the ffap prompt), call-shell-region still fails "Setting current > directory" error, Indeed. The following patch seems to work better, could you pls test? --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/lisp/ffap.el b/lisp/ffap.el index 6a4915fb5a3..180fe408104 100644 =2D-- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -1512,6 +1512,7 @@ ffap--url-file-handler ;; We mainly just want to disable these bits: (substitute-in-file-name (car args)) (expand-file-name (car args)) + (unhandled-file-name-directory temporary-file-directory) (otherwise (apply operation args))))) --=-=-= Content-Type: text/plain > -- Regards, Madhu Best regards, Michael. --=-=-=--