comparison lisp/files.el @ 112096:290ee662951b

* lisp/files.el (file-local-variables-alist): Make permanent-local.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 01 Jan 2011 22:57:26 -0500
parents 4bb97b6fa4d3
children 40af77a50adc fb129cb53476
comparison
equal deleted inserted replaced
112095:96d88ed18438 112096:290ee662951b
1 ;;; files.el --- file input and output commands for Emacs 1 ;;; files.el --- file input and output commands for Emacs
2 2
3 ;; Copyright (C) 1985, 1986, 1987, 1992, 1993, 1994, 1995, 1996, 3 ;; Copyright (C) 1985, 1986, 1987, 1992, 1993, 1994, 1995, 1996,
4 ;; 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 4 ;; 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
5 ;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 5 ;; 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
6 6
7 ;; Maintainer: FSF 7 ;; Maintainer: FSF
8 8
9 ;; This file is part of GNU Emacs. 9 ;; This file is part of GNU Emacs.
10 10
2786 Each element in this list has the form (VAR . VALUE), where VAR 2786 Each element in this list has the form (VAR . VALUE), where VAR
2787 is a file-local variable (a symbol) and VALUE is the value 2787 is a file-local variable (a symbol) and VALUE is the value
2788 specified. The actual value in the buffer may differ from VALUE, 2788 specified. The actual value in the buffer may differ from VALUE,
2789 if it is changed by the major or minor modes, or by the user.") 2789 if it is changed by the major or minor modes, or by the user.")
2790 (make-variable-buffer-local 'file-local-variables-alist) 2790 (make-variable-buffer-local 'file-local-variables-alist)
2791 (put 'file-local-variables-alist 'permanent-local t)
2791 2792
2792 (defvar dir-local-variables-alist nil 2793 (defvar dir-local-variables-alist nil
2793 "Alist of directory-local variable settings in the current buffer. 2794 "Alist of directory-local variable settings in the current buffer.
2794 Each element in this list has the form (VAR . VALUE), where VAR 2795 Each element in this list has the form (VAR . VALUE), where VAR
2795 is a directory-local variable (a symbol) and VALUE is the value 2796 is a directory-local variable (a symbol) and VALUE is the value