]> git.eshelyaron.com Git - emacs.git/commit
Fix file-name resolution in *compilation* and *grep* buffers
authorJurgen De Backer <jurgen.de-backer.ext@eurocontrol.int>
Thu, 4 Jan 2024 11:10:56 +0000 (11:10 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sat, 6 Jan 2024 16:17:55 +0000 (17:17 +0100)
commit2d025ceba89441d03c04846b07b1be5cbee1f604
treef225523d12e0ac927079e9a1ebbb16a0f251fe12
parent0900bf9bf56326878b34f667454e06d238303342
Fix file-name resolution in *compilation* and *grep* buffers

Resolving symlinks in file names could lead to non-existent files
if some leading directory is a symlink to its parent.
In emacs 28 'expand-file-name' was replaced by 'file-truename' to
solve bug #8035.

* lisp/progmodes/compile.el (safe-expand-file-name): New function.
(compilation-find-file-1): Call 'safe-expand-file-name'.  (Bug#67930)

(cherry picked from commit 471cc26002d3f6028252c77998272fccf73722ec)
lisp/progmodes/compile.el