]> git.eshelyaron.com Git - emacs.git/commit
ert-x: Improve realism of `ert-with-test-buffer-selected'
authorRichard Hansen <rhansen@rhansen.org>
Mon, 26 Sep 2022 21:07:52 +0000 (17:07 -0400)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 27 Sep 2022 11:43:53 +0000 (13:43 +0200)
commit29b7d740006fe2190a729bd1c30ccab9356cee36
tree272667e5989434987394ea5ede945d71af536f44
parent0b1e3713fea9b7c28891ec094689f40c0dc996c4
ert-x: Improve realism of `ert-with-test-buffer-selected'

* lisp/emacs-lisp/ert-x.el (ert-with-test-buffer-selected): Set
`inhibit-read-only' and `buffer-read-only' to nil when executing the
body to provide a more realistic test environment.
lisp/emacs-lisp/ert-x.el