aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2006-05-09 22:55:30 +0000
committerJuri Linkov2006-05-09 22:55:30 +0000
commit0a51c121e4d54fcd9e90bc0538784e2755acf1b1 (patch)
tree54d2d6ee42a456d1b90adf7aa635f472c9824430
parent9b46a12cd5b6585885c50cb22d98be497c2388f5 (diff)
downloademacs-0a51c121e4d54fcd9e90bc0538784e2755acf1b1.tar.gz
emacs-0a51c121e4d54fcd9e90bc0538784e2755acf1b1.zip
Remove `eval' and `let' binding for now unused lambda `string-or-null'.
-rw-r--r--lisp/files.el48
1 files changed, 23 insertions, 25 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 861265ef3c0..29cd3038500 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2349,31 +2349,29 @@ asking you for confirmation."
2349;; For variables defined in the C source code the declaration should go here: 2349;; For variables defined in the C source code the declaration should go here:
2350 2350
2351;; FIXME: Some variables should be moved according to the rules above. 2351;; FIXME: Some variables should be moved according to the rules above.
2352(let ((string-or-null (lambda (a) (or (stringp a) (null a))))) 2352(mapc (lambda (pair)
2353 (eval 2353 (put (car pair) 'safe-local-variable (cdr pair)))
2354 `(mapc (lambda (pair) 2354 '((byte-compile-dynamic . booleanp)
2355 (put (car pair) 'safe-local-variable (cdr pair))) 2355 (byte-compile-dynamic-docstrings . booleanp)
2356 '((byte-compile-dynamic . booleanp) 2356 (byte-compile-warnings . booleanp)
2357 (byte-compile-dynamic-docstrings . booleanp) 2357 (c-basic-offset . integerp)
2358 (byte-compile-warnings . booleanp) 2358 (c-file-style . stringp)
2359 (c-basic-offset . integerp) 2359 (c-indent-level . integerp)
2360 (c-file-style . stringp) 2360 (comment-column . integerp)
2361 (c-indent-level . integerp) 2361 (compile-command . string-or-null-p)
2362 (comment-column . integerp) 2362 (find-file-visit-truename . booleanp)
2363 (compile-command . string-or-null-p) 2363 (fill-column . integerp)
2364 (find-file-visit-truename . booleanp) 2364 (fill-prefix . string-or-null-p)
2365 (fill-column . integerp) 2365 (indent-tabs-mode . booleanp) ;; C source code
2366 (fill-prefix . string-or-null-p) 2366 (kept-old-versions . integerp)
2367 (indent-tabs-mode . booleanp) ;; C source code 2367 (kept-new-versions . integerp)
2368 (kept-old-versions . integerp) 2368 (left-margin . integerp)
2369 (kept-new-versions . integerp) 2369 (no-byte-compile . booleanp)
2370 (left-margin . integerp) 2370 (no-update-autoloads . booleanp)
2371 (no-byte-compile . booleanp) 2371 (outline-regexp . string-or-null-p)
2372 (no-update-autoloads . booleanp) 2372 (tab-width . integerp) ;; C source code
2373 (outline-regexp . string-or-null-p) 2373 (truncate-lines . booleanp) ;; C source code
2374 (tab-width . integerp) ;; C source code 2374 (version-control . symbolp)))
2375 (truncate-lines . booleanp) ;; C source code
2376 (version-control . symbolp)))))
2377 2375
2378(put 'c-set-style 'safe-local-eval-function t) 2376(put 'c-set-style 'safe-local-eval-function t)
2379 2377