aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-08-26 03:08:33 +0000
committerGlenn Morris2009-08-26 03:08:33 +0000
commit3029e594aee1fe24db6904bf6af2d145c3b32052 (patch)
tree1205dbbb627c38b201b9b9c375f986288797abde
parent6dc3311d252c4f85ab7ba93dfef6486afa2fbd5b (diff)
downloademacs-3029e594aee1fe24db6904bf6af2d145c3b32052.tar.gz
emacs-3029e594aee1fe24db6904bf6af2d145c3b32052.zip
(enable-local-variables, enable-local-eval)
(safe-local-variable-values, safe-local-eval-forms): Mark as risky in the defcustoms. (auto-mode-alist, ignored-local-variables) (save-some-buffers-action-alist): Move risky declarations to the definitions. (dabbrev-case-fold-search, dabbrev-case-replace, display-time-string) (font-lock-defaults, format-alist, imenu--index-alist) (imenu-generic-expression, input-method-alist, minor-mode-alist) (mode-line-buffer-identification, mode-line-client, mode-line-modes) (mode-line-modified, mode-line-mule-info, mode-line-position) (mode-line-process, mode-line-remote, outline-level) (parse-time-rules, rmail-output-file-alist) (special-display-buffer-names, vc-mode): Move risky declarations to the relevant files.
-rw-r--r--lisp/ChangeLog32
-rw-r--r--lisp/files.el38
2 files changed, 40 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 540b967be49..b7c2e0c60b6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,38 @@
3 * bindings.el (standard-mode-line-format): Reposition dashes in 3 * bindings.el (standard-mode-line-format): Reposition dashes in
4 which-func entry. (Bug#4217) 4 which-func entry. (Bug#4217)
5 5
6 * files.el (enable-local-variables, enable-local-eval)
7 (safe-local-variable-values, safe-local-eval-forms): Mark as risky in
8 the defcustoms.
9 (auto-mode-alist, ignored-local-variables)
10 (save-some-buffers-action-alist): Move risky declarations to the
11 definitions.
12 (dabbrev-case-fold-search, dabbrev-case-replace, display-time-string)
13 (font-lock-defaults, format-alist, imenu--index-alist)
14 (imenu-generic-expression, input-method-alist, minor-mode-alist)
15 (mode-line-buffer-identification, mode-line-client, mode-line-modes)
16 (mode-line-modified, mode-line-mule-info, mode-line-position)
17 (mode-line-process, mode-line-remote, outline-level)
18 (parse-time-rules, rmail-output-file-alist)
19 (special-display-buffer-names, vc-mode):
20 Move risky declarations to the relevant files.
21 * bindings.el (mode-line-client, mode-line-mule-info, mode-line-process)
22 (mode-line-modified, mode-line-remote, mode-line-position)
23 (mode-line-modes, mode-line-buffer-identification, minor-mode-alist)
24 * font-core.el (font-lock-defaults):
25 * format.el (format-alist):
26 * vc-hooks.el (vc-mode):
27 * window.el (special-display-buffer-names):
28 * international/mule-cmds.el (input-method-alist):
29 Define riskiness here (dumped file) rather than in files.el.
30 * dabbrev.el (dabbrev-case-fold-search, dabbrev-case-replace):
31 * imenu.el (imenu-generic-expression, imenu--index-alist):
32 * outline.el (outline-level):
33 * time.el (display-time-string):
34 * calendar/parse-time.el (parse-time-rules):
35 * mail/rmailout.el (rmail-output-file-alist):
36 Autoload riskiness here, rather than placing in files.el.
37
62009-08-26 Andreas Schwab <schwab@linux-m68k.org> 382009-08-26 Andreas Schwab <schwab@linux-m68k.org>
7 39
8 * emacs-lisp/bytecomp.el (byte-compile-lapcode): Signal overflow. 40 * emacs-lisp/bytecomp.el (byte-compile-lapcode): Signal overflow.
diff --git a/lisp/files.el b/lisp/files.el
index 5c1927546d7..3ff6c5c9f26 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -493,6 +493,7 @@ a -*- line.
493The command \\[normal-mode], when used interactively, 493The command \\[normal-mode], when used interactively,
494always obeys file local variable specifications and the -*- line, 494always obeys file local variable specifications and the -*- line,
495and ignores this variable." 495and ignores this variable."
496 :risky t
496 :type '(choice (const :tag "Query Unsafe" t) 497 :type '(choice (const :tag "Query Unsafe" t)
497 (const :tag "Safe Only" :safe) 498 (const :tag "Safe Only" :safe)
498 (const :tag "Do all" :all) 499 (const :tag "Do all" :all)
@@ -514,6 +515,7 @@ specified in a -*- line.")
514The value can be t, nil or something else. 515The value can be t, nil or something else.
515A value of t means obey `eval' variables. 516A value of t means obey `eval' variables.
516A value of nil means ignore them; anything else means query." 517A value of nil means ignore them; anything else means query."
518 :risky t
517 :type '(choice (const :tag "Obey" t) 519 :type '(choice (const :tag "Obey" t)
518 (const :tag "Ignore" nil) 520 (const :tag "Ignore" nil)
519 (other :tag "Query" other)) 521 (other :tag "Query" other))
@@ -2306,6 +2308,7 @@ appear in `auto-coding-alist' with `no-conversion' coding system.
2306See also `interpreter-mode-alist', which detects executable script modes 2308See also `interpreter-mode-alist', which detects executable script modes
2307based on the interpreters they specify to run, 2309based on the interpreters they specify to run,
2308and `magic-mode-alist', which determines modes based on file contents.") 2310and `magic-mode-alist', which determines modes based on file contents.")
2311(put 'auto-mode-alist 'risky-local-variable t)
2309 2312
2310(defun conf-mode-maybe () 2313(defun conf-mode-maybe ()
2311 "Select Conf mode or XML mode according to start of file." 2314 "Select Conf mode or XML mode according to start of file."
@@ -2641,6 +2644,7 @@ Otherwise, return nil; point may be changed."
2641 '(ignored-local-variables safe-local-variable-values 2644 '(ignored-local-variables safe-local-variable-values
2642 file-local-variables-alist dir-local-variables-alist) 2645 file-local-variables-alist dir-local-variables-alist)
2643 "Variables to be ignored in a file's local variable spec.") 2646 "Variables to be ignored in a file's local variable spec.")
2647(put 'ignored-local-variables 'risky-local-variable t)
2644 2648
2645(defvar hack-local-variables-hook nil 2649(defvar hack-local-variables-hook nil
2646 "Normal hook run after processing a file's local variables specs. 2650 "Normal hook run after processing a file's local variables specs.
@@ -2651,6 +2655,7 @@ in order to initialize other data structure based on them.")
2651 "List variable-value pairs that are considered safe. 2655 "List variable-value pairs that are considered safe.
2652Each element is a cons cell (VAR . VAL), where VAR is a variable 2656Each element is a cons cell (VAR . VAL), where VAR is a variable
2653symbol and VAL is a value that is considered safe." 2657symbol and VAL is a value that is considered safe."
2658 :risky t
2654 :group 'find-file 2659 :group 'find-file
2655 :type 'alist) 2660 :type 'alist)
2656 2661
@@ -2659,6 +2664,7 @@ symbol and VAL is a value that is considered safe."
2659Add expressions to this list if you want Emacs to evaluate them, when 2664Add expressions to this list if you want Emacs to evaluate them, when
2660they appear in an `eval' local variable specification, without first 2665they appear in an `eval' local variable specification, without first
2661asking you for confirmation." 2666asking you for confirmation."
2667 :risky t
2662 :group 'find-file 2668 :group 'find-file
2663 :version "22.2" 2669 :version "22.2"
2664 :type '(repeat sexp)) 2670 :type '(repeat sexp))
@@ -2666,63 +2672,34 @@ asking you for confirmation."
2666;; Risky local variables: 2672;; Risky local variables:
2667(mapc (lambda (var) (put var 'risky-local-variable t)) 2673(mapc (lambda (var) (put var 'risky-local-variable t))
2668 '(after-load-alist 2674 '(after-load-alist
2669 auto-mode-alist
2670 buffer-auto-save-file-name 2675 buffer-auto-save-file-name
2671 buffer-file-name 2676 buffer-file-name
2672 buffer-file-truename 2677 buffer-file-truename
2673 buffer-undo-list 2678 buffer-undo-list
2674 dabbrev-case-fold-search
2675 dabbrev-case-replace
2676 debugger 2679 debugger
2677 default-text-properties 2680 default-text-properties
2678 display-time-string
2679 enable-local-eval
2680 enable-local-variables
2681 eval 2681 eval
2682 exec-directory 2682 exec-directory
2683 exec-path 2683 exec-path
2684 file-name-handler-alist 2684 file-name-handler-alist
2685 font-lock-defaults
2686 format-alist
2687 frame-title-format 2685 frame-title-format
2688 global-mode-string 2686 global-mode-string
2689 header-line-format 2687 header-line-format
2690 icon-title-format 2688 icon-title-format
2691 ignored-local-variables
2692 imenu--index-alist
2693 imenu-generic-expression
2694 inhibit-quit 2689 inhibit-quit
2695 input-method-alist
2696 load-path 2690 load-path
2697 max-lisp-eval-depth 2691 max-lisp-eval-depth
2698 max-specpdl-size 2692 max-specpdl-size
2699 minor-mode-alist
2700 minor-mode-map-alist 2693 minor-mode-map-alist
2701 minor-mode-overriding-map-alist 2694 minor-mode-overriding-map-alist
2702 mode-line-buffer-identification
2703 mode-line-format 2695 mode-line-format
2704 mode-line-client
2705 mode-line-modes
2706 mode-line-modified
2707 mode-line-mule-info
2708 mode-line-position
2709 mode-line-process
2710 mode-line-remote
2711 mode-name 2696 mode-name
2712 outline-level
2713 overriding-local-map 2697 overriding-local-map
2714 overriding-terminal-local-map 2698 overriding-terminal-local-map
2715 parse-time-rules
2716 process-environment 2699 process-environment
2717 rmail-output-file-alist
2718 safe-local-variable-values
2719 safe-local-eval-forms
2720 save-some-buffers-action-alist
2721 special-display-buffer-names
2722 standard-input 2700 standard-input
2723 standard-output 2701 standard-output
2724 unread-command-events 2702 unread-command-events))
2725 vc-mode))
2726 2703
2727;; Safe local variables: 2704;; Safe local variables:
2728;; 2705;;
@@ -4399,6 +4376,7 @@ This requires the external program `diff' to be in your `exec-path'."
4399 nil) 4376 nil)
4400 "view changes in this buffer")) 4377 "view changes in this buffer"))
4401 "ACTION-ALIST argument used in call to `map-y-or-n-p'.") 4378 "ACTION-ALIST argument used in call to `map-y-or-n-p'.")
4379(put 'save-some-buffers-action-alist 'risky-local-variable t)
4402 4380
4403(defvar buffer-save-without-query nil 4381(defvar buffer-save-without-query nil
4404 "Non-nil means `save-some-buffers' should save this buffer without asking.") 4382 "Non-nil means `save-some-buffers' should save this buffer without asking.")