changeset 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 0781924c2a38
children 1b5e924eb718
files lisp/ChangeLog lisp/tutorial.el
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Aug 07 03:10:12 2010 +0200
+++ b/lisp/ChangeLog	Sat Aug 07 12:31:03 2010 +0300
@@ -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
--- 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)))