aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-04-02 23:14:41 +0000
committerRichard M. Stallman2002-04-02 23:14:41 +0000
commit87a6a5d8d4ca5c5dcd8c9c11fc279dfd61c62f0f (patch)
tree8828f43a7f5e5f99ba5b9be34b7cf16c07331e0b
parent61dbb58ba6cc24be6ce1cf4ea8faf0d44c98fec7 (diff)
downloademacs-87a6a5d8d4ca5c5dcd8c9c11fc279dfd61c62f0f.tar.gz
emacs-87a6a5d8d4ca5c5dcd8c9c11fc279dfd61c62f0f.zip
(hack-one-local-variable): Clear text props from string value.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/files.el5
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b5cc06f5f66..75cd7982716 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-04-02 Richard M. Stallman <rms@gnu.org>
2
3 * files.el (hack-one-local-variable):
4 Clear text props from string value.
5
12002-04-02 Mike Williams <mdub@bigfoot.com> 62002-04-02 Mike Williams <mdub@bigfoot.com>
2 7
3 * textmodes/sgml-mode.el (sgml-close-tag): Rename from 8 * textmodes/sgml-mode.el (sgml-close-tag): Rename from
diff --git a/lisp/files.el b/lisp/files.el
index 0c9a3947b8c..8516212cdd7 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1994,6 +1994,11 @@ is considered risky."
1994 (message "Ignoring `eval:' in the local variables list"))) 1994 (message "Ignoring `eval:' in the local variables list")))
1995 ;; Ordinary variable, really set it. 1995 ;; Ordinary variable, really set it.
1996 (t (make-local-variable var) 1996 (t (make-local-variable var)
1997 ;; Make sure the string has no text properties.
1998 ;; Some text properties can get evaluated in various ways,
1999 ;; so it is risky to put them on with a local variable list.
2000 (if (stringp val)
2001 (set-text-properties 0 (length val) nil val))
1997 (set var val)))) 2002 (set var val))))
1998 2003
1999 2004