comparison lisp/bindings.el @ 25537:f329ed7625ee

Make some doc strings obey the make-docfile convention. (debug-ignored-errors): Remove BBDB ones.
author Dave Love <fx@gnu.org>
date Sat, 04 Sep 1999 11:29:26 +0000
parents 4d817651d5b4
children 422a19bbd516
comparison
equal deleted inserted replaced
25536:2cfdaebe325c 25537:f329ed7625ee
31 ;;; when that string should be stored in the file etc/DOCnnn, not in core. 31 ;;; when that string should be stored in the file etc/DOCnnn, not in core.
32 ;;; 32 ;;;
33 ;;; Such strings read into Lisp as numbers (during the pure-loading phase). 33 ;;; Such strings read into Lisp as numbers (during the pure-loading phase).
34 ;;; 34 ;;;
35 ;;; But you must obey certain rules to make sure the string is understood 35 ;;; But you must obey certain rules to make sure the string is understood
36 ;;; and goes into etc/DOCnnn properly. Otherwise, the string will not go 36 ;;; and goes into etc/DOCnnn properly.
37 ;;; anywhere!
38 ;;; 37 ;;;
39 ;;; The doc string must appear in the standard place in a call to 38 ;;; The doc string must appear in the standard place in a call to
40 ;;; defun, autoload, defvar or defconst. No Lisp macros are recognized. 39 ;;; defun, autoload, defvar or defconst. No Lisp macros are recognized.
41 ;;; The open-paren starting the definition must appear in column 0. 40 ;;; The open-paren starting the definition must appear in column 0.
42 ;;; 41 ;;;
62 ;;; coding system for encoding text to send to buffer process (if any)." 61 ;;; coding system for encoding text to send to buffer process (if any)."
63 ) 62 )
64 63
65 (make-variable-buffer-local 'mode-line-mule-info) 64 (make-variable-buffer-local 'mode-line-mule-info)
66 65
67 (defvar mode-line-buffer-identification (purecopy '("%12b")) 66 (defvar mode-line-buffer-identification (purecopy '("%12b")) "\
68 "Mode-line control for identifying the buffer being displayed. 67 Mode-line control for identifying the buffer being displayed.
69 Its default value is (\"%12b\"). 68 Its default value is (\"%12b\").
70 Major modes that edit things other than ordinary files may change this 69 Major modes that edit things other than ordinary files may change this
71 \(e.g. Info, Dired,...)") 70 \(e.g. Info, Dired,...)")
72 71
73 (make-variable-buffer-local 'mode-line-buffer-identification) 72 (make-variable-buffer-local 'mode-line-buffer-identification)
74 73
75 (defvar mode-line-frame-identification '("-%F ")) 74 (defvar mode-line-frame-identification '("-%F "))
76 75
77 (defvar mode-line-process nil 76 (defvar mode-line-process nil "\
78 "Mode-line control for displaying info on process status. 77 Mode-line control for displaying info on process status.
79 Normally nil in most modes, since there is no process to display.") 78 Normally nil in most modes, since there is no process to display.")
80 79
81 (make-variable-buffer-local 'mode-line-process) 80 (make-variable-buffer-local 'mode-line-process)
82 81
83 (defconst mode-line-modified 82 (defconst mode-line-modified
132 (overwrite-mode overwrite-mode) 131 (overwrite-mode overwrite-mode)
133 (auto-fill-function " Fill") 132 (auto-fill-function " Fill")
134 ;; not really a minor mode... 133 ;; not really a minor mode...
135 (defining-kbd-macro " Def"))) 134 (defining-kbd-macro " Def")))
136 135
137 (defvar mode-line-buffer-identification-keymap nil 136 (defvar mode-line-buffer-identification-keymap nil "\
138 "Keymap for what is displayed by `mode-line-buffer-identification'.") 137 Keymap for what is displayed by `mode-line-buffer-identification'.")
139 138
140 (defvar mode-line-minor-mode-keymap nil 139 (defvar mode-line-minor-mode-keymap nil "\
141 "Keymap for what is displayed by `mode-line-mode-name'.") 140 Keymap for what is displayed by `mode-line-mode-name'.")
142 141
143 (defvar mode-line-mode-menu-keymap nil 142 (defvar mode-line-mode-menu-keymap nil "\
144 "Keymap for mode operations menu in the mode line.") 143 Keymap for mode operations menu in the mode line.")
145 144
146 (defun mode-line-unbury-buffer () 145 (defun mode-line-unbury-buffer () "\
147 "Switch to the last buffer in the buffer list that is not hidden." 146 Switch to the last buffer in the buffer list that is not hidden."
148 (interactive) 147 (interactive)
149 (let ((list (reverse (buffer-list)))) 148 (let ((list (reverse (buffer-list))))
150 (while (eq (sref (buffer-name (car list)) 0) ? ) 149 (while (eq (sref (buffer-name (car list)) 0) ? )
151 (setq list (cdr list))) 150 (setq list (cdr list)))
152 (switch-to-buffer (car list)))) 151 (switch-to-buffer (car list))))
153 152
154 (defun mode-line-other-buffer () 153 (defun mode-line-other-buffer () "\
155 "Switch to the most recently selected buffer other than the current one." 154 Switch to the most recently selected buffer other than the current one."
156 (interactive) 155 (interactive)
157 (switch-to-buffer (other-buffer))) 156 (switch-to-buffer (other-buffer)))
158 157
159 (defun mode-line-mode-menu-1 (event) 158 (defun mode-line-mode-menu-1 (event)
160 (interactive "e") 159 (interactive "e")
164 (binding (and selection (lookup-key mode-line-mode-menu 163 (binding (and selection (lookup-key mode-line-mode-menu
165 (vector (car selection)))))) 164 (vector (car selection))))))
166 (if binding 165 (if binding
167 (call-interactively binding))))) 166 (call-interactively binding)))))
168 167
169 (defun mode-line-mode-name () 168 (defun mode-line-mode-name () "\
170 "Return a string to display in the mode line for the current mode name." 169 Return a string to display in the mode line for the current mode name."
171 (let (length (result mode-name)) 170 (let (length (result mode-name))
172 (when mode-line-mouse-sensitive-p 171 (when mode-line-mouse-sensitive-p
173 (let ((local-map (get-text-property 0 'local-map result)) 172 (let ((local-map (get-text-property 0 'local-map result))
174 (help-echo (get-text-property 0 'help-echo result))) 173 (help-echo (get-text-property 0 'help-echo result)))
175 (setq result (copy-sequence result)) 174 (setq result (copy-sequence result))
183 (null (next-single-property-change 0 'help-echo result))) 182 (null (next-single-property-change 0 'help-echo result)))
184 (put-text-property 0 (length result) 183 (put-text-property 0 (length result)
185 'help-echo "mouse-3: minor mode menu" result)))) 184 'help-echo "mouse-3: minor mode menu" result))))
186 result)) 185 result))
187 186
188 (defvar mode-line-mouse-sensitive-p nil 187 (defvar mode-line-mouse-sensitive-p nil "\
189 "Non-nil means mode line has been made mouse-sensitive.") 188 Non-nil means mode line has been made mouse-sensitive.")
190 189
191 (defun make-mode-line-mouse-sensitive () 190 (defun make-mode-line-mouse-sensitive ()
192 (when (and window-system 191 (when (and window-system
193 (not mode-line-mouse-sensitive-p)) 192 (not mode-line-mouse-sensitive-p))
194 (setq mode-line-mouse-sensitive-p t) 193 (setq mode-line-mouse-sensitive-p t)
401 "^Buffer .* doesn't exist$" 400 "^Buffer .* doesn't exist$"
402 "^There is no file to merge$" 401 "^There is no file to merge$"
403 "^Version control package .*.el not found. Use vc.el instead$" 402 "^Version control package .*.el not found. Use vc.el instead$"
404 403
405 ;; cus-edit 404 ;; cus-edit
406 "^No user options have changed defaults in recent Emacs versions$" 405 "^No user options have changed defaults in recent Emacs versions$"))
407
408 ;; BBDB
409 "^no previous record$"
410 "^no next record$"))
411 406
412 407
413 (make-variable-buffer-local 'indent-tabs-mode) 408 (make-variable-buffer-local 'indent-tabs-mode)
414 409
415 ;; We have base64 functions built in now. 410 ;; We have base64 functions built in now.
416 (add-to-list 'features 'base64) 411 (add-to-list 'features 'base64)
417 412
418 (define-key esc-map "\t" 'complete-symbol) 413 (define-key esc-map "\t" 'complete-symbol)
419 414
420 (defun complete-symbol (arg) 415 (defun complete-symbol (arg) "\
421 "Perform tags completion on the text around point. 416 Perform tags completion on the text around point.
422 Completes to the set of names listed in the current tags table. 417 Completes to the set of names listed in the current tags table.
423 The string to complete is chosen in the same way as the default 418 The string to complete is chosen in the same way as the default
424 for \\[find-tag] (which see). 419 for \\[find-tag] (which see).
425 420
426 With a prefix argument, this command does completion within 421 With a prefix argument, this command does completion within