GNU bug report logs -
#76299
recover-this-file warning blotted out with -nw
Previous Next
To reply to this bug, email your comments to 76299 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Sat, 15 Feb 2025 04:00:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dan Jacobson <jidanni <at> jidanni.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 15 Feb 2025 04:00:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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"
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Sat, 15 Feb 2025 12:19:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 76299 <at> debbugs.gnu.org (full text, mbox):
> From: Dan Jacobson <jidanni <at> jidanni.org>
> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Sun, 16 Feb 2025 08:37:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 76299 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
retitle 76299 recover-this-file warning blotted out with -nw
thanks
It turns out the problem is not with symlinks, but with -nw !
$ emacs -nw -Q goo
then type a lot, then ^Z, then
$ kill -1 %
$ script --command emacs -Q -nw goo
Indeed, you will see the recover-this-file warning, but very swiftly it
goes away, as the buffer gets painted over, and you see with the
terminal sequences in this typescript file attached.
[typescript (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
So you probably need to have the message come last, not first.
Changed bug title to 'recover-this-file warning blotted out with -nw' from '"Try M-x recover-this-file" warning vs. symlinks'
Request was from
Dan Jacobson <jidanni <at> jidanni.org>
to
control <at> debbugs.gnu.org
.
(Sun, 16 Feb 2025 08:37:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Sun, 16 Feb 2025 09:41:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 76299 <at> debbugs.gnu.org (full text, mbox):
> From: Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 76299 <at> debbugs.gnu.org,control <at> debbugs.gnu.org
> Date: Sun, 16 Feb 2025 16:36:41 +0800
>
> retitle 76299 recover-this-file warning blotted out with -nw
> thanks
> It turns out the problem is not with symlinks, but with -nw !
> $ emacs -nw -Q goo
> then type a lot, then ^Z, then
> $ kill -1 %
> $ script --command emacs -Q -nw goo
> Indeed, you will see the recover-this-file warning, but very swiftly it
> goes away, as the buffer gets painted over, and you see with the
> terminal sequences in this typescript file attached.
> [...]
> So you probably need to have the message come last, not first.
I don't see how this could be possible, since Emacs could show any
number of messages at startup.
The messages are saved in the *Messages* buffer, so you could see them
later.
So I don't think we should do anything about this non-bug.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Sun, 16 Feb 2025 10:19:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 76299 <at> debbugs.gnu.org (full text, mbox):
$ emacs
Screen gets constructed, then warnings sent. User sees warnings.
$ emacs -nw
Warnings sent, then screen gets constructed. User does not see warnings.
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Dan Jacobson <jidanni <at> jidanni.org>
>> Cc: 76299 <at> debbugs.gnu.org,control <at> debbugs.gnu.org
>> Date: Sun, 16 Feb 2025 16:36:41 +0800
>>
>> retitle 76299 recover-this-file warning blotted out with -nw
>> thanks
>> It turns out the problem is not with symlinks, but with -nw !
>> $ emacs -nw -Q goo
>> then type a lot, then ^Z, then
>> $ kill -1 %
>> $ script --command emacs -Q -nw goo
>> Indeed, you will see the recover-this-file warning, but very swiftly it
>> goes away, as the buffer gets painted over, and you see with the
>> terminal sequences in this typescript file attached.
>> [...]
>> So you probably need to have the message come last, not first.
EZ> I don't see how this could be possible, since Emacs could show any
EZ> number of messages at startup.
EZ> The messages are saved in the *Messages* buffer, so you could see them
EZ> later.
EZ> So I don't think we should do anything about this non-bug.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Sun, 16 Feb 2025 11:00:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 76299 <at> debbugs.gnu.org (full text, mbox):
> From: Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 76299 <at> debbugs.gnu.org, rms <at> gnu.org
> Date: Sun, 16 Feb 2025 18:18:31 +0800
>
> $ emacs
> Screen gets constructed, then warnings sent. User sees warnings.
> $ emacs -nw
> Warnings sent, then screen gets constructed. User does not see warnings.
That's not what I see here. The message is left on the screen after
Emacs starts, it doesn't get away until I type something.
I don't understand what you mean by "screen gets constructed".
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Sun, 16 Feb 2025 11:10:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 76299 <at> debbugs.gnu.org (full text, mbox):
> Cc: rms <at> gnu.org, 76299 <at> debbugs.gnu.org
> Date: Sun, 16 Feb 2025 12:58:46 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > From: Dan Jacobson <jidanni <at> jidanni.org>
> > Cc: 76299 <at> debbugs.gnu.org, rms <at> gnu.org
> > Date: Sun, 16 Feb 2025 18:18:31 +0800
> >
> > $ emacs
> > Screen gets constructed, then warnings sent. User sees warnings.
> > $ emacs -nw
> > Warnings sent, then screen gets constructed. User does not see warnings.
>
> That's not what I see here. The message is left on the screen after
> Emacs starts, it doesn't get away until I type something.
Does the problem happen for you if you invoke
$ emacs -Q -nw goo
? If the problem doesn't happen with "emacs -Q", then some of your
customizations cause the message to be erased. maybe those
customizations do different things without -nw, which is why you think
that -nw is the culprit.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Mon, 17 Feb 2025 05:44:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 76299 <at> debbugs.gnu.org (full text, mbox):
Yes I was using -Q.
Please have a look at the 'typescript' file that I attached a few emails
back.
You'll see exactly what escape sequence were sent to the terminal.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Mon, 17 Feb 2025 12:31:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 76299 <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 17 Feb 2025 13:43:19 +0800
> From: Dan Jacobson <jidanni <at> jidanni.org>
> Cc: rms <at> gnu.org, 76299 <at> debbugs.gnu.org
>
>
> Yes I was using -Q.
Then I don't know what happens on your system and why. On my syste,
when I run "emacs -Q -nw goo", I see the "Try M-x recover-this-file"
warning displayed after Emacs starts.
> Please have a look at the 'typescript' file that I attached a few emails
> back.
>
> You'll see exactly what escape sequence were sent to the terminal.
Sorry, I cannot afford deciphering escape sequences of an unknown
terminal. If there's some tool that can display the sequences in
human-readable format, I'll be happy to use it in this case.
Or maybe someone else can figure out why this happens to you, and we
can then take it from there.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Mon, 17 Feb 2025 19:45:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 76299 <at> debbugs.gnu.org (full text, mbox):
One way of using the typescript file, would be to edit it, removing
everything after I typed control x control c.
And then just simply cat the file in your terminal.
I assume these days most of the terminals are compatible with xterm.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Mon, 17 Feb 2025 19:50:03 GMT)
Full text and
rfc822 format available.
Message #37 received at 76299 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 18 Feb 2025 03:44:07 +0800
> From: Dan Jacobson <jidanni <at> jidanni.org>
> Cc: rms <at> gnu.org, 76299 <at> debbugs.gnu.org
>
> One way of using the typescript file, would be to edit it, removing
> everything after I typed control x control c.
>
> And then just simply cat the file in your terminal.
>
> I assume these days most of the terminals are compatible with xterm.
I already did all that, and I'm still n one the wiser.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Tue, 18 Feb 2025 10:13:02 GMT)
Full text and
rfc822 format available.
Message #40 received at 76299 <at> debbugs.gnu.org (full text, mbox):
Perhaps you could use the same script command I did and post your
typescript file and I'll compare it byte by byte this weekend. Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Tue, 18 Feb 2025 15:02:02 GMT)
Full text and
rfc822 format available.
Message #43 received at 76299 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> Date: Tue, 18 Feb 2025 18:12:09 +0800
> From: Dan Jacobson <jidanni <at> jidanni.org>
> Cc: rms <at> gnu.org, 76299 <at> debbugs.gnu.org
>
> Perhaps you could use the same script command I did and post your
> typescript file and I'll compare it byte by byte this weekend. Thanks.
Thank you.
I attach below the termscript file produced by calling open-termscript
in Emacs. Specifically, the command I've ran was
$ emacs -nw -Q --eval '(open-termscript "~/recover-file.script")' foo-link
where 'foo-link' is a symlink which I was editing when I killed the
previous session of Emacs.
[recover-file.script (application/octet-stream, attachment)]
Severity set to 'minor' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 19 Feb 2025 02:11:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#76299
; Package
emacs
.
(Sat, 22 Feb 2025 22:02:01 GMT)
Full text and
rfc822 format available.
Message #48 received at 76299 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Here I have isolated the exact point where the modeline writes over the
warning. I let it write halfway, where upon I have truncated the file.
If you do
$ cat chopped; read #avoiding shell prompt interference
you will see
-UUU:--- F1 e data; consider M-x recover-this-file
[chopped (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
Note I was using
$ stty --all|grep rows
speed 38400 baud; rows 25; columns 111; line = 0;
$ env|grep TERM
TERM=xterm-256color
P.S., triggering the warning is easy:
$ touch \#a#
$ emacs -nw -Q a
You might say "why does the modeline overwrite it? The warning is one
line below the modeline!"
And indeed it is. But disappears very fast when running emacs -nw -Q a.
This bug report was last modified 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.