Subject: bug#76299: "Try M-x recover-this-file" warning vs. symlinks

From: Eli Zaretskii <[email-masked]>
Date: Sat, 15 Feb 2025 14:17:53 +0200

> From: Dan Jacobson <[email-masked]>
> Date: Sat, 15 Feb 2025 04:52:34 +0800
> 
> If there is a symlink involved,
> $ ls -l
>   lrwxrwxrwx 1 jidanni     19 2024-02-13  notes.txt -> Downloads/notes.txt
> Then
> $ emacs notes.txt
> will still auto-save to plain
> ./#notes.txt#
> which is OK, until there is a hangup,
> and one does
> $ emacs notes.txt
> again, but no "Try M-x recover-this-file" warning is given to the user.
> emacs-version "29.4"

I cannot reproduce this.  Please show the results of

 $ ls -l

in the directory where both notes.txt (a symlink) and #notes.txt# (the
auto-save file) are present.