Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
711f4590
Commit
711f4590
authored
Aug 10, 2012
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* test/automated/files.el (files-test-disable-local-variables): New test.
parent
23c726f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
test/ChangeLog
test/ChangeLog
+4
-0
test/automated/files.el
test/automated/files.el
+11
-0
No files found.
test/ChangeLog
View file @
711f4590
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.
...
...
test/automated/files.el
View file @
711f4590
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment