Mercurial > emacs
diff lisp/tutorial.el @ 109674:cef075b11b25
Evaluate file-local variables in tutorials.
tutorial.el (help-with-tutorial): Hack safe file-local variables
after reading the tutorial.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 07 Aug 2010 12:31:03 +0300 |
parents | de5ba6f3514c |
children | 028db67bd5dd |
line wrap: on
line diff
--- a/lisp/tutorial.el Sat Aug 07 03:10:12 2010 +0200 +++ b/lisp/tutorial.el Sat Aug 07 12:31:03 2010 +0300 @@ -829,6 +829,8 @@ (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 @@ (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)))