[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108099: * test/automated/files.el
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108099: * test/automated/files.el (files-test-disable-local-variables): New test. |
Date: |
Fri, 10 Aug 2012 00:13:06 -0700 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 108099
committer: Glenn Morris <address@hidden>
branch nick: emacs-24
timestamp: Fri 2012-08-10 00:13:06 -0700
message:
* test/automated/files.el (files-test-disable-local-variables): New test.
modified:
test/ChangeLog
test/automated/files.el
=== modified file 'test/ChangeLog'
--- a/test/ChangeLog 2012-08-08 07:33:10 +0000
+++ b/test/ChangeLog 2012-08-10 07:13:06 +0000
@@ -1,3 +1,7 @@
+2012-08-10 Glenn Morris <address@hidden>
+
+ * automated/files.el (files-test-disable-local-variables): New test.
+
2012-08-08 Glenn Morris <address@hidden>
* automated/files.el: New file.
=== modified file 'test/automated/files.el'
--- a/test/automated/files.el 2012-08-08 07:33:10 +0000
+++ b/test/automated/files.el 2012-08-10 07:13:06 +0000
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108099: * test/automated/files.el (files-test-disable-local-variables): New test.,
Glenn Morris <=