[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/doc/emacs custom.texi
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] emacs/doc/emacs custom.texi |
Date: |
Sat, 22 Nov 2008 19:07:45 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juri Linkov <jurta> 08/11/22 19:07:45
Modified files:
doc/emacs : custom.texi
Log message:
(Directory Variables): Rename ".dir-settings.el" to
".dir-locals.el". Rename `define-project-bindings' to
`dir-locals-set-class-variables'. Rename `set-directory-project' to
`dir-locals-set-directory-class'.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/emacs/custom.texi?cvsroot=emacs&r1=1.16&r2=1.17
Patches:
Index: custom.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/emacs/custom.texi,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- custom.texi 17 Nov 2008 23:09:04 -0000 1.16
+++ custom.texi 22 Nov 2008 19:07:44 -0000 1.17
@@ -1269,10 +1269,10 @@
This can be done one of two ways.
The first approach is to put a special file, named
address@hidden, in a directory. When opening a file, Emacs
-searches for @file{.dir-settings.el} starting in the file's directory
address@hidden, in a directory. When opening a file, Emacs
+searches for @file{.dir-locals.el} starting in the file's directory
and then moving up the directory hierarchy. If
address@hidden is found, Emacs applies variable settings from
address@hidden is found, Emacs applies variable settings from
the file to the new buffer. If the file is remote, Emacs skips this
search, because it would be too slow.
@@ -1300,20 +1300,21 @@
file name for any file in the project that appears beneath the
directory @file{src/imported}.
- The second approach to directory-local settings is to explicitly
-define a project class using @code{define-project-bindings}, and then
+ The second approach to directory-local variables is to explicitly
+define a project class using @code{dir-locals-set-class-variables}, and then
to tell Emacs which directory roots correspond to that class, using
address@hidden You can put calls to these functions in
address@hidden You can put calls to these functions in
your @file{.emacs}; this can be useful when you can't put
address@hidden in the directory for some reason. For
address@hidden in the directory for some reason. For
example, you could apply settings to an unwriteable directory this
way:
@example
-(define-project-bindings 'unwriteable-directory
+(dir-locals-set-class-variables 'unwriteable-directory
'((nil . ((some-useful-setting . value)))))
-(set-directory-project "/usr/include/" 'unwriteable-directory)
+(dir-locals-set-directory-class
+ "/usr/include/" 'unwriteable-directory)
@end example
Unsafe directory-local variables are handled in the same way as
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs/doc/emacs custom.texi,
Juri Linkov <=