aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReiner Steib2006-05-11 15:01:41 +0000
committerReiner Steib2006-05-11 15:01:41 +0000
commit631c8020a58e69a7ba0bea8701278df57dafa315 (patch)
tree0f89307b70645874db03037f70739336c2dba3ad
parent53af865dd1bed633a63b951a4e2918311125fb2c (diff)
downloademacs-631c8020a58e69a7ba0bea8701278df57dafa315.tar.gz
emacs-631c8020a58e69a7ba0bea8701278df57dafa315.zip
Move `safe-local-variable' declarations to the respective files.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/bytecomp.el4
-rw-r--r--lisp/files.el25
-rw-r--r--lisp/newcomment.el1
-rw-r--r--lisp/outline.el1
-rw-r--r--lisp/progmodes/cc-compat.el2
-rw-r--r--lisp/progmodes/cc-vars.el2
-rw-r--r--lisp/progmodes/compile.el1
-rw-r--r--lisp/simple.el1
9 files changed, 24 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3b7c47339ca..a957dd12fba 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12006-05-11 Reiner Steib <Reiner.Steib@gmx.de> 12006-05-11 Reiner Steib <Reiner.Steib@gmx.de>
2 2
3 * files.el, newcomment.el, outline.el, simple.el,
4 emacs-lisp/bytecomp.el, progmodes/cc-compat.el,
5 progmodes/cc-vars.el, progmodes/compile.el: Move
6 `safe-local-variable' declarations to the respective files.
7
3 * help-fns.el (describe-variable): Don't print safe-var if it is 8 * help-fns.el (describe-variable): Don't print safe-var if it is
4 byte-code. Improve wording as suggested by Luc Teirlinck 9 byte-code. Improve wording as suggested by Luc Teirlinck
5 <teirllm@auburn.edu>. 10 <teirllm@auburn.edu>.
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index da284e94548..01f9373af68 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -293,6 +293,7 @@ For example, add -*-byte-compile-dynamic: t;-*- on the first line.
293 293
294When this option is true, if you load the compiled file and then move it, 294When this option is true, if you load the compiled file and then move it,
295the functions you loaded will not be able to run.") 295the functions you loaded will not be able to run.")
296;;;###autoload(put 'byte-compile-dynamic 'safe-local-variable 'booleanp)
296 297
297(defcustom byte-compile-dynamic-docstrings t 298(defcustom byte-compile-dynamic-docstrings t
298 "*If non-nil, compile doc strings for lazy access. 299 "*If non-nil, compile doc strings for lazy access.
@@ -311,6 +312,7 @@ You can also set the variable globally.
311This option is enabled by default because it reduces Emacs memory usage." 312This option is enabled by default because it reduces Emacs memory usage."
312 :group 'bytecomp 313 :group 'bytecomp
313 :type 'boolean) 314 :type 'boolean)
315;;;###autoload(put 'byte-compile-dynamic-docstrings 'safe-local-variable 'booleanp)
314 316
315(defcustom byte-optimize-log nil 317(defcustom byte-optimize-log nil
316 "*If true, the byte-compiler will log its optimizations into *Compile-Log*. 318 "*If true, the byte-compiler will log its optimizations into *Compile-Log*.
@@ -355,6 +357,7 @@ Elements of the list may be be:
355 (const callargs) (const redefine) 357 (const callargs) (const redefine)
356 (const obsolete) (const noruntime) 358 (const obsolete) (const noruntime)
357 (const cl-functions) (const interactive-only)))) 359 (const cl-functions) (const interactive-only))))
360;;;###autoload(put 'byte-compile-warnings 'safe-local-variable 'booleanp)
358 361
359(defvar byte-compile-interactive-only-functions 362(defvar byte-compile-interactive-only-functions
360 '(beginning-of-buffer end-of-buffer replace-string replace-regexp 363 '(beginning-of-buffer end-of-buffer replace-string replace-regexp
@@ -1589,6 +1592,7 @@ recompile every `.el' file that already has a `.elc' file."
1589This is normally set in local file variables at the end of the elisp file: 1592This is normally set in local file variables at the end of the elisp file:
1590 1593
1591;; Local Variables:\n;; no-byte-compile: t\n;; End: ") 1594;; Local Variables:\n;; no-byte-compile: t\n;; End: ")
1595;;;###autoload(put 'no-byte-compile 'safe-local-variable 'booleanp)
1592 1596
1593;;;###autoload 1597;;;###autoload
1594(defun byte-compile-file (filename &optional load) 1598(defun byte-compile-file (filename &optional load)
diff --git a/lisp/files.el b/lisp/files.el
index 29cd3038500..ffd09c7bfbc 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -162,6 +162,7 @@ The truename of a file is found by chasing all links
162both at the file level and at the levels of the containing directories." 162both at the file level and at the levels of the containing directories."
163 :type 'boolean 163 :type 'boolean
164 :group 'find-file) 164 :group 'find-file)
165(put 'find-file-visit-truename 'safe-local-variable 'boolean)
165 166
166(defcustom revert-without-query nil 167(defcustom revert-without-query nil
167 "*Specify which files should be reverted without query. 168 "*Specify which files should be reverted without query.
@@ -249,6 +250,7 @@ nil means make them for files that have some already.
249 (other :tag "Always" t)) 250 (other :tag "Always" t))
250 :group 'backup 251 :group 'backup
251 :group 'vc) 252 :group 'vc)
253(put 'version-control 'safe-local-variable 'symbolp)
252 254
253(defcustom dired-kept-versions 2 255(defcustom dired-kept-versions 2
254 "*When cleaning directory, number of versions to keep." 256 "*When cleaning directory, number of versions to keep."
@@ -268,12 +270,14 @@ If nil, ask confirmation. Any other value prevents any trimming."
268 "*Number of oldest versions to keep when a new numbered backup is made." 270 "*Number of oldest versions to keep when a new numbered backup is made."
269 :type 'integer 271 :type 'integer
270 :group 'backup) 272 :group 'backup)
273(put 'kept-old-versions 'safe-local-variable 'integerp)
271 274
272(defcustom kept-new-versions 2 275(defcustom kept-new-versions 2
273 "*Number of newest versions to keep when a new numbered backup is made. 276 "*Number of newest versions to keep when a new numbered backup is made.
274Includes the new backup. Must be > 0" 277Includes the new backup. Must be > 0"
275 :type 'integer 278 :type 'integer
276 :group 'backup) 279 :group 'backup)
280(put 'kept-new-versions 'safe-local-variable 'integerp)
277 281
278(defcustom require-final-newline nil 282(defcustom require-final-newline nil
279 "*Whether to add a newline automatically at the end of the file. 283 "*Whether to add a newline automatically at the end of the file.
@@ -2351,27 +2355,12 @@ asking you for confirmation."
2351;; FIXME: Some variables should be moved according to the rules above. 2355;; FIXME: Some variables should be moved according to the rules above.
2352(mapc (lambda (pair) 2356(mapc (lambda (pair)
2353 (put (car pair) 'safe-local-variable (cdr pair))) 2357 (put (car pair) 'safe-local-variable (cdr pair)))
2354 '((byte-compile-dynamic . booleanp) 2358 '((fill-column . integerp) ;; C source code
2355 (byte-compile-dynamic-docstrings . booleanp)
2356 (byte-compile-warnings . booleanp)
2357 (c-basic-offset . integerp)
2358 (c-file-style . stringp)
2359 (c-indent-level . integerp)
2360 (comment-column . integerp)
2361 (compile-command . string-or-null-p)
2362 (find-file-visit-truename . booleanp)
2363 (fill-column . integerp)
2364 (fill-prefix . string-or-null-p)
2365 (indent-tabs-mode . booleanp) ;; C source code 2359 (indent-tabs-mode . booleanp) ;; C source code
2366 (kept-old-versions . integerp) 2360 (left-margin . integerp) ;; C source code
2367 (kept-new-versions . integerp)
2368 (left-margin . integerp)
2369 (no-byte-compile . booleanp)
2370 (no-update-autoloads . booleanp) 2361 (no-update-autoloads . booleanp)
2371 (outline-regexp . string-or-null-p)
2372 (tab-width . integerp) ;; C source code 2362 (tab-width . integerp) ;; C source code
2373 (truncate-lines . booleanp) ;; C source code 2363 (truncate-lines . booleanp));; C source code
2374 (version-control . symbolp)))
2375 2364
2376(put 'c-set-style 'safe-local-eval-function t) 2365(put 'c-set-style 'safe-local-eval-function t)
2377 2366
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index d5a2cea914a..5dfa1eb8959 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -104,6 +104,7 @@ not to go beyond `comment-fill-column'."
104 :type 'integer 104 :type 'integer
105 :group 'comment) 105 :group 'comment)
106(make-variable-buffer-local 'comment-column) 106(make-variable-buffer-local 'comment-column)
107;;;###autoload(put 'comment-column 'safe-local-variable 'integerp)
107 108
108;;;###autoload 109;;;###autoload
109(defvar comment-start nil 110(defvar comment-start nil
diff --git a/lisp/outline.el b/lisp/outline.el
index 92542bae7e3..0cd6eaa7186 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -54,6 +54,7 @@ The recommended way to set this is with a Local Variables: list
54in the file it applies to. See also `outline-heading-end-regexp'." 54in the file it applies to. See also `outline-heading-end-regexp'."
55 :type '(choice regexp (const nil)) 55 :type '(choice regexp (const nil))
56 :group 'outlines) 56 :group 'outlines)
57;;;###autoload(put 'outline-regexp 'safe-local-variable 'string-or-null-p)
57 58
58(defcustom outline-heading-end-regexp "\n" 59(defcustom outline-heading-end-regexp "\n"
59 "Regular expression to match the end of a heading line. 60 "Regular expression to match the end of a heading line.
diff --git a/lisp/progmodes/cc-compat.el b/lisp/progmodes/cc-compat.el
index 59cd5232402..d08c9fc0162 100644
--- a/lisp/progmodes/cc-compat.el
+++ b/lisp/progmodes/cc-compat.el
@@ -62,6 +62,8 @@
62;; In case c-mode.el isn't loaded 62;; In case c-mode.el isn't loaded
63(defvar c-indent-level 2 63(defvar c-indent-level 2
64 "*Indentation of C statements with respect to containing block.") 64 "*Indentation of C statements with respect to containing block.")
65;;;###autoload(put 'c-indent-level 'safe-local-variable 'integerp)
66
65(defvar c-brace-imaginary-offset 0 67(defvar c-brace-imaginary-offset 0
66 "*Imagined indentation of a C open brace that actually follows a statement.") 68 "*Imagined indentation of a C open brace that actually follows a statement.")
67(defvar c-brace-offset 0 69(defvar c-brace-offset 0
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index ee187408701..64e38be62d0 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -248,6 +248,7 @@ Also used as the indentation step when `c-syntactic-indentation' is
248nil." 248nil."
249 :type 'integer 249 :type 'integer
250 :group 'c) 250 :group 'c)
251;;;###autoload(put 'c-basic-offset 'safe-local-variable 'integerp)
251 252
252(defcustom c-tab-always-indent t 253(defcustom c-tab-always-indent t
253 "*Controls the operation of the TAB key. 254 "*Controls the operation of the TAB key.
@@ -1542,6 +1543,7 @@ will set the style of the file to this value automatically.
1542Note that file style settings are applied before file offset settings 1543Note that file style settings are applied before file offset settings
1543as designated in the variable `c-file-offsets'.") 1544as designated in the variable `c-file-offsets'.")
1544(make-variable-buffer-local 'c-file-style) 1545(make-variable-buffer-local 'c-file-style)
1546;;;###autoload(put 'c-file-style 'safe-local-variable 'string-or-null-p)
1545 1547
1546(defvar c-file-offsets nil 1548(defvar c-file-offsets nil
1547 "Variable interface for setting offsets via File Local Variables. 1549 "Variable interface for setting offsets via File Local Variables.
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 2fa3ee0ff15..527624bfc4e 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -453,6 +453,7 @@ You might also use mode hooks to specify it in certain modes, like this:
453 (file-name-sans-extension buffer-file-name))))))" 453 (file-name-sans-extension buffer-file-name))))))"
454 :type 'string 454 :type 'string
455 :group 'compilation) 455 :group 'compilation)
456;;;###autoload(put 'compile-command 'safe-local-variable 'stringp)
456 457
457;;;###autoload 458;;;###autoload
458(defcustom compilation-disable-input nil 459(defcustom compilation-disable-input nil
diff --git a/lisp/simple.el b/lisp/simple.el
index 6d3fc8a5484..9285d124db4 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4058,6 +4058,7 @@ If optional arg REALLY-WORD is non-nil, it finds just a word."
4058 string) 4058 string)
4059 :group 'fill) 4059 :group 'fill)
4060(make-variable-buffer-local 'fill-prefix) 4060(make-variable-buffer-local 'fill-prefix)
4061;;;###autoload(put 'fill-prefix 'safe-local-variable 'string-or-null-p)
4061 4062
4062(defcustom auto-fill-inhibit-regexp nil 4063(defcustom auto-fill-inhibit-regexp nil
4063 "*Regexp to match lines which should not be auto-filled." 4064 "*Regexp to match lines which should not be auto-filled."