* test/lisp/files-tests.el (files-tests-buffer-offer-save)
(files-tests-save-buffers-kill-emacs--asks-to-save-buffers):
`read-event' is called with arguments.
buffers-offer
save-some-buffers
;; Increase counter and answer 'n' when prompted to save a buffer.
- (('read-event . (lambda () (cl-incf nb-saved-buffers) ?n)))
+ (('read-event . (lambda (&rest _) (cl-incf nb-saved-buffers) ?n)))
args-res)))))))
(ert-deftest files-tests-save-buffers-kill-emacs--asks-to-save-buffers ()
buffers-offer
save-buffers-kill-emacs
;; Increase counter and answer 'n' when prompted to save a buffer.
- (('read-event . (lambda () (cl-incf nb-saved-buffers) ?n))
+ (('read-event . (lambda (&rest _) (cl-incf nb-saved-buffers) ?n))
('kill-emacs . #'ignore)) ; Do not kill Emacs.
`((nil nil ,nb-might-save)
;; `save-some-buffers-default-predicate' (i.e. the 2nd element) is ignored.