]> git.eshelyaron.com Git - emacs.git/commitdiff
Evaluate file-local variables in tutorials.
authorEli Zaretskii <eliz@gnu.org>
Sat, 7 Aug 2010 09:31:03 +0000 (12:31 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 7 Aug 2010 09:31:03 +0000 (12:31 +0300)
 tutorial.el (help-with-tutorial): Hack safe file-local variables
 after reading the tutorial.

lisp/ChangeLog
lisp/tutorial.el

index 2cfe12d00190d7485cf6f1a5442f1de56fa2cbd1..3dd552bb927cb5a6ac430e6370404119c7f8bb27 100644 (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
index 0ac315ac6dc486f484434b47635f216af04db2ab..bab943968f84fc44f67b1203da9bee59348f3233 100644 (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)))