GNU bug report logs - #75363
29.3; compile-goto-error eliminates symbolic links

Previous Next

Package: emacs;

Reported by: Anders Gustavsson <anders_r_gson <at> yahoo.com>

Date: Sat, 4 Jan 2025 17:47:04 UTC

Severity: normal

Found in version 29.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Anders Gustavsson <anders_r_gson <at> yahoo.com>
Cc: 75363 <at> debbugs.gnu.org
Subject: bug#75363: 29.3; compile-goto-error eliminates symbolic links
Date: Sat, 04 Jan 2025 21:03:19 +0200
> 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" <bug-gnu-emacs <at> gnu.org>
> 
> 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 <ret> hello * <ret>
> 
> 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




This bug report was last modified 216 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.