]> git.eshelyaron.com Git - emacs.git/commitdiff
Add test for recent buffer-local-variables change
authorGlenn Morris <rgm@gnu.org>
Mon, 18 May 2020 20:08:27 +0000 (13:08 -0700)
committerGlenn Morris <rgm@gnu.org>
Mon, 18 May 2020 20:08:27 +0000 (13:08 -0700)
* test/src/buffer-tests.el (buffer-tests-buffer-local-variables-undo):
New.

test/src/buffer-tests.el

index 6e87cb94897c1f4bc2299414922ce7d6ca322481..6e9764625a97c0f96b88cae4ccb591191bc199fa 100644 (file)
@@ -1327,4 +1327,10 @@ with parameters from the *Messages* buffer modification."
           (set-buffer-multibyte t)
           (buffer-string)))))))
 
+;; https://debbugs.gnu.org/33492
+(ert-deftest buffer-tests-buffer-local-variables-undo ()
+  "Test that `buffer-undo-list' appears in `buffer-local-variables'."
+  (with-temp-buffer
+    (should (assq 'buffer-undo-list (buffer-local-variables)))))
+
 ;;; buffer-tests.el ends here