diff options
author | Eli Zaretskii <eliz@gnu.org> | 2010-08-07 12:31:03 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2010-08-07 12:31:03 +0300 |
commit | 822775bf513e1e4be07ef36f0220bf3b89c9ed76 (patch) | |
tree | 5176215b5ddf4d2e6e0e09cc7e372d0674ab1854 /lisp/tutorial.el | |
parent | 0e9c8657ca938bd3cdb90824873dff539801fdbe (diff) | |
download | emacs-822775bf513e1e4be07ef36f0220bf3b89c9ed76.tar.gz emacs-822775bf513e1e4be07ef36f0220bf3b89c9ed76.tar.bz2 emacs-822775bf513e1e4be07ef36f0220bf3b89c9ed76.zip |
Evaluate file-local variables in tutorials.
tutorial.el (help-with-tutorial): Hack safe file-local variables
after reading the tutorial.
Diffstat (limited to 'lisp/tutorial.el')
-rw-r--r-- | lisp/tutorial.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/tutorial.el b/lisp/tutorial.el index 0ac315ac6dc..bab943968f8 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el @@ -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))) |