Mercurial > emacs
diff lisp/files.el @ 44351:974edbcc8ecd
(hack-one-local-variable): Clear text props from string value.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 02 Apr 2002 23:14:26 +0000 |
parents | 7f0854961eb4 |
children | b31ff653a546 |
line wrap: on
line diff
--- a/lisp/files.el Tue Apr 02 22:32:15 2002 +0000 +++ b/lisp/files.el Tue Apr 02 23:14:26 2002 +0000 @@ -1994,6 +1994,11 @@ (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))))