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#64102: 28.2; fails to find pathname with a sub dir as symlink and with parent dir ('..') Date: Sun, 18 Jun 2023 21:25:56 +0300 Message-ID: <83mt0w8w5n.fsf@gnu.org> References: <83352rubii.fsf@gnu.org> <83352pp2vv.fsf@gnu.org> <3e45fafc-a73f-b6e7-de91-527c64308bd3@cs.ucla.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40878"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jacob@teamconnectusa.com, 64102@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 18 20:27:20 2023 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 1qAx7P-000AQO-Me for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Jun 2023 20:27:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAx7B-0004vc-2k; Sun, 18 Jun 2023 14:27:05 -0400 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 1qAx79-0004vC-5Y for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2023 14:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qAx78-0006Hl-T8 for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2023 14:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAx78-0003aK-Fe for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2023 14:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jun 2023 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64102 X-GNU-PR-Package: emacs Original-Received: via spool by 64102-submit@debbugs.gnu.org id=B64102.168711276413712 (code B ref 64102); Sun, 18 Jun 2023 18:27:02 +0000 Original-Received: (at 64102) by debbugs.gnu.org; 18 Jun 2023 18:26:04 +0000 Original-Received: from localhost ([127.0.0.1]:54941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAx6C-0003Z6-HY for submit@debbugs.gnu.org; Sun, 18 Jun 2023 14:26:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAx6A-0003YZ-3c for 64102@debbugs.gnu.org; Sun, 18 Jun 2023 14:26:03 -0400 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 1qAx62-0005k4-On; Sun, 18 Jun 2023 14:25:54 -0400 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=PNCSCATxReIbNIYpfwPx+KXA8mSt655A2yTfZ+nWlVw=; b=HXOPG+2PAaC9 ZJ6X99e/KUn0Z/ak8HyyvPCUQLufLyY+LEczP3nTRXkv+g8nCbYFSaqRQTunVQHjoIsCCFLhTvK3Z RB/l40uweNrHUkdGgjigdRtXMRJIRmU0+W13j5CU9stqDHIcKAmEkJBDnIaM9BlmgJDTuKtUFxVuG V7GKnosXKeMBx8pi72Ieo0OU0BlES6cGXLaZcDr/jiTbtwboB6A0uQWZ8huZIbPIOZspFYk3B4y6k xIL8EfKgAQwfH3guajgOq3NcSNpKRFfUI+gUQQxPYXs9wA3hZ5ZgbFaXPTwBrOHcZwM3rj6ofNegJ YBdS5/tLxCg0hcWkvzznXw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAx62-00065m-5c; Sun, 18 Jun 2023 14:25:54 -0400 In-Reply-To: <3e45fafc-a73f-b6e7-de91-527c64308bd3@cs.ucla.edu> (message from Paul Eggert on Sun, 18 Jun 2023 11:03:59 -0700) 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:263651 Archived-At: > Date: Sun, 18 Jun 2023 11:03:59 -0700 > Cc: jacob@teamconnectusa.com, 64102@debbugs.gnu.org > From: Paul Eggert > > On 2023-06-18 01:53, Eli Zaretskii wrote: > > > Paul, any comments or ideas? > > Emacs's behavior is well-documented and longstanding. It's also wrong, > in that it disagrees with almost every other program and it therefore > confuses users, particularly non-experts. > > One possible way out would be to add a user-settable flag to select the > longstanding Emacs behavior, or the behavior of most other programs. We > could document that the default might change in the future. Of course > this approach would have its own problems. Before we consider how to trigger the new behavior, would you please describe what kind of changes will be needed for implementing it? My take from the description of the issue is that we'd need to change expand-file-name to follow symlinks, i.e. hit the disk, something that it never did, at least not on Posix platforms. If this is what is needed, it would have serious implications, at least performance-wise, because expand-file-name is called everywhere in Emacs where we deal with file names.