diff options
| author | Glenn Morris | 2009-08-26 03:07:25 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-08-26 03:07:25 +0000 |
| commit | 6dc3311d252c4f85ab7ba93dfef6486afa2fbd5b (patch) | |
| tree | c0aceb708a01fcb3d8ca22b3532027691ec40df8 | |
| parent | e49c01791000a9d18cd7813c947c78b1ea1b7cf7 (diff) | |
| download | emacs-6dc3311d252c4f85ab7ba93dfef6486afa2fbd5b.tar.gz emacs-6dc3311d252c4f85ab7ba93dfef6486afa2fbd5b.zip | |
Define risky-local-variable property here rather than in files.el.
| -rw-r--r-- | lisp/bindings.el | 10 | ||||
| -rw-r--r-- | lisp/calendar/parse-time.el | 1 | ||||
| -rw-r--r-- | lisp/dabbrev.el | 2 | ||||
| -rw-r--r-- | lisp/font-core.el | 2 | ||||
| -rw-r--r-- | lisp/format.el | 2 | ||||
| -rw-r--r-- | lisp/imenu.el | 2 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 2 | ||||
| -rw-r--r-- | lisp/mail/rmailout.el | 1 | ||||
| -rw-r--r-- | lisp/outline.el | 1 | ||||
| -rw-r--r-- | lisp/time.el | 1 | ||||
| -rw-r--r-- | lisp/vc-hooks.el | 5 | ||||
| -rw-r--r-- | lisp/window.el | 2 |
12 files changed, 30 insertions, 1 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el index 563d4f73352..9ee6c3fa306 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -173,6 +173,8 @@ corresponding to the mode line clicked." | |||
| 173 | (:propertize ("" (:eval (if (frame-parameter nil 'client) "@" ""))) | 173 | (:propertize ("" (:eval (if (frame-parameter nil 'client) "@" ""))) |
| 174 | help-echo "emacsclient frame")) | 174 | help-echo "emacsclient frame")) |
| 175 | "Mode-line control for identifying emacsclient frames.") | 175 | "Mode-line control for identifying emacsclient frames.") |
| 176 | ;; Autoload all risky properties if this file no longer dumped. | ||
| 177 | (put 'mode-line-client 'risky-local-variable t) | ||
| 176 | 178 | ||
| 177 | (defvar mode-line-mule-info | 179 | (defvar mode-line-mule-info |
| 178 | `("" | 180 | `("" |
| @@ -214,6 +216,7 @@ mnemonics of the following coding systems: | |||
| 214 | ;; coding system for encoding text to send to buffer process (if any)." | 216 | ;; coding system for encoding text to send to buffer process (if any)." |
| 215 | ) | 217 | ) |
| 216 | 218 | ||
| 219 | (put 'mode-line-mule-info 'risky-local-variable t) | ||
| 217 | (make-variable-buffer-local 'mode-line-mule-info) | 220 | (make-variable-buffer-local 'mode-line-mule-info) |
| 218 | 221 | ||
| 219 | ;; MSDOS frames have window-system, but want the Fn identification. | 222 | ;; MSDOS frames have window-system, but want the Fn identification. |
| @@ -235,6 +238,7 @@ Value is used for `mode-line-frame-identification', which see." | |||
| 235 | Mode-line control for displaying info on process status. | 238 | Mode-line control for displaying info on process status. |
| 236 | Normally nil in most modes, since there is no process to display.") | 239 | Normally nil in most modes, since there is no process to display.") |
| 237 | 240 | ||
| 241 | (put 'mode-line-process 'risky-local-variable t) | ||
| 238 | (make-variable-buffer-local 'mode-line-process) | 242 | (make-variable-buffer-local 'mode-line-process) |
| 239 | 243 | ||
| 240 | (defvar mode-line-modified | 244 | (defvar mode-line-modified |
| @@ -265,6 +269,7 @@ Normally nil in most modes, since there is no process to display.") | |||
| 265 | 'mouse-face 'mode-line-highlight)) | 269 | 'mouse-face 'mode-line-highlight)) |
| 266 | "Mode-line control for displaying whether current buffer is modified.") | 270 | "Mode-line control for displaying whether current buffer is modified.") |
| 267 | 271 | ||
| 272 | (put 'mode-line-modified 'risky-local-variable t) | ||
| 268 | (make-variable-buffer-local 'mode-line-modified) | 273 | (make-variable-buffer-local 'mode-line-modified) |
| 269 | 274 | ||
| 270 | (defvar mode-line-remote | 275 | (defvar mode-line-remote |
| @@ -281,6 +286,7 @@ Normally nil in most modes, since there is no process to display.") | |||
| 281 | "Current directory is local: ") | 286 | "Current directory is local: ") |
| 282 | default-directory))))))) | 287 | default-directory))))))) |
| 283 | "Mode-line flag to show if default-directory for current buffer is remote.") | 288 | "Mode-line flag to show if default-directory for current buffer is remote.") |
| 289 | (put 'mode-line-remote 'risky-local-variable t) | ||
| 284 | 290 | ||
| 285 | (make-variable-buffer-local 'mode-line-remote) | 291 | (make-variable-buffer-local 'mode-line-remote) |
| 286 | 292 | ||
| @@ -289,9 +295,11 @@ Normally nil in most modes, since there is no process to display.") | |||
| 289 | "Mode-line control for displaying the position in the buffer. | 295 | "Mode-line control for displaying the position in the buffer. |
| 290 | Normally displays the buffer percentage and, optionally, the | 296 | Normally displays the buffer percentage and, optionally, the |
| 291 | buffer size, the line number and the column number.") | 297 | buffer size, the line number and the column number.") |
| 298 | (put 'mode-line-position 'risky-local-variable t) | ||
| 292 | 299 | ||
| 293 | (defvar mode-line-modes nil | 300 | (defvar mode-line-modes nil |
| 294 | "Mode-line control for displaying major and minor modes.") | 301 | "Mode-line control for displaying major and minor modes.") |
| 302 | (put 'mode-line-modes 'risky-local-variable t) | ||
| 295 | 303 | ||
| 296 | (defvar mode-line-mode-menu (make-sparse-keymap "Minor Modes") "\ | 304 | (defvar mode-line-mode-menu (make-sparse-keymap "Minor Modes") "\ |
| 297 | Menu of mode operations in the mode line.") | 305 | Menu of mode operations in the mode line.") |
| @@ -470,6 +478,7 @@ Its default value is (\"%12b\") with some text properties added. | |||
| 470 | Major modes that edit things other than ordinary files may change this | 478 | Major modes that edit things other than ordinary files may change this |
| 471 | \(e.g. Info, Dired,...)") | 479 | \(e.g. Info, Dired,...)") |
| 472 | 480 | ||
| 481 | (put 'mode-line-buffer-identification 'risky-local-variable t) | ||
| 473 | (make-variable-buffer-local 'mode-line-buffer-identification) | 482 | (make-variable-buffer-local 'mode-line-buffer-identification) |
| 474 | 483 | ||
| 475 | (defun unbury-buffer () "\ | 484 | (defun unbury-buffer () "\ |
| @@ -576,6 +585,7 @@ STRING is included in the mode line if VARIABLE's value is non-nil. | |||
| 576 | 585 | ||
| 577 | Actually, STRING need not be a string; any possible mode-line element | 586 | Actually, STRING need not be a string; any possible mode-line element |
| 578 | is okay. See `mode-line-format'.") | 587 | is okay. See `mode-line-format'.") |
| 588 | (put 'minor-mode-alist 'risky-local-variable t) | ||
| 579 | ;; Don't use purecopy here--some people want to change these strings. | 589 | ;; Don't use purecopy here--some people want to change these strings. |
| 580 | (setq minor-mode-alist | 590 | (setq minor-mode-alist |
| 581 | '((abbrev-mode " Abbrev") | 591 | '((abbrev-mode " Abbrev") |
diff --git a/lisp/calendar/parse-time.el b/lisp/calendar/parse-time.el index 56a2fd715d2..b0e8cac51e5 100644 --- a/lisp/calendar/parse-time.el +++ b/lisp/calendar/parse-time.el | |||
| @@ -175,6 +175,7 @@ | |||
| 175 | ((5) (50 110) ,#'(lambda () (+ 1900 parse-time-elt))) | 175 | ((5) (50 110) ,#'(lambda () (+ 1900 parse-time-elt))) |
| 176 | ((5) (0 49) ,#'(lambda () (+ 2000 parse-time-elt)))) | 176 | ((5) (0 49) ,#'(lambda () (+ 2000 parse-time-elt)))) |
| 177 | "(slots predicate extractor...)") | 177 | "(slots predicate extractor...)") |
| 178 | ;;;###autoload(put 'parse-time-rules 'risky-local-variable t) | ||
| 178 | 179 | ||
| 179 | ;;;###autoload | 180 | ;;;###autoload |
| 180 | (defun parse-time-string (string) | 181 | (defun parse-time-string (string) |
diff --git a/lisp/dabbrev.el b/lisp/dabbrev.el index cbab591d4bf..ab9cae6fed8 100644 --- a/lisp/dabbrev.el +++ b/lisp/dabbrev.el | |||
| @@ -145,6 +145,7 @@ Any other non-nil version means case is not significant." | |||
| 145 | (const :tag "like search" case-fold-search) | 145 | (const :tag "like search" case-fold-search) |
| 146 | (other :tag "on" t)) | 146 | (other :tag "on" t)) |
| 147 | :group 'dabbrev) | 147 | :group 'dabbrev) |
| 148 | ;;;###autoload(put 'dabbrev-case-fold-search 'risky-local-variable t) | ||
| 148 | 149 | ||
| 149 | (defcustom dabbrev-upcase-means-case-search nil | 150 | (defcustom dabbrev-upcase-means-case-search nil |
| 150 | "The significance of an uppercase character in an abbreviation. | 151 | "The significance of an uppercase character in an abbreviation. |
| @@ -185,6 +186,7 @@ This variable has an effect only when the value of | |||
| 185 | (const :tag "based on `case-replace'" case-replace) | 186 | (const :tag "based on `case-replace'" case-replace) |
| 186 | (other :tag "on" t)) | 187 | (other :tag "on" t)) |
| 187 | :group 'dabbrev) | 188 | :group 'dabbrev) |
| 189 | ;;;###autoload(put 'dabbrev-case-replace 'risky-local-variable t) | ||
| 188 | 190 | ||
| 189 | (defcustom dabbrev-abbrev-char-regexp nil | 191 | (defcustom dabbrev-abbrev-char-regexp nil |
| 190 | "Regexp to recognize a character in an abbreviation or expansion. | 192 | "Regexp to recognize a character in an abbreviation or expansion. |
diff --git a/lisp/font-core.el b/lisp/font-core.el index 88c67d8dece..0ba7295cc06 100644 --- a/lisp/font-core.el +++ b/lisp/font-core.el | |||
| @@ -75,6 +75,8 @@ Other variables include that for syntactic keyword fontification, | |||
| 75 | functions, `font-lock-fontify-buffer-function', | 75 | functions, `font-lock-fontify-buffer-function', |
| 76 | `font-lock-unfontify-buffer-function', `font-lock-fontify-region-function', | 76 | `font-lock-unfontify-buffer-function', `font-lock-fontify-region-function', |
| 77 | `font-lock-unfontify-region-function', and `font-lock-inhibit-thing-lock'.") | 77 | `font-lock-unfontify-region-function', and `font-lock-inhibit-thing-lock'.") |
| 78 | ;; Autoload if this file no longer dumped. | ||
| 79 | (put 'font-lock-defaults 'risky-local-variable t) | ||
| 78 | (make-variable-buffer-local 'font-lock-defaults) | 80 | (make-variable-buffer-local 'font-lock-defaults) |
| 79 | 81 | ||
| 80 | (defvar font-lock-defaults-alist nil | 82 | (defvar font-lock-defaults-alist nil |
diff --git a/lisp/format.el b/lisp/format.el index ddca9872f35..f15026147c7 100644 --- a/lisp/format.el +++ b/lisp/format.el | |||
| @@ -136,6 +136,8 @@ MODE-FN, if specified, is called when visiting a file with that format. | |||
| 136 | 136 | ||
| 137 | PRESERVE, if non-nil, means that `format-write-file' should not remove | 137 | PRESERVE, if non-nil, means that `format-write-file' should not remove |
| 138 | this format from `buffer-file-format'.") | 138 | this format from `buffer-file-format'.") |
| 139 | ;; Autoload if this file no longer dumped. | ||
| 140 | (put 'format-alist 'risky-local-variable t) | ||
| 139 | 141 | ||
| 140 | ;;; Basic Functions (called from Lisp) | 142 | ;;; Basic Functions (called from Lisp) |
| 141 | 143 | ||
diff --git a/lisp/imenu.el b/lisp/imenu.el index 3873136f693..77035c602d8 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el | |||
| @@ -198,6 +198,7 @@ For example, see the value of `fortran-imenu-generic-expression' used by | |||
| 198 | `fortran-mode' with `imenu-syntax-alist' set locally to give the | 198 | `fortran-mode' with `imenu-syntax-alist' set locally to give the |
| 199 | characters which normally have \"symbol\" syntax \"word\" syntax | 199 | characters which normally have \"symbol\" syntax \"word\" syntax |
| 200 | during matching.") | 200 | during matching.") |
| 201 | ;;;###autoload(put 'imenu-generic-expression 'risky-local-variable t) | ||
| 201 | 202 | ||
| 202 | ;;;###autoload | 203 | ;;;###autoload |
| 203 | (make-variable-buffer-local 'imenu-generic-expression) | 204 | (make-variable-buffer-local 'imenu-generic-expression) |
| @@ -444,6 +445,7 @@ if it is a sub-alist. | |||
| 444 | 445 | ||
| 445 | There is one simple element with negative POSITION; selecting that | 446 | There is one simple element with negative POSITION; selecting that |
| 446 | element recalculates the buffer's index alist.") | 447 | element recalculates the buffer's index alist.") |
| 448 | ;;;###autoload(put 'imenu--index-alist 'risky-local-variable t) | ||
| 447 | 449 | ||
| 448 | (make-variable-buffer-local 'imenu--index-alist) | 450 | (make-variable-buffer-local 'imenu--index-alist) |
| 449 | 451 | ||
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 6579297ba0c..4d4e5c87798 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1337,6 +1337,8 @@ This function is called with no argument.") | |||
| 1337 | Each element has the form: | 1337 | Each element has the form: |
| 1338 | (INPUT-METHOD LANGUAGE-ENV ACTIVATE-FUNC TITLE DESCRIPTION ARGS...) | 1338 | (INPUT-METHOD LANGUAGE-ENV ACTIVATE-FUNC TITLE DESCRIPTION ARGS...) |
| 1339 | See the function `register-input-method' for the meanings of the elements.") | 1339 | See the function `register-input-method' for the meanings of the elements.") |
| 1340 | ;; Autoload if this file no longer dumped. | ||
| 1341 | (put 'input-method-alist 'risky-local-variable t) | ||
| 1340 | 1342 | ||
| 1341 | (defun register-input-method (input-method lang-env &rest args) | 1343 | (defun register-input-method (input-method lang-env &rest args) |
| 1342 | "Register INPUT-METHOD as an input method for language environment LANG-ENV. | 1344 | "Register INPUT-METHOD as an input method for language environment LANG-ENV. |
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index dad696f5355..8ca36ed1f70 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -46,6 +46,7 @@ a file name as a string." | |||
| 46 | (string :tag "File Name") | 46 | (string :tag "File Name") |
| 47 | sexp))) | 47 | sexp))) |
| 48 | :group 'rmail-output) | 48 | :group 'rmail-output) |
| 49 | ;;;###autoload(put 'rmail-output-file-alist 'risky-local-variable t) | ||
| 49 | 50 | ||
| 50 | (defcustom rmail-fields-not-to-output nil | 51 | (defcustom rmail-fields-not-to-output nil |
| 51 | "Regexp describing fields to exclude when outputting a message to a file. | 52 | "Regexp describing fields to exclude when outputting a message to a file. |
diff --git a/lisp/outline.el b/lisp/outline.el index 250f2e16335..703e818f3a5 100644 --- a/lisp/outline.el +++ b/lisp/outline.el | |||
| @@ -380,6 +380,7 @@ See the command `outline-mode' for more information on this mode." | |||
| 380 | "*Function of no args to compute a header's nesting level in an outline. | 380 | "*Function of no args to compute a header's nesting level in an outline. |
| 381 | It can assume point is at the beginning of a header line and that the match | 381 | It can assume point is at the beginning of a header line and that the match |
| 382 | data reflects the `outline-regexp'.") | 382 | data reflects the `outline-regexp'.") |
| 383 | ;;;###autoload(put 'outline-level 'risky-local-variable t) | ||
| 383 | 384 | ||
| 384 | (defvar outline-heading-alist () | 385 | (defvar outline-heading-alist () |
| 385 | "Alist associating a heading for every possible level. | 386 | "Alist associating a heading for every possible level. |
diff --git a/lisp/time.el b/lisp/time.el index 912ab43c481..1d0b951e4a4 100644 --- a/lisp/time.el +++ b/lisp/time.el | |||
| @@ -105,6 +105,7 @@ A value of nil means 1 <= hh <= 12, and an AM/PM suffix is used." | |||
| 105 | :group 'display-time) | 105 | :group 'display-time) |
| 106 | 106 | ||
| 107 | (defvar display-time-string nil) | 107 | (defvar display-time-string nil) |
| 108 | ;;;###autoload(put 'display-time-string 'risky-local-variable t) | ||
| 108 | 109 | ||
| 109 | (defcustom display-time-hook nil | 110 | (defcustom display-time-hook nil |
| 110 | "List of functions to be called when the time is updated on the mode line." | 111 | "List of functions to be called when the time is updated on the mode line." |
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index f84cf576343..20fd73d641f 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | ;;; vc-hooks.el --- resident support for version-control | 1 | ;;; vc-hooks.el --- resident support for version-control |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 4 | ;; 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | ;; 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
| 5 | ;; Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | ;; Author: FSF (see vc.el for full credits) | 7 | ;; Author: FSF (see vc.el for full credits) |
| 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 8 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| @@ -204,6 +205,8 @@ individually should stay local." | |||
| 204 | ;; Tell Emacs about this new kind of minor mode | 205 | ;; Tell Emacs about this new kind of minor mode |
| 205 | ;; (add-to-list 'minor-mode-alist '(vc-mode vc-mode)) | 206 | ;; (add-to-list 'minor-mode-alist '(vc-mode vc-mode)) |
| 206 | 207 | ||
| 208 | ;; Autoload if this file no longer dumped. | ||
| 209 | (put 'vc-mode 'risky-local-variable t) | ||
| 207 | (make-variable-buffer-local 'vc-mode) | 210 | (make-variable-buffer-local 'vc-mode) |
| 208 | (put 'vc-mode 'permanent-local t) | 211 | (put 'vc-mode 'permanent-local t) |
| 209 | 212 | ||
diff --git a/lisp/window.el b/lisp/window.el index 27daf684e3f..a4931d446a1 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -591,6 +591,8 @@ and `same-window-regexps'. Those variables take precedence over | |||
| 591 | this one. | 591 | this one. |
| 592 | 592 | ||
| 593 | See also `special-display-regexps'." | 593 | See also `special-display-regexps'." |
| 594 | ;; Autoload if this file no longer dumped. | ||
| 595 | :risky t | ||
| 594 | :type '(repeat | 596 | :type '(repeat |
| 595 | (choice :tag "Buffer" | 597 | (choice :tag "Buffer" |
| 596 | :value "" | 598 | :value "" |