mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix failures in recent files tests
* 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.
This commit is contained in:
parent
a0023661a4
commit
efe30626e6
1 changed files with 2 additions and 2 deletions
|
|
@ -1749,7 +1749,7 @@ PRED is nil."
|
|||
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 ()
|
||||
|
|
@ -1766,7 +1766,7 @@ Prompt users for any modified buffer with `buffer-offer-save' non-nil."
|
|||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue