Mercurial > emacs
comparison lisp/bindings.el @ 105609:bdcd73244f19
Convert comments about autoloads into autoload comments.
(No-ops so long as file is dumped.)
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 15 Oct 2009 06:18:02 +0000 |
parents | 8604318df7f9 |
children | 6a84af00a480 |
comparison
equal
deleted
inserted
replaced
105608:1af242c07461 | 105609:bdcd73244f19 |
---|---|
151 (defvar mode-line-client | 151 (defvar mode-line-client |
152 `("" | 152 `("" |
153 (:propertize ("" (:eval (if (frame-parameter nil 'client) "@" ""))) | 153 (:propertize ("" (:eval (if (frame-parameter nil 'client) "@" ""))) |
154 help-echo "emacsclient frame")) | 154 help-echo "emacsclient frame")) |
155 "Mode-line control for identifying emacsclient frames.") | 155 "Mode-line control for identifying emacsclient frames.") |
156 ;; Autoload all risky properties if this file no longer dumped. | 156 ;;;###autoload |
157 (put 'mode-line-client 'risky-local-variable t) | 157 (put 'mode-line-client 'risky-local-variable t) |
158 | 158 |
159 (defvar mode-line-mule-info | 159 (defvar mode-line-mule-info |
160 `("" | 160 `("" |
161 (current-input-method | 161 (current-input-method |
194 ;; Currently not: | 194 ;; Currently not: |
195 ;; coding system for decoding output of buffer process (if any) | 195 ;; coding system for decoding output of buffer process (if any) |
196 ;; coding system for encoding text to send to buffer process (if any)." | 196 ;; coding system for encoding text to send to buffer process (if any)." |
197 ) | 197 ) |
198 | 198 |
199 ;;;###autoload | |
199 (put 'mode-line-mule-info 'risky-local-variable t) | 200 (put 'mode-line-mule-info 'risky-local-variable t) |
200 (make-variable-buffer-local 'mode-line-mule-info) | 201 (make-variable-buffer-local 'mode-line-mule-info) |
201 | 202 |
202 ;; MSDOS frames have window-system, but want the Fn identification. | 203 ;; MSDOS frames have window-system, but want the Fn identification. |
203 (defun mode-line-frame-control () | 204 (defun mode-line-frame-control () |
210 | 211 |
211 ;; We need to defer the call to mode-line-frame-control to the time | 212 ;; We need to defer the call to mode-line-frame-control to the time |
212 ;; the mode line is actually displayed. | 213 ;; the mode line is actually displayed. |
213 (defvar mode-line-frame-identification '(:eval (mode-line-frame-control)) | 214 (defvar mode-line-frame-identification '(:eval (mode-line-frame-control)) |
214 "Mode-line control to describe the current frame.") | 215 "Mode-line control to describe the current frame.") |
216 ;;;###autoload | |
215 (put 'mode-line-frame-identification 'risky-local-variable t) | 217 (put 'mode-line-frame-identification 'risky-local-variable t) |
216 | 218 |
217 (defvar mode-line-process nil "\ | 219 (defvar mode-line-process nil "\ |
218 Mode-line control for displaying info on process status. | 220 Mode-line control for displaying info on process status. |
219 Normally nil in most modes, since there is no process to display.") | 221 Normally nil in most modes, since there is no process to display.") |
220 | 222 |
223 ;;;###autoload | |
221 (put 'mode-line-process 'risky-local-variable t) | 224 (put 'mode-line-process 'risky-local-variable t) |
222 (make-variable-buffer-local 'mode-line-process) | 225 (make-variable-buffer-local 'mode-line-process) |
223 | 226 |
224 (defvar mode-line-modified | 227 (defvar mode-line-modified |
225 (list (propertize | 228 (list (propertize |
247 'local-map (purecopy (make-mode-line-mouse-map | 250 'local-map (purecopy (make-mode-line-mouse-map |
248 'mouse-1 #'mode-line-toggle-modified)) | 251 'mouse-1 #'mode-line-toggle-modified)) |
249 'mouse-face 'mode-line-highlight)) | 252 'mouse-face 'mode-line-highlight)) |
250 "Mode-line control for displaying whether current buffer is modified.") | 253 "Mode-line control for displaying whether current buffer is modified.") |
251 | 254 |
255 ;;;###autoload | |
252 (put 'mode-line-modified 'risky-local-variable t) | 256 (put 'mode-line-modified 'risky-local-variable t) |
253 (make-variable-buffer-local 'mode-line-modified) | 257 (make-variable-buffer-local 'mode-line-modified) |
254 | 258 |
255 (defvar mode-line-remote | 259 (defvar mode-line-remote |
256 (list (propertize | 260 (list (propertize |
264 (if (file-remote-p default-directory) | 268 (if (file-remote-p default-directory) |
265 "Current directory is remote: " | 269 "Current directory is remote: " |
266 "Current directory is local: ") | 270 "Current directory is local: ") |
267 default-directory))))))) | 271 default-directory))))))) |
268 "Mode-line flag to show if default-directory for current buffer is remote.") | 272 "Mode-line flag to show if default-directory for current buffer is remote.") |
273 ;;;###autoload | |
269 (put 'mode-line-remote 'risky-local-variable t) | 274 (put 'mode-line-remote 'risky-local-variable t) |
270 | 275 |
271 (make-variable-buffer-local 'mode-line-remote) | 276 (make-variable-buffer-local 'mode-line-remote) |
272 | 277 |
273 ;; Actual initialization is below. | 278 ;; Actual initialization is below. |
274 (defvar mode-line-position nil | 279 (defvar mode-line-position nil |
275 "Mode-line control for displaying the position in the buffer. | 280 "Mode-line control for displaying the position in the buffer. |
276 Normally displays the buffer percentage and, optionally, the | 281 Normally displays the buffer percentage and, optionally, the |
277 buffer size, the line number and the column number.") | 282 buffer size, the line number and the column number.") |
283 ;;;###autoload | |
278 (put 'mode-line-position 'risky-local-variable t) | 284 (put 'mode-line-position 'risky-local-variable t) |
279 | 285 |
280 (defvar mode-line-modes nil | 286 (defvar mode-line-modes nil |
281 "Mode-line control for displaying major and minor modes.") | 287 "Mode-line control for displaying major and minor modes.") |
288 ;;;###autoload | |
282 (put 'mode-line-modes 'risky-local-variable t) | 289 (put 'mode-line-modes 'risky-local-variable t) |
283 | 290 |
284 (defvar mode-line-mode-menu (make-sparse-keymap "Minor Modes") "\ | 291 (defvar mode-line-mode-menu (make-sparse-keymap "Minor Modes") "\ |
285 Menu of mode operations in the mode line.") | 292 Menu of mode operations in the mode line.") |
286 | 293 |
456 Mode-line control for identifying the buffer being displayed. | 463 Mode-line control for identifying the buffer being displayed. |
457 Its default value is (\"%12b\") with some text properties added. | 464 Its default value is (\"%12b\") with some text properties added. |
458 Major modes that edit things other than ordinary files may change this | 465 Major modes that edit things other than ordinary files may change this |
459 \(e.g. Info, Dired,...)") | 466 \(e.g. Info, Dired,...)") |
460 | 467 |
468 ;;;###autoload | |
461 (put 'mode-line-buffer-identification 'risky-local-variable t) | 469 (put 'mode-line-buffer-identification 'risky-local-variable t) |
462 (make-variable-buffer-local 'mode-line-buffer-identification) | 470 (make-variable-buffer-local 'mode-line-buffer-identification) |
463 | 471 |
464 (defun unbury-buffer () "\ | 472 (defun unbury-buffer () "\ |
465 Switch to the last buffer in the buffer list." | 473 Switch to the last buffer in the buffer list." |
563 Each element looks like (VARIABLE STRING); | 571 Each element looks like (VARIABLE STRING); |
564 STRING is included in the mode line if VARIABLE's value is non-nil. | 572 STRING is included in the mode line if VARIABLE's value is non-nil. |
565 | 573 |
566 Actually, STRING need not be a string; any possible mode-line element | 574 Actually, STRING need not be a string; any possible mode-line element |
567 is okay. See `mode-line-format'.") | 575 is okay. See `mode-line-format'.") |
576 ;;;###autoload | |
568 (put 'minor-mode-alist 'risky-local-variable t) | 577 (put 'minor-mode-alist 'risky-local-variable t) |
569 ;; Don't use purecopy here--some people want to change these strings. | 578 ;; Don't use purecopy here--some people want to change these strings. |
570 (setq minor-mode-alist | 579 (setq minor-mode-alist |
571 '((abbrev-mode " Abbrev") | 580 '((abbrev-mode " Abbrev") |
572 (overwrite-mode overwrite-mode) | 581 (overwrite-mode overwrite-mode) |