comparison 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
comparison
equal deleted inserted replaced
44350:89727a7321d0 44351:974edbcc8ecd
1992 (make-local-variable var) 1992 (make-local-variable var)
1993 (set var val)) 1993 (set var val))
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
2000 (defcustom change-major-mode-with-file-name t 2005 (defcustom change-major-mode-with-file-name t
2001 "*Non-nil means \\[write-file] should set the major mode from the file name. 2006 "*Non-nil means \\[write-file] should set the major mode from the file name.