From 013e3be8327ee090cef101121dd8f10e992e7958 Mon Sep 17 00:00:00 2001 From: "David M. Koppelman" Date: Sun, 10 Oct 2021 20:27:29 +0300 Subject: [PATCH] * lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly. (Bug#51101) --- lisp/userlock.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/userlock.el b/lisp/userlock.el index 87a8b7b4519..348ccc6f8ec 100644 --- a/lisp/userlock.el +++ b/lisp/userlock.el @@ -194,7 +194,9 @@ really edit the buffer? (%s, %s, %s or %s) " (list "File reverted" filename))) ((eq answer ?n) (signal 'file-supersession - (list "File changed on disk" filename))))) + (list "File changed on disk" filename))) + ((eq answer ?y)) + (t (setq answer nil)))) (message "File on disk now will become a backup file if you save these changes.") (setq buffer-backed-up nil)))) -- 2.39.2