Commit 822775bf authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Evaluate file-local variables in tutorials.

 tutorial.el (help-with-tutorial): Hack safe file-local variables
 after reading the tutorial.
parent 0e9c8657
2010-08-07 Eli Zaretskii <eliz@gnu.org>
* tutorial.el (help-with-tutorial): Hack safe file-local variables
after reading the tutorial.
2010-08-06 Alan Mackenzie <bug-cc-mode@gnu.org>
 
* progmodes/cc-cmds.el (c-mask-paragraph, c-fill-paragraph): Fix
......
......@@ -829,6 +829,8 @@ Run the Viper tutorial? "))
(if old-tut-file
(progn
(insert-file-contents (tutorial--saved-file))
(let ((enable-local-variables :safe))
(hack-local-variables))
(goto-char (point-min))
(setq old-tut-point
(string-to-number
......@@ -844,6 +846,8 @@ Run the Viper tutorial? "))
(goto-char tutorial--point-before-chkeys)
(setq tutorial--point-before-chkeys (point-marker)))
(insert-file-contents (expand-file-name filename tutorial-directory))
(let ((enable-local-variables :safe))
(hack-local-variables))
(forward-line)
(setq tutorial--point-before-chkeys (point-marker)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment