(hack-one-local-variable): Clear text props from string value.

This commit is contained in:
Richard M. Stallman
2002-04-02 23:14:41 +00:00
parent 61dbb58ba6
commit 87a6a5d8d4
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2002-04-02 Richard M. Stallman <rms@gnu.org>
* files.el (hack-one-local-variable):
Clear text props from string value.
2002-04-02 Mike Williams <mdub@bigfoot.com>
* textmodes/sgml-mode.el (sgml-close-tag): Rename from

View File

@@ -1994,6 +1994,11 @@ is considered risky."
(message "Ignoring `eval:' in the local variables list")))
;; Ordinary variable, really set it.
(t (make-local-variable var)
;; Make sure the string has no text properties.
;; Some text properties can get evaluated in various ways,
;; so it is risky to put them on with a local variable list.
(if (stringp val)
(set-text-properties 0 (length val) nil val))
(set var val))))