From: David M. Koppelman Date: Sun, 10 Oct 2021 17:27:29 +0000 (+0300) Subject: * lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly. X-Git-Tag: emacs-28.0.90~334 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=013e3be832;p=emacs.git * lisp/userlock.el (ask-user-about-supersession-threat): Accept 'y' strictly. (Bug#51101) --- 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))))