From 711f4590cddbc83c509c1c5e852ef4e528a39780 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 10 Aug 2012 00:13:06 -0700 Subject: [PATCH] * test/automated/files.el (files-test-disable-local-variables): New test. --- test/ChangeLog | 4 ++++ test/automated/files.el | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/test/ChangeLog b/test/ChangeLog index d330311e1d3..b4195ea7d58 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,7 @@ +2012-08-10 Glenn Morris + + * automated/files.el (files-test-disable-local-variables): New test. + 2012-08-08 Glenn Morris * automated/files.el: New file. diff --git a/test/automated/files.el b/test/automated/files.el index 43287ec0ed3..e43d8c32f85 100644 --- a/test/automated/files.el +++ b/test/automated/files.el @@ -38,4 +38,15 @@ (hack-local-variables) (should (eq files-test-var1 nil))))) +(ert-deftest files-test-disable-local-variables () + "Test that setting enable-local-variables to nil works." + (with-temp-buffer + (insert "text\n" + ";; Local Variables:\n" + ";; files-test-var1: t\n" + ";; End:\n") + (let ((enable-local-variables nil)) + (hack-local-variables) + (should (eq files-test-var1 nil))))) + ;;; files.el ends here -- 2.39.5