[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23276: 25.0.92; Crash in auto-revert when file no longer present
From: |
Michael Albinus |
Subject: |
bug#23276: 25.0.92; Crash in auto-revert when file no longer present |
Date: |
Tue, 12 Apr 2016 18:14:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Tue, 12 Apr 2016 13:07:48 +0200
>> From: Anders Lindgren <andlind@gmail.com>
>>
>> I just had auto-revert crash on me... (Emacs 25.0.92 on Windows.
>> `debug-on-error' is t.)
>
> I don't see any crash, just an error that was signaled. Am I missing
> something?
No, it's an error. I guess Anders meant "crash *of* auto-revert"
>> I had a file open in Emacs that was rewritten over and over again by an
>> external process. My guess is that
>> Emacs decides that it should be reverted, but when it actually reads the
>> file, it is no longer present.
>>
>> I would suggest that auto-revert silently ignores this error.
>
> Ignore and empty the buffer, or ignore and leave it at its previous
> contents?
The latter one. Anders has explained me that there is a design goal of
auto-revert, to leave the buffer unchanged in such cases. A user could
have deleted the file by accident, and she could use the unchanged
buffer for restoring the file.
I'll try to prepare a patch. If it is as simple as I do expect, it could
go to the emacs-25 branch.
Best regards, Michael.
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present, Anders Lindgren, 2016/04/12
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present, Eli Zaretskii, 2016/04/12
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present,
Michael Albinus <=
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present, Michael Albinus, 2016/04/16
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present, Anders Lindgren, 2016/04/16
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present, Eli Zaretskii, 2016/04/16
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present, John Wiegley, 2016/04/16
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present, Eli Zaretskii, 2016/04/16
- bug#23276: 25.0.92; Crash in auto-revert when file no longer present, John Wiegley, 2016/04/16