comparison lisp/files.el @ 70590:63b772bfba93

Move `safe-local-variable' declarations to the respective files.
author Reiner Steib <Reiner.Steib@gmx.de>
date Thu, 11 May 2006 15:01:41 +0000
parents b0678252450c
children 5bb74e9610d3
comparison
equal deleted inserted replaced
70589:d09c5cf66b5c 70590:63b772bfba93
160 "*Non-nil means visit a file under its truename. 160 "*Non-nil means visit a file under its truename.
161 The truename of a file is found by chasing all links 161 The truename of a file is found by chasing all links
162 both at the file level and at the levels of the containing directories." 162 both 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.
168 The value is a list of regular expressions. 169 The value is a list of regular expressions.
169 If the file name matches one of these regular expressions, 170 If the file name matches one of these regular expressions,
247 :type '(choice (const :tag "Never" never) 248 :type '(choice (const :tag "Never" never)
248 (const :tag "If existing" nil) 249 (const :tag "If existing" nil)
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."
255 :type 'integer 257 :type 'integer
256 :group 'backup 258 :group 'backup
266 268
267 (defcustom kept-old-versions 2 269 (defcustom kept-old-versions 2
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.
274 Includes the new backup. Must be > 0" 277 Includes 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.
280 284
281 A value of t means do this only when the file is about to be saved. 285 A value of t means do this only when the file is about to be saved.
2349 ;; For variables defined in the C source code the declaration should go here: 2353 ;; For variables defined in the C source code the declaration should go here:
2350 2354
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
2378 (defun hack-local-variables-confirm (vars unsafe-vars risky-vars) 2367 (defun hack-local-variables-confirm (vars unsafe-vars risky-vars)
2379 (if noninteractive 2368 (if noninteractive