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 /lisp/bindings.el | |
| parent | e49c01791000a9d18cd7813c947c78b1ea1b7cf7 (diff) | |
| download | emacs-6dc3311d252c4f85ab7ba93dfef6486afa2fbd5b.tar.gz emacs-6dc3311d252c4f85ab7ba93dfef6486afa2fbd5b.zip | |
Define risky-local-variable property here rather than in files.el.
Diffstat (limited to 'lisp/bindings.el')
| -rw-r--r-- | lisp/bindings.el | 10 |
1 files changed, 10 insertions, 0 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") |