Evaluate file-local variables in tutorials.

tutorial.el (help-with-tutorial): Hack safe file-local variables
 after reading the tutorial.
This commit is contained in:
Eli Zaretskii 2010-08-07 12:31:03 +03:00
parent 0e9c8657ca
commit 822775bf51
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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)))