aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReiner Steib2006-04-06 15:36:24 +0000
committerReiner Steib2006-04-06 15:36:24 +0000
commit6c07f4d42a4619442d56daffc62ac8e7343eb891 (patch)
treee4e30191278599fb2dd182bbc4adfff76e326c39
parentb97f1994c406ca48b1fed27a427f2eb3b410f368 (diff)
downloademacs-6c07f4d42a4619442d56daffc62ac8e7343eb891.tar.gz
emacs-6c07f4d42a4619442d56daffc62ac8e7343eb891.zip
* files.el: Move some `safe-local-variable' declarations to the
respective files. * textmodes/ispell.el (ispell-check-comments) (ispell-local-dictionary): Mark as safe. * abbrev.el (abbrev-mode): Mark as safe. * add-log.el (change-log-default-name): Mark as safe. * textmodes/reftex-vars.el (reftex-vref-is-default) (reftex-fref-is-default, reftex-level-indent) (reftex-guess-label-type): Mark as safe. * textmodes/fill.el (colon-double-space): Mark as safe. * textmodes/paragraphs.el (paragraph-start, paragraph-separate) (sentence-end-double-space, sentence-end-without-period) (sentence-end-without-space, sentence-end, sentence-end-base) (page-delimiter, paragraph-ignore-fill-prefix): Mark as safe.
-rw-r--r--lisp/ChangeLog23
-rw-r--r--lisp/abbrev.el1
-rw-r--r--lisp/add-log.el2
-rw-r--r--lisp/files.el12
-rw-r--r--lisp/textmodes/fill.el1
-rw-r--r--lisp/textmodes/ispell.el2
-rw-r--r--lisp/textmodes/paragraphs.el9
-rw-r--r--lisp/textmodes/reftex-vars.el4
8 files changed, 44 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2a1810e8dc0..78a9090e802 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,26 @@
12006-04-06 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * files.el: Move some `safe-local-variable' declarations to the
4 respective files.
5
6 * textmodes/ispell.el (ispell-check-comments)
7 (ispell-local-dictionary): Mark as safe.
8
9 * abbrev.el (abbrev-mode): Mark as safe.
10
11 * add-log.el (change-log-default-name): Mark as safe.
12
13 * textmodes/reftex-vars.el (reftex-vref-is-default)
14 (reftex-fref-is-default, reftex-level-indent)
15 (reftex-guess-label-type): Mark as safe.
16
17 * textmodes/fill.el (colon-double-space): Mark as safe.
18
19 * textmodes/paragraphs.el (paragraph-start, paragraph-separate)
20 (sentence-end-double-space, sentence-end-without-period)
21 (sentence-end-without-space, sentence-end, sentence-end-base)
22 (page-delimiter, paragraph-ignore-fill-prefix): Mark as safe.
23
12006-04-06 Kim F. Storm <storm@cua.dk> 242006-04-06 Kim F. Storm <storm@cua.dk>
2 25
3 * ido.el (ido-mode): Remove ido-ignore-unc-host-regexps from 26 * ido.el (ido-mode): Remove ido-ignore-unc-host-regexps from
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index bd0c6ffc094..d7bce2b313a 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -58,6 +58,7 @@ Interactively, use the command `abbrev-mode'
58to enable or disable Abbrev mode in the current buffer." 58to enable or disable Abbrev mode in the current buffer."
59 :type 'boolean 59 :type 'boolean
60 :group 'abbrev-mode) 60 :group 'abbrev-mode)
61;;;###autoload(put 'abbrev-mode 'safe-local-variable t)
61 62
62 63
63(defvar edit-abbrevs-map 64(defvar edit-abbrevs-map
diff --git a/lisp/add-log.el b/lisp/add-log.el
index d504b57ae17..1afdc7dcb72 100644
--- a/lisp/add-log.el
+++ b/lisp/add-log.el
@@ -45,6 +45,8 @@
45 :type '(choice (const :tag "default" nil) 45 :type '(choice (const :tag "default" nil)
46 string) 46 string)
47 :group 'change-log) 47 :group 'change-log)
48(put 'change-log-default-name 'safe-local-variable
49 (lambda (a) (or (stringp a) (null a))))
48 50
49(defcustom change-log-mode-hook nil 51(defcustom change-log-mode-hook nil
50 "Normal hook run by `change-log-mode'." 52 "Normal hook run by `change-log-mode'."
diff --git a/lisp/files.el b/lisp/files.el
index f68907a7d7b..7ab7d593e4c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2344,21 +2344,13 @@ asking you for confirmation."
2344 (fill-column . integerp) 2344 (fill-column . integerp)
2345 (fill-prefix . ,string-or-null) 2345 (fill-prefix . ,string-or-null)
2346 (indent-tabs-mode . t) 2346 (indent-tabs-mode . t)
2347 (ispell-check-comments . (lambda (a)
2348 (memq a '(nil t exclusive))))
2349 (ispell-local-dictionary . ,string-or-null)
2350 (kept-new-versions . integerp) 2347 (kept-new-versions . integerp)
2351 (left-margin . t) 2348 (left-margin . t)
2352 (no-byte-compile . t) 2349 (no-byte-compile . t)
2353 (no-update-autoloads . t) 2350 (no-update-autoloads . t)
2354 (outline-regexp . ,string-or-null) 2351 (outline-regexp . ,string-or-null)
2355 (page-delimiter . ,string-or-null) 2352 (tab-width . integerp) ;; C source code
2356 (paragraph-start . ,string-or-null) 2353 (truncate-lines . t) ;; C source code
2357 (paragraph-separate . ,string-or-null)
2358 (sentence-end . ,string-or-null)
2359 (sentence-end-double-space . t)
2360 (tab-width . integerp)
2361 (truncate-lines . t)
2362 (version-control . t))))) 2354 (version-control . t)))))
2363 2355
2364(put 'c-set-style 'safe-local-eval-function t) 2356(put 'c-set-style 'safe-local-eval-function t)
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index f472743ef16..312c73a380b 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -48,6 +48,7 @@ A value of nil means that any change in indentation starts a new paragraph."
48 "*Non-nil means put two spaces after a colon when filling." 48 "*Non-nil means put two spaces after a colon when filling."
49 :type 'boolean 49 :type 'boolean
50 :group 'fill) 50 :group 'fill)
51;;;###autoload(put 'colon-double-space 'safe-local-variable t)
51 52
52(defvar fill-paragraph-function nil 53(defvar fill-paragraph-function nil
53 "Mode-specific function to fill a paragraph, or nil if there is none. 54 "Mode-specific function to fill a paragraph, or nil if there is none.
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 64314c772b2..8a08f9dd078 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -267,6 +267,7 @@ Warning! Not checking comments, when a comment start is embedded in strings,
267may produce undesired results." 267may produce undesired results."
268 :type '(choice (const exclusive) (const :tag "off" nil) (const :tag "on" t)) 268 :type '(choice (const exclusive) (const :tag "off" nil) (const :tag "on" t))
269 :group 'ispell) 269 :group 'ispell)
270;;;###autoload(put 'ispell-check-comments 'safe-local-variable (lambda (a) (memq a '(nil t exclusive))))
270 271
271(defcustom ispell-query-replace-choices nil 272(defcustom ispell-query-replace-choices nil
272 "*Corrections made throughout region when non-nil. 273 "*Corrections made throughout region when non-nil.
@@ -461,6 +462,7 @@ is automatically set when defined in the file with either
461 :type '(choice string 462 :type '(choice string
462 (const :tag "default" nil)) 463 (const :tag "default" nil))
463 :group 'ispell) 464 :group 'ispell)
465;;;###autoload(put 'ispell-local-dictionary 'safe-local-variable (lambda (a) (or (stringp a) (null a))))
464 466
465(make-variable-buffer-local 'ispell-local-dictionary) 467(make-variable-buffer-local 'ispell-local-dictionary)
466 468
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index 927fa644b9d..c62f337e456 100644
--- a/lisp/textmodes/paragraphs.el
+++ b/lisp/textmodes/paragraphs.el
@@ -98,6 +98,7 @@ If the variable `use-hard-newlines' is non-nil, then only lines following a
98hard newline are considered to match." 98hard newline are considered to match."
99 :group 'paragraphs 99 :group 'paragraphs
100 :type 'regexp) 100 :type 'regexp)
101;;;###autoload(put 'paragraph-start 'safe-local-variable 'stringp)
101 102
102;; paragraph-start requires a hard newline, but paragraph-separate does not: 103;; paragraph-start requires a hard newline, but paragraph-separate does not:
103;; It is assumed that paragraph-separate is distinctive enough to be believed 104;; It is assumed that paragraph-separate is distinctive enough to be believed
@@ -115,6 +116,7 @@ ensures that the paragraph functions will work equally within a region of
115text indented by a margin setting." 116text indented by a margin setting."
116 :group 'paragraphs 117 :group 'paragraphs
117 :type 'regexp) 118 :type 'regexp)
119;;;###autoload(put 'paragraph-separate 'safe-local-variable 'stringp)
118 120
119(defcustom sentence-end-double-space t 121(defcustom sentence-end-double-space t
120 "*Non-nil means a single space does not end a sentence. 122 "*Non-nil means a single space does not end a sentence.
@@ -126,6 +128,7 @@ regexp describing the end of a sentence, when the value of the variable
126`sentence-end' is nil. See Info node `(elisp)Standard Regexps'." 128`sentence-end' is nil. See Info node `(elisp)Standard Regexps'."
127 :type 'boolean 129 :type 'boolean
128 :group 'fill) 130 :group 'fill)
131;;;###autoload(put 'sentence-end-double-space 'safe-local-variable t)
129 132
130(defcustom sentence-end-without-period nil 133(defcustom sentence-end-without-period nil
131 "*Non-nil means a sentence will end without a period. 134 "*Non-nil means a sentence will end without a period.
@@ -137,6 +140,7 @@ regexp describing the end of a sentence, when the value of the variable
137`sentence-end' is nil. See Info node `(elisp)Standard Regexps'." 140`sentence-end' is nil. See Info node `(elisp)Standard Regexps'."
138 :type 'boolean 141 :type 'boolean
139 :group 'fill) 142 :group 'fill)
143;;;###autoload(put 'sentence-end-without-period 'safe-local-variable t)
140 144
141(defcustom sentence-end-without-space 145(defcustom sentence-end-without-space
142 "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B" 146 "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B"
@@ -147,6 +151,7 @@ regexp describing the end of a sentence, when the value of the variable
147`sentence-end' is nil. See Info node `(elisp)Standard Regexps'." 151`sentence-end' is nil. See Info node `(elisp)Standard Regexps'."
148 :group 'paragraphs 152 :group 'paragraphs
149 :type 'string) 153 :type 'string)
154;;;###autoload(put 'sentence-end-without-space 'safe-local-variable t)
150 155
151(defcustom sentence-end nil 156(defcustom sentence-end nil
152 "*Regexp describing the end of a sentence. 157 "*Regexp describing the end of a sentence.
@@ -158,12 +163,14 @@ function `sentence-end'. You should always use this function
158to obtain the value of this variable." 163to obtain the value of this variable."
159 :group 'paragraphs 164 :group 'paragraphs
160 :type '(choice regexp (const :tag "Use default value" nil))) 165 :type '(choice regexp (const :tag "Use default value" nil)))
166;;;###autoload(put 'sentence-end 'safe-local-variable (lambda (a) (or (stringp a) (null a))))
161 167
162(defcustom sentence-end-base "[.?!][]\"'$B!I$,1r}(B)}]*" 168(defcustom sentence-end-base "[.?!][]\"'$B!I$,1r}(B)}]*"
163 "*Regexp matching the basic end of a sentence, not including following space." 169 "*Regexp matching the basic end of a sentence, not including following space."
164 :group 'paragraphs 170 :group 'paragraphs
165 :type 'string 171 :type 'string
166 :version "22.1") 172 :version "22.1")
173;;;###autoload(put 'sentence-end-base 'safe-local-variable 'stringp)
167 174
168(defun sentence-end () 175(defun sentence-end ()
169 "Return the regexp describing the end of a sentence. 176 "Return the regexp describing the end of a sentence.
@@ -191,12 +198,14 @@ in between. See Info node `(elisp)Standard Regexps'."
191 "*Regexp describing line-beginnings that separate pages." 198 "*Regexp describing line-beginnings that separate pages."
192 :group 'paragraphs 199 :group 'paragraphs
193 :type 'regexp) 200 :type 'regexp)
201;;;###autoload(put 'page-delimiter 'safe-local-variable t)
194 202
195(defcustom paragraph-ignore-fill-prefix nil 203(defcustom paragraph-ignore-fill-prefix nil
196 "*Non-nil means the paragraph commands are not affected by `fill-prefix'. 204 "*Non-nil means the paragraph commands are not affected by `fill-prefix'.
197This is desirable in modes where blank lines are the paragraph delimiters." 205This is desirable in modes where blank lines are the paragraph delimiters."
198 :group 'paragraphs 206 :group 'paragraphs
199 :type 'boolean) 207 :type 'boolean)
208;;;###autoload(put 'paragraph-ignore-fill-prefix 'safe-local-variable t)
200 209
201(defun forward-paragraph (&optional arg) 210(defun forward-paragraph (&optional arg)
202 "Move forward to end of paragraph. 211 "Move forward to end of paragraph.
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index e866b03626f..07b5d1ca178 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -948,6 +948,7 @@ Instead of nil or t, this may also be a string of type letters indicating
948the label types for which it should be true." 948the label types for which it should be true."
949 :group 'reftex-referencing-labels 949 :group 'reftex-referencing-labels
950 :type `(choice :tag "\\vref is default macro" ,@reftex-tmp)) 950 :type `(choice :tag "\\vref is default macro" ,@reftex-tmp))
951;;;###autoload(put 'reftex-vref-is-default 'safe-local-variable t)
951 952
952(defcustom reftex-fref-is-default nil 953(defcustom reftex-fref-is-default nil
953 "*Non-nil means, the fancyref macro \\fref is used as default. 954 "*Non-nil means, the fancyref macro \\fref is used as default.
@@ -958,11 +959,13 @@ Instead of nil or t, this may also be a string of type letters indicating
958the label types for which it should be true." 959the label types for which it should be true."
959 :group 'reftex-referencing-labels 960 :group 'reftex-referencing-labels
960 :type `(choice :tag "\\fref is default macro" ,@reftex-tmp)) 961 :type `(choice :tag "\\fref is default macro" ,@reftex-tmp))
962;;;###autoload(put 'reftex-fref-is-default 'safe-local-variable t)
961 963
962(defcustom reftex-level-indent 2 964(defcustom reftex-level-indent 2
963 "*Number of spaces to be used for indentation per section level." 965 "*Number of spaces to be used for indentation per section level."
964 :group 'reftex-referencing-labels 966 :group 'reftex-referencing-labels
965 :type 'integer) 967 :type 'integer)
968;;;###autoload(put 'reftex-level-indent 'safe-local-variable 'integerp)
966 969
967(defcustom reftex-guess-label-type t 970(defcustom reftex-guess-label-type t
968 "*Non-nil means, `reftex-reference' will try to guess the label type. 971 "*Non-nil means, `reftex-reference' will try to guess the label type.
@@ -972,6 +975,7 @@ immediately offer the correct label menu - otherwise it will prompt you for
972a label type. If you set this variable to nil, RefTeX will always prompt." 975a label type. If you set this variable to nil, RefTeX will always prompt."
973 :group 'reftex-referencing-labels 976 :group 'reftex-referencing-labels
974 :type 'boolean) 977 :type 'boolean)
978;;;###autoload(put 'reftex-guess-label-type 'safe-local-variable t)
975 979
976(defcustom reftex-format-ref-function nil 980(defcustom reftex-format-ref-function nil
977 "Function which produces the string to insert as a reference. 981 "Function which produces the string to insert as a reference.