diff options
| author | Glenn Morris <rgm@gnu.org> | 2012-08-10 00:13:06 -0700 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2012-08-10 00:13:06 -0700 |
| commit | 711f4590cddbc83c509c1c5e852ef4e528a39780 (patch) | |
| tree | 0bbe165bf051603ba3a8c300d97125b9e3853c2a | |
| parent | 23c726f65afecf33df75e5c62d5d930e0d672f01 (diff) | |
| download | emacs-711f4590cddbc83c509c1c5e852ef4e528a39780.tar.gz | |
* test/automated/files.el (files-test-disable-local-variables): New test.
| -rw-r--r-- | test/ChangeLog | 4 | ||||
| -rw-r--r-- | test/automated/files.el | 11 |
2 files changed, 15 insertions, 0 deletions
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 <rgm@gnu.org> + + * automated/files.el (files-test-disable-local-variables): New test. + 2012-08-08 Glenn Morris <rgm@gnu.org> * 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 |
