comparison lisp/files.el @ 83516:1321f6cfb389

Merged from emacs@sv.gnu.org Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-266 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-267 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-268 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-269 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-270 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-271 Rename "field-at-point" to "field-at-pos" * emacs@sv.gnu.org/emacs--devo--0--patch-272 (comint-insert-input): Remove redundant calls to setq and goto-char git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-556
author Karoly Lorentey <lorentey@elte.hu>
date Wed, 10 May 2006 15:04:01 +0000
parents d9f8d2a65d18 b0678252450c
children b6689e223e2f
comparison
equal deleted inserted replaced
83515:f7a396df2380 83516:1321f6cfb389
2348 ;; minor mode file may not be loaded yet. 2348 ;; minor mode file may not be loaded yet.
2349 ;; 2349 ;;
2350 ;; For variables defined in the C source code the declaration should go here: 2350 ;; For variables defined in the C source code the declaration should go here:
2351 2351
2352 ;; FIXME: Some variables should be moved according to the rules above. 2352 ;; FIXME: Some variables should be moved according to the rules above.
2353 (let ((string-or-null (lambda (a) (or (stringp a) (null a))))) 2353 (mapc (lambda (pair)
2354 (eval 2354 (put (car pair) 'safe-local-variable (cdr pair)))
2355 `(mapc (lambda (pair) 2355 '((byte-compile-dynamic . booleanp)
2356 (put (car pair) 'safe-local-variable (cdr pair))) 2356 (byte-compile-dynamic-docstrings . booleanp)
2357 '((byte-compile-dynamic . booleanp) 2357 (byte-compile-warnings . booleanp)
2358 (byte-compile-dynamic-docstrings . booleanp) 2358 (c-basic-offset . integerp)
2359 (byte-compile-warnings . booleanp) 2359 (c-file-style . stringp)
2360 (c-basic-offset . integerp) 2360 (c-indent-level . integerp)
2361 (c-file-style . stringp) 2361 (comment-column . integerp)
2362 (c-indent-level . integerp) 2362 (compile-command . string-or-null-p)
2363 (comment-column . integerp) 2363 (find-file-visit-truename . booleanp)
2364 (compile-command . string-or-null-p) 2364 (fill-column . integerp)
2365 (find-file-visit-truename . booleanp) 2365 (fill-prefix . string-or-null-p)
2366 (fill-column . integerp) 2366 (indent-tabs-mode . booleanp) ;; C source code
2367 (fill-prefix . string-or-null-p) 2367 (kept-old-versions . integerp)
2368 (indent-tabs-mode . booleanp) ;; C source code 2368 (kept-new-versions . integerp)
2369 (kept-old-versions . integerp) 2369 (left-margin . integerp)
2370 (kept-new-versions . integerp) 2370 (no-byte-compile . booleanp)
2371 (left-margin . integerp) 2371 (no-update-autoloads . booleanp)
2372 (no-byte-compile . booleanp) 2372 (outline-regexp . string-or-null-p)
2373 (no-update-autoloads . booleanp) 2373 (tab-width . integerp) ;; C source code
2374 (outline-regexp . string-or-null-p) 2374 (truncate-lines . booleanp) ;; C source code
2375 (tab-width . integerp) ;; C source code 2375 (version-control . symbolp)))
2376 (truncate-lines . booleanp) ;; C source code
2377 (version-control . symbolp)))))
2378 2376
2379 (put 'c-set-style 'safe-local-eval-function t) 2377 (put 'c-set-style 'safe-local-eval-function t)
2380 2378
2381 (defun hack-local-variables-confirm (vars unsafe-vars risky-vars) 2379 (defun hack-local-variables-confirm (vars unsafe-vars risky-vars)
2382 (if noninteractive 2380 (if noninteractive
3930 non-nil if the buffer is going to be reverted without asking the 3928 non-nil if the buffer is going to be reverted without asking the
3931 user. In such situations, one has to be careful with potentially 3929 user. In such situations, one has to be careful with potentially
3932 time consuming operations. 3930 time consuming operations.
3933 3931
3934 For more information on how this variable is used by Auto Revert mode, 3932 For more information on how this variable is used by Auto Revert mode,
3935 see Info node `(emacs-xtra)Supporting additional buffers'.") 3933 see Info node `(emacs)Supporting additional buffers'.")
3936 3934
3937 (defvar before-revert-hook nil 3935 (defvar before-revert-hook nil
3938 "Normal hook for `revert-buffer' to run before reverting. 3936 "Normal hook for `revert-buffer' to run before reverting.
3939 If `revert-buffer-function' is used to override the normal revert 3937 If `revert-buffer-function' is used to override the normal revert
3940 mechanism, this hook is not used.") 3938 mechanism, this hook is not used.")