From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anders Gustavsson via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#75363: 29.3; compile-goto-error eliminates symbolic links Date: Sat, 4 Jan 2025 15:26:12 +0000 (UTC) Message-ID: <961853769.14912292.1736004372047@mail.yahoo.com> References: <961853769.14912292.1736004372047.ref@mail.yahoo.com> Reply-To: Anders Gustavsson Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14912291_1155515447.1736004372046" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12179"; mail-complaints-to="usenet@ciao.gmane.io" To: 75363@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 18:47:39 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 1tU8FO-00030K-Ps for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 18:47:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU8Ez-0007s7-VP; Sat, 04 Jan 2025 12:47:14 -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 1tU8Er-0007qN-Vw for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:47:08 -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 1tU8Eq-0000FK-M6 for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:47:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:MIME-Version:From:Date:To:Subject; bh=sR4XJZQg05WxlfufuAwyk19FQ5lL5dNwiemSsbMU9Vo=; b=CPtzuI94twHFD8NxoAROtUbI/Z77gOGoyisIbZqlJRCve87W3QHbiQ9axI6nxVTfhFZKBzI5bVKT8lnAsGoFNAIBJloXfPAPV6+xVx6u+kSP3YcroNLxh/HTnX0WY1Ef/vyJJ88aya7XvvcDGE70anLCD6yRLGQIcY0SnZevNup6o4z1+WXLxVtS6nDQvQLvRHl4A6aNqYBBu0/8/niVd+evrf9L00sFg/JkJ4R96IkZSOg2F4k/Gzrv3VUFLhWCT/wmxrWpMK4xswAV3UUWMEfKSQD35RnWY57N3wB2XNrM18PY7lswAgP5JgoWSIIRpcq3TU81IkU1cv/f+MatFg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU8Eq-0004Gf-Dx for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:47:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Anders Gustavsson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 17:47:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75363 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.173601278516297 (code B ref -1); Sat, 04 Jan 2025 17:47:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jan 2025 17:46:25 +0000 Original-Received: from localhost ([127.0.0.1]:57145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU8EC-0004Eg-3o for submit@debbugs.gnu.org; Sat, 04 Jan 2025 12:46:25 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:34992) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU6dJ-0007qF-MZ for submit@debbugs.gnu.org; Sat, 04 Jan 2025 11:04:15 -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 1tU64K-0008Ic-AW for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 10:28:04 -0500 Original-Received: from sonic304-22.consmr.mail.ir2.yahoo.com ([77.238.179.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU64H-0005ld-QC for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 10:28:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1736004477; bh=sR4XJZQg05WxlfufuAwyk19FQ5lL5dNwiemSsbMU9Vo=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=snffdah3dWLJRdRhqqftdo6noorqgYStbK96o0o8Vt76lbxSJ0LgzSu9Igik7i339vH4pOqayMlFWqMPiE2pvQHvT/7+G5x2eSgtJySpbMcYo0hbg46OsKV+RXgDeD8yRp6lEjTqp21tLWRHln8Xk9a9Vsu8VG7Q0OgIicgpyy/N0YhJ59X628CP4c38qQinqDQQAufYbCMT2ZcZQXTLA7fHWpE73AqgvAUI9dqb3DZETWtlHTOXUyNmHkv5x0N0zVzpzQIDhuMgEZFegdq8r/RJe6O/UZYpSgUJMZnqUZpQTFVFQ2eI4+0OcPPURUQaLm6LlZr4IekSncQBzuL8sw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;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CaOHfJ31SHAcXcfwjefs3oghIoBGBFI IdPPKXj_oJCzm7DPbT7hUpE_txg9htF8Dm4snGDAE_vuNrm9A0UQDmFmxdr_lRyBv1U4so9Mc.ws p9TU1GDaxjlB3i4iodaWp8dxPGKyb4IppCIotQ8QrapkTT8Y7UTIbH3h5kG3Gf9STakeJouX.Uip 0WetLmUstdRUcsZchHbiXmGSTVNTducjGSicK5wdZg X-Sonic-MF: X-Sonic-ID: 3eda09d0-3336-4f09-a1df-c3cd6afaceac Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Sat, 4 Jan 2025 15:27:57 +0000 X-Mailer: WebService/1.1.23040 YMailNorrin Received-SPF: pass client-ip=77.238.179.147; envelope-from=anders_r_gson@yahoo.com; helo=sonic304-22.consmr.mail.ir2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 04 Jan 2025 12:46:20 -0500 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:298437 Archived-At: ------=_Part_14912291_1155515447.1736004372046 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=20 ~/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 fixed this bug by removing two calls to file-truename in the function compilation-find-file-1 and one call to the same function in compilation-find-file (both functions in lisp/progmodes/compile.el) Configured using: =C2=A0'configure --prefix=3D/opt/emacs' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: =C2=A0 value of $LC_MONETARY: sv_SE.UTF-8 =C2=A0 value of $LC_NUMERIC: sv_SE.UTF-8 =C2=A0 value of $LANG: en_US.UTF-8 =C2=A0 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 eldoc-mode: t =C2=A0 show-paren-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 tool-bar-mode: t =C2=A0 menu-bar-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 line-number-mode: t =C2=A0 indent-tabs-mode: t =C2=A0 transient-mark-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 36132 6294) =C2=A0(symbols 48 5126 0) =C2=A0(strings 32 13108 1028) =C2=A0(string-bytes 1 371205) =C2=A0(vectors 16 9282) =C2=A0(vector-slots 8 148153 12034) =C2=A0(floats 8 22 21) =C2=A0(intervals 56 201 0) =C2=A0(buffers 976 10)) ------=_Part_14912291_1155515447.1736004372046 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
= 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 <r= et> hello * <ret>

in the output mouse-1 on

file 1:he= llo

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/syste= m/file

not ~/shortcut/file as you would have expected, and how it wa= s before in
emacs version 27.1. Same thing happens in emacs 29.4.
I fixed this bug by removing two calls to file-truename in the
function= compilation-find-file-1 and one call to the same function in
compilatio= n-find-file (both functions in lisp/progmodes/compile.el)

Configured= using:
 'configure --prefix=3D/opt/emacs'

Configured featur= es:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
L= IBSELINUX MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF
= TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important set= tings:
  value of $LC_MONETARY: sv_SE.UTF-8
  value of $LC_= NUMERIC: sv_SE.UTF-8
  value of $LANG: en_US.UTF-8
  locale= -coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor= modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t<= br>  eldoc-mode: t
  show-paren-mode: t
  electric-ind= ent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
&nb= sp; menu-bar-mode: t
  file-name-shadow-mode: t
  global-fo= nt-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t<= br>  line-number-mode: t
  indent-tabs-mode: t
  trans= ient-mark-mode: t
  auto-composition-mode: t
  auto-encrypt= ion-mode: t
  auto-compression-mode: t

Load-path shadows:None found.

Features:
(shadow sort mail-extr emacsbug message ma= ilcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-c= ache epa derived epg rfc6068
epg-config gnus-util text-property-search t= ime-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabb= rev gmm-utils mailheader
cl-loaddefs cl-lib sendmail rfc2047 rfc2045 iet= f-drums mm-util
mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc= paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode = mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image=
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode=
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenutimer select scroll-bar mouse jit-lock font-lock syntax font-core
term= /tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian ph= ilippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-= viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak c= zech european ethiopic indian cyrillic chinese
composite emoji-zwj chars= cript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray ocl= osure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroex= p files window text-properties
overlay sha1 md5 base64 format env code-p= ages mule custom widget keymap
hashtable-print-readable backquote thread= s dbusbind inotify
dynamic-setting system-font-setting font-render-setti= ng cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-pro= cess
emacs)

Memory information:
((conses 16 36132 6294)
&nb= sp;(symbols 48 5126 0)
 (strings 32 13108 1028)
 (string-by= tes 1 371205)
 (vectors 16 9282)
 (vector-slots 8 148153 12= 034)
 (floats 8 22 21)
 (intervals 56 201 0)
 (buff= ers 976 10))


------=_Part_14912291_1155515447.1736004372046--