aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lisp/files-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index e085d052e1c..5e2c4eb2669 100644
--- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -1973,7 +1973,7 @@ FN-TEST is the function to test: either `save-some-buffers' or
1973`save-some-buffers-default-predicate' let-bound to a value 1973`save-some-buffers-default-predicate' let-bound to a value
1974specified inside ARGS-RESULTS. 1974specified inside ARGS-RESULTS.
1975 1975
1976During the call to FN-TEST,`read-event' is overridden with a function that 1976During the call to FN-TEST,`read-key' is overridden with a function that
1977just returns `n' and `kill-emacs' is overridden to do nothing. 1977just returns `n' and `kill-emacs' is overridden to do nothing.
1978 1978
1979ARGS-RESULTS is a list of elements (FN-ARGS CALLERS-DIR EXPECTED), where 1979ARGS-RESULTS is a list of elements (FN-ARGS CALLERS-DIR EXPECTED), where
@@ -2004,7 +2004,7 @@ CALLERS-DIR specifies the value to let-bind
2004 (setq nb-saved-buffers 0) 2004 (setq nb-saved-buffers 0)
2005 (with-current-buffer (car buffers) 2005 (with-current-buffer (car buffers)
2006 (cl-letf 2006 (cl-letf
2007 (((symbol-function 'read-event) 2007 (((symbol-function 'read-key)
2008 ;; Increase counter and answer 'n' when prompted 2008 ;; Increase counter and answer 'n' when prompted
2009 ;; to save a buffer. 2009 ;; to save a buffer.
2010 (lambda (&rest _) (cl-incf nb-saved-buffers) ?n)) 2010 (lambda (&rest _) (cl-incf nb-saved-buffers) ?n))