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#75363: 29.3; compile-goto-error eliminates symbolic links Date: Sat, 04 Jan 2025 21:03:19 +0200 Message-ID: <86jzbabdvs.fsf@gnu.org> References: <961853769.14912292.1736004372047.ref@mail.yahoo.com> <961853769.14912292.1736004372047@mail.yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38530"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75363@debbugs.gnu.org To: Anders Gustavsson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 20:04:27 2025 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 1tU9Rh-0009pk-LL for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 20:04:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU9RN-000554-UP; Sat, 04 Jan 2025 14:04: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 1tU9RL-00054m-Gf for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:04: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 1tU9RK-00021Q-Bv for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:04: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=zo/uZvEmzgtchd0yI52FbmQWI/IgCvZ4Fjp2z4s0iuc=; b=NyQny9oZ5A8RDAr2g0CYLOlNvizu9EKn3CH3nyXN+fZLBOSJVaAFmSu+DiiSFmp3UULkzWxawU+lsDTwm5RojMpIHIqBSC784tUVeugf0WhAUmWu8lLBHcvqfPAoFlVgSYmb+Z8EzlWQOejqAusqg987ZS1U8oIvprHXbNRa33v8VPnI/EhDXG5ls56HDFaKhmcffW5CC8wPzmHh5P4sf3KEZnQBQFNEZpq+IyA60wjWilFLA/cUU7BlFJcvpZvRMphU4loNGaTTO/YwSETPQsTfd5UmMIKdB+jKMfi3OTWpWMFYpBrjD6iCxmfwcxeBu9PN7dWrEMgj56Eoxz3u4w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU9RJ-0007it-QM for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 14:04:01 -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, 04 Jan 2025 19:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75363 X-GNU-PR-Package: emacs Original-Received: via spool by 75363-submit@debbugs.gnu.org id=B75363.173601742029660 (code B ref 75363); Sat, 04 Jan 2025 19:04:01 +0000 Original-Received: (at 75363) by debbugs.gnu.org; 4 Jan 2025 19:03:40 +0000 Original-Received: from localhost ([127.0.0.1]:57379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU9Qy-0007iJ-1W for submit@debbugs.gnu.org; Sat, 04 Jan 2025 14:03:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37594) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU9Qu-0007i3-0F for 75363@debbugs.gnu.org; Sat, 04 Jan 2025 14:03:38 -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 1tU9Qo-0001yE-I4; Sat, 04 Jan 2025 14:03:30 -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=zo/uZvEmzgtchd0yI52FbmQWI/IgCvZ4Fjp2z4s0iuc=; b=jB1wa7KJti6/ mKYDYwBjKCMkzjSjJWYGSe02TJmHs4OLp/NcP+Qfb07Liglqw6BhuBsd40lZdPlRg+KxX3Izsajy8 XpBefzDiEWBIUDsicX8jGo3WWhiBKno7dDh1ynhcKuqLimyrHYBvl/VMWNI+k2PYlif25ovVfF9uD eSKzaXi+STnAgZF7wsVVtl7FHPrLSvvCut58/vxJYWdyQjualXbzBrp4HQskoQEiesG7W9BtZoTuD i63rLJjoKhx60K7CbGMV0a2Utvh/qBPV7ZhlPd9yl69+h38xrc5QYmmZSbnZ97A+hXsI/7K7A2tNb TvOCBH53RlIWazPExYub9w==; In-Reply-To: <961853769.14912292.1736004372047@mail.yahoo.com> (bug-gnu-emacs@gnu.org) 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:298450 Archived-At: > Date: Sat, 4 Jan 2025 15:26:12 +0000 (UTC) > From: Anders Gustavsson via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Create a directory, a file and a shortcut in the file system: > > cd > mkdir -p path/to/long/directory/in/file/system > echo "hello" > path/to/long/directory/in/file/system/file > ln -s path/to/long/directory/in/file/system/ shortcut > > In emacs > > C-x C-f shortcut > M-x grep hello * > > in the output mouse-1 on > > file 1:hello > > Then type: C-x C-b > > Then you see that the filename of the file found in the grep output is > ~/path/to/long/directory/in/file/system/file > > not ~/shortcut/file as you would have expected, and how it was before in > emacs version 27.1. Same thing happens in emacs 29.4. I think this is already fixed in Emacs 30, where it only resolves symlinks if the shortcut name cannot be found by find-file. Can you try the latest pretest of Emacs 30.1? Its tarball is here: https://alpha.gnu.org/gnu/emacs/pretest/emacs-30.0.93.tar.xz