[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18336: 24.4.50; When editing externally changed file, Emacs asks too
From: |
Noam Postavsky |
Subject: |
bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions |
Date: |
Thu, 05 Mar 2020 12:54:41 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) |
David Kastrup <dak@gnu.org> writes:
> Sorry for the red herring. It was the thing that occured to me first.
No need to apologize, it was a reasonable guess. And anyway it led to
the right answer in the end.
Eli Zaretskii <eliz@gnu.org> writes:
>> What happens in the ~/tmp case is that when lock_file is called from
>> write_region, the file doesn't exist, so the extra "changed on disk"
>> question doesn't get asked.
> Thanks. Any suggestions for how to fix this? A new argument to
> lock_file, perhaps? Or maybe some additional check in
> userlock--ask-user-about-supersession-threat to recognize the special
> situation where we are saving a file?
I'm not sure. Why exactly are we calling lock_file from write_region?
The comment for lock_file says:
Do not (normally) call this for a buffer already modified,
as either the file is already locked, or the user has already
decided to go ahead without locking.
It seems we are doing exactly this, so I guess that makes
save-buffer/write-region an "abnormal" situation?
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, (continued)
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/02
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Stefan Kangas, 2020/03/02
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/02
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Stefan Kangas, 2020/03/02
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/02
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, David Kastrup, 2020/03/02
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Noam Postavsky, 2020/03/02
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/02
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Noam Postavsky, 2020/03/05
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, David Kastrup, 2020/03/05
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions,
Noam Postavsky <=
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/05
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Noam Postavsky, 2020/03/21
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/22
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Noam Postavsky, 2020/03/22
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/22
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Noam Postavsky, 2020/03/22
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/22
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Noam Postavsky, 2020/03/22
- bug#18336: 24.4.50; When editing externally changed file, Emacs asks too many questions, Eli Zaretskii, 2020/03/05