1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Define risky-local-variable property here rather than in files.el.

This commit is contained in:
Glenn Morris 2009-08-26 03:07:25 +00:00
parent e49c017910
commit 6dc3311d25
12 changed files with 30 additions and 1 deletions

View file

@ -173,6 +173,8 @@ corresponding to the mode line clicked."
(:propertize ("" (:eval (if (frame-parameter nil 'client) "@" "")))
help-echo "emacsclient frame"))
"Mode-line control for identifying emacsclient frames.")
;; Autoload all risky properties if this file no longer dumped.
(put 'mode-line-client 'risky-local-variable t)
(defvar mode-line-mule-info
`(""
@ -214,6 +216,7 @@ mnemonics of the following coding systems:
;; coding system for encoding text to send to buffer process (if any)."
)
(put 'mode-line-mule-info 'risky-local-variable t)
(make-variable-buffer-local 'mode-line-mule-info)
;; MSDOS frames have window-system, but want the Fn identification.
@ -235,6 +238,7 @@ Value is used for `mode-line-frame-identification', which see."
Mode-line control for displaying info on process status.
Normally nil in most modes, since there is no process to display.")
(put 'mode-line-process 'risky-local-variable t)
(make-variable-buffer-local 'mode-line-process)
(defvar mode-line-modified
@ -265,6 +269,7 @@ Normally nil in most modes, since there is no process to display.")
'mouse-face 'mode-line-highlight))
"Mode-line control for displaying whether current buffer is modified.")
(put 'mode-line-modified 'risky-local-variable t)
(make-variable-buffer-local 'mode-line-modified)
(defvar mode-line-remote
@ -281,6 +286,7 @@ Normally nil in most modes, since there is no process to display.")
"Current directory is local: ")
default-directory)))))))
"Mode-line flag to show if default-directory for current buffer is remote.")
(put 'mode-line-remote 'risky-local-variable t)
(make-variable-buffer-local 'mode-line-remote)
@ -289,9 +295,11 @@ Normally nil in most modes, since there is no process to display.")
"Mode-line control for displaying the position in the buffer.
Normally displays the buffer percentage and, optionally, the
buffer size, the line number and the column number.")
(put 'mode-line-position 'risky-local-variable t)
(defvar mode-line-modes nil
"Mode-line control for displaying major and minor modes.")
(put 'mode-line-modes 'risky-local-variable t)
(defvar mode-line-mode-menu (make-sparse-keymap "Minor Modes") "\
Menu of mode operations in the mode line.")
@ -470,6 +478,7 @@ Its default value is (\"%12b\") with some text properties added.
Major modes that edit things other than ordinary files may change this
\(e.g. Info, Dired,...)")
(put 'mode-line-buffer-identification 'risky-local-variable t)
(make-variable-buffer-local 'mode-line-buffer-identification)
(defun unbury-buffer () "\
@ -576,6 +585,7 @@ STRING is included in the mode line if VARIABLE's value is non-nil.
Actually, STRING need not be a string; any possible mode-line element
is okay. See `mode-line-format'.")
(put 'minor-mode-alist 'risky-local-variable t)
;; Don't use purecopy here--some people want to change these strings.
(setq minor-mode-alist
'((abbrev-mode " Abbrev")