comparison lisp/help.el @ 5025:0556b068e9ee

(describe-project): New function, on C-h C-p. (help-for-help): Add C-p. Refer to help-command, not help-for-help, in the \\[...].
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Nov 1993 09:23:34 +0000
parents 1e8785572dd4
children 801232ccc5e5
comparison
equal deleted inserted replaced
5024:7eff30849357 5025:0556b068e9ee
42 (define-key help-map "?" 'help-for-help) 42 (define-key help-map "?" 'help-for-help)
43 43
44 (define-key help-map "\C-c" 'describe-copying) 44 (define-key help-map "\C-c" 'describe-copying)
45 (define-key help-map "\C-d" 'describe-distribution) 45 (define-key help-map "\C-d" 'describe-distribution)
46 (define-key help-map "\C-w" 'describe-no-warranty) 46 (define-key help-map "\C-w" 'describe-no-warranty)
47 (define-key help-map "\C-p" 'describe-project)
47 (define-key help-map "a" 'command-apropos) 48 (define-key help-map "a" 'command-apropos)
48 49
49 (define-key help-map "b" 'describe-bindings) 50 (define-key help-map "b" 'describe-bindings)
50 51
51 (define-key help-map "c" 'describe-key-briefly) 52 (define-key help-map "c" 'describe-key-briefly)
199 (interactive) 200 (interactive)
200 (find-file-read-only 201 (find-file-read-only
201 (expand-file-name "COPYING" data-directory)) 202 (expand-file-name "COPYING" data-directory))
202 (goto-char (point-min))) 203 (goto-char (point-min)))
203 204
205 (defun describe-project ()
206 "Display info on the GNU project."
207 (interactive)
208 (find-file-read-only
209 (expand-file-name "GNU" data-directory))
210 (goto-char (point-min)))
211
204 (defun describe-no-warranty () 212 (defun describe-no-warranty ()
205 "Display info on all the kinds of warranty Emacs does NOT have." 213 "Display info on all the kinds of warranty Emacs does NOT have."
206 (interactive) 214 (interactive)
207 (describe-copying) 215 (describe-copying)
208 (let (case-fold-search) 216 (let (case-fold-search)
243 (search-forward " " nil t) 251 (search-forward " " nil t)
244 (insert "\n"))) 252 (insert "\n")))
245 (print-help-return-message))) 253 (print-help-return-message)))
246 254
247 (make-help-screen help-for-help 255 (make-help-screen help-for-help
248 "a b c f C-f i k C-k l m n p s t v w C-c C-d C-n C-w. Type \\[help-for-help] again for more help: " 256 "a b c f C-f i k C-k l m n p s t v w C-c C-d C-n C-w. Type \\[help-command] again for more help: "
249 "You have typed \\[help-for-help], the help character. Type a Help option: 257 "You have typed \\[help-command], the help character. Type a Help option:
250 258
251 a command-apropos. Give a substring, and see a list of commands 259 a command-apropos. Give a substring, and see a list of commands
252 (functions interactively callable) that contain 260 (functions interactively callable) that contain
253 that substring. See also the apropos command. 261 that substring. See also the apropos command.
254 b describe-bindings. Display table of all key bindings. 262 b describe-bindings. Display table of all key bindings.
274 w where-is. Type command name; it prints which keystrokes 282 w where-is. Type command name; it prints which keystrokes
275 invoke that command. 283 invoke that command.
276 C-c print Emacs copying permission (General Public License). 284 C-c print Emacs copying permission (General Public License).
277 C-d print Emacs ordering information. 285 C-d print Emacs ordering information.
278 C-n print news of recent Emacs changes. 286 C-n print news of recent Emacs changes.
287 C-p print information about the GNU project.
279 C-w print information on absence of warranty for GNU Emacs." 288 C-w print information on absence of warranty for GNU Emacs."
280 help-map) 289 help-map)
281 290
282 ;; Return a function which is called by the list containing point. 291 ;; Return a function which is called by the list containing point.
283 ;; If that gives no function, return a function whose name is around point. 292 ;; If that gives no function, return a function whose name is around point.