Mercurial > emacs
comparison lisp/startup.el @ 46330:04fc40356d65
(command-line): Set memory-signal-data.
(fancy-splash-text, normal-splash-screen):
Mention "Read the Emacs Manual" or C-h r.
Rearrange the initial help to put the help cmds on left
and the actions (exit, undo) on the right. Other small
text clarifications.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 12 Jul 2002 23:21:48 +0000 |
parents | 742f54d0aedb |
children | bdd4f73e1fec |
comparison
equal
deleted
inserted
replaced
46329:081502d6dd98 | 46330:04fc40356d65 |
---|---|
1033 ;; Strip off last hyphen and what follows, then try again | 1033 ;; Strip off last hyphen and what follows, then try again |
1034 (if (setq hyphend (string-match "[-_][^-_]+$" term)) | 1034 (if (setq hyphend (string-match "[-_][^-_]+$" term)) |
1035 (setq term (substring term 0 hyphend)) | 1035 (setq term (substring term 0 hyphend)) |
1036 (setq term nil))))) | 1036 (setq term nil))))) |
1037 | 1037 |
1038 ;; Update the out-of-memory error message based on user's key bindings | |
1039 ;; for save-some-buffers. | |
1040 (setq memory-signal-data | |
1041 (list 'error | |
1042 (substitute-command-keys "Memory exhausted--use \\[save-some-buffers] then exit and restart Emacs"))) | |
1043 | |
1038 ;; Process the remaining args. | 1044 ;; Process the remaining args. |
1039 (command-line-1 (cdr command-line-args)) | 1045 (command-line-1 (cdr command-line-args)) |
1040 | 1046 |
1041 ;; If -batch, terminate after processing the command options. | 1047 ;; If -batch, terminate after processing the command options. |
1042 (if noninteractive (kill-emacs t)) | 1048 (if noninteractive (kill-emacs t)) |
1070 :face (variable-pitch :weight bold) | 1076 :face (variable-pitch :weight bold) |
1071 "Important Help menu items:\n" | 1077 "Important Help menu items:\n" |
1072 :face variable-pitch "\ | 1078 :face variable-pitch "\ |
1073 Emacs Tutorial\tLearn-by-doing tutorial for using Emacs efficiently | 1079 Emacs Tutorial\tLearn-by-doing tutorial for using Emacs efficiently |
1074 Emacs FAQ\tFrequently asked questions and answers | 1080 Emacs FAQ\tFrequently asked questions and answers |
1081 Read the Emacs Manual\tView the Emacs manual using Info | |
1075 \(Non)Warranty\tGNU Emacs comes with " | 1082 \(Non)Warranty\tGNU Emacs comes with " |
1076 :face (variable-pitch :slant oblique) | 1083 :face (variable-pitch :slant oblique) |
1077 "ABSOLUTELY NO WARRANTY\n" | 1084 "ABSOLUTELY NO WARRANTY\n" |
1078 :face variable-pitch | 1085 :face variable-pitch |
1079 "\ | 1086 "\ |
1080 Copying Conditions\tConditions for redistributing and changing Emacs | 1087 Copying Conditions\tConditions for redistributing and changing Emacs |
1081 Ordering Manuals\tHow to order Emacs manuals from the Free Software Foundation\n") | 1088 Ordering Manuals\tBuying printed Emacs manuals from the Free Software Foundation\n") |
1082 (:face variable-pitch | 1089 (:face variable-pitch |
1083 "You can do basic editing with the menu bar and scroll bar \ | 1090 "You can do basic editing with the menu bar and scroll bar \ |
1084 using the mouse.\n\n" | 1091 using the mouse.\n\n" |
1085 :face (variable-pitch :weight bold) | 1092 :face (variable-pitch :weight bold) |
1086 "Useful File menu items:\n" | 1093 "Useful File menu items:\n" |
1350 Recover Session recover files you were editing before a crash | 1357 Recover Session recover files you were editing before a crash |
1351 | 1358 |
1352 Important Help menu items: | 1359 Important Help menu items: |
1353 Emacs Tutorial Learn-by-doing tutorial for using Emacs efficiently. | 1360 Emacs Tutorial Learn-by-doing tutorial for using Emacs efficiently. |
1354 Emacs FAQ Frequently asked questions and answers | 1361 Emacs FAQ Frequently asked questions and answers |
1362 Read the Emacs Manual View the Emacs manual using Info | |
1355 \(Non)Warranty GNU Emacs comes with ABSOLUTELY NO WARRANTY | 1363 \(Non)Warranty GNU Emacs comes with ABSOLUTELY NO WARRANTY |
1356 Copying Conditions Conditions for redistributing and changing Emacs. | 1364 Copying Conditions Conditions for redistributing and changing Emacs. |
1357 Getting New Versions How to obtain the latest version of Emacs. | 1365 Getting New Versions How to obtain the latest version of Emacs. |
1358 Ordering Manuals How to order manuals from the FSF. | 1366 Ordering Manuals How to order printed manuals from the FSF. |
1359 ") | 1367 ") |
1360 (insert "\n\n" (emacs-version) | 1368 (insert "\n\n" (emacs-version) |
1361 " | 1369 " |
1362 Copyright (C) 2002 Free Software Foundation, Inc.")) | 1370 Copyright (C) 2002 Free Software Foundation, Inc.")) |
1363 | 1371 |
1368 (if (and (eq (key-binding "\C-h") 'help-command) | 1376 (if (and (eq (key-binding "\C-h") 'help-command) |
1369 (eq (key-binding "\C-xu") 'advertised-undo) | 1377 (eq (key-binding "\C-xu") 'advertised-undo) |
1370 (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) | 1378 (eq (key-binding "\C-x\C-c") 'save-buffers-kill-emacs) |
1371 (eq (key-binding "\C-ht") 'help-with-tutorial) | 1379 (eq (key-binding "\C-ht") 'help-with-tutorial) |
1372 (eq (key-binding "\C-hi") 'info) | 1380 (eq (key-binding "\C-hi") 'info) |
1381 (eq (key-binding "\C-hr") 'info-emacs-manual) | |
1373 (eq (key-binding "\C-h\C-n") 'view-emacs-news)) | 1382 (eq (key-binding "\C-h\C-n") 'view-emacs-news)) |
1374 (insert " | 1383 (insert " |
1375 Get help C-h (Hold down CTRL and press h) | 1384 Get help C-h (Hold down CTRL and press h) |
1376 Undo changes C-x u Exit Emacs C-x C-c | 1385 Emacs manual C-h r |
1377 Get a tutorial C-h t Use Info to read docs C-h i | 1386 Emacs tutorial C-h t Undo changes C-x u |
1378 Ordering manuals C-h RET") | 1387 Buy manuals C-h C-m Exit Emacs C-x C-c |
1388 Browse manuals C-h i") | |
1389 | |
1379 (insert (substitute-command-keys | 1390 (insert (substitute-command-keys |
1380 (format "\n | 1391 (format "\n |
1381 Get help %s | 1392 Get help %s |
1382 Undo changes \\[advertised-undo] | 1393 Emacs manual \\[info-emacs-manual] |
1383 Exit Emacs \\[save-buffers-kill-emacs] | 1394 Emacs tutorial \\[help-with-tutorial] Undo changes \\[advertised-undo] |
1384 Get a tutorial \\[help-with-tutorial] | 1395 Buy manuals \\[view-order-manuals] Exit Emacs \\[save-buffers-kill-emacs] |
1385 Use Info to read docs \\[info] | 1396 Browse manuals \\[info]" |
1386 Ordering manuals \\[view-order-manuals]" | |
1387 (let ((where (where-is-internal | 1397 (let ((where (where-is-internal |
1388 'help-command nil t))) | 1398 'help-command nil t))) |
1389 (if where | 1399 (if where |
1390 (key-description where) | 1400 (key-description where) |
1391 "M-x help")))))) | 1401 "M-x help")))))) |