diff options
| author | Juri Linkov | 2007-08-20 23:28:16 +0000 |
|---|---|---|
| committer | Juri Linkov | 2007-08-20 23:28:16 +0000 |
| commit | cb3fe75728ff4703c11aeb61c079a97da11ec637 (patch) | |
| tree | affd3706b227f39c543ce7a1addef5dd7e745f79 | |
| parent | bd512dfbda24a9c80e73c6d3f9d4635aa876fc61 (diff) | |
| download | emacs-cb3fe75728ff4703c11aeb61c079a97da11ec637.tar.gz emacs-cb3fe75728ff4703c11aeb61c079a97da11ec637.zip | |
(fancy-splash-text): Change multiple tabs into one tab.
Remove "Useful File menu items" section (with "Exit Emacs"
and "Recover Crashed Session").
(fancy-splash-screens): Set tab-width to 22.
(normal-splash-screen): Replace literal tabs with \t and
fix whitespace. Remove "Useful File menu items" section (with
"Exit Emacs" and "Recover Crashed Session").
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/startup.el | 86 |
2 files changed, 41 insertions, 55 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a8942955942..045d486b097 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2007-08-20 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * startup.el (fancy-splash-text): Change multiple tabs into one | ||
| 4 | tab. Remove "Useful File menu items" section (with "Exit Emacs" | ||
| 5 | and "Recover Crashed Session"). | ||
| 6 | (fancy-splash-screens): Set tab-width to 22. | ||
| 7 | (normal-splash-screen): Replace literal tabs with \t and | ||
| 8 | fix whitespace. Remove "Useful File menu items" section (with | ||
| 9 | "Exit Emacs" and "Recover Crashed Session"). | ||
| 10 | |||
| 1 | 2007-08-20 Johannes Weiner <hannes@saeurebad.de> (tiny change) | 11 | 2007-08-20 Johannes Weiner <hannes@saeurebad.de> (tiny change) |
| 2 | 12 | ||
| 3 | * emacs-lisp/lisp-mode.el (preceding-sexp): New fun, the code was | 13 | * emacs-lisp/lisp-mode.el (preceding-sexp): New fun, the code was |
diff --git a/lisp/startup.el b/lisp/startup.el index 391cae0858e..53f120b0159 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1142,7 +1142,7 @@ regardless of the value of this variable." | |||
| 1142 | "Important Help menu items:\n" | 1142 | "Important Help menu items:\n" |
| 1143 | :face variable-pitch | 1143 | :face variable-pitch |
| 1144 | :link ("Emacs Tutorial" (lambda (button) (help-with-tutorial))) | 1144 | :link ("Emacs Tutorial" (lambda (button) (help-with-tutorial))) |
| 1145 | "\t\tLearn how to use Emacs efficiently" | 1145 | "\tLearn how to use Emacs efficiently" |
| 1146 | (lambda () | 1146 | (lambda () |
| 1147 | (let* ((en "TUTORIAL") | 1147 | (let* ((en "TUTORIAL") |
| 1148 | (tut (or (get-language-info current-language-environment | 1148 | (tut (or (get-language-info current-language-environment |
| @@ -1162,53 +1162,37 @@ regardless of the value of this variable." | |||
| 1162 | "\n" | 1162 | "\n" |
| 1163 | :face variable-pitch | 1163 | :face variable-pitch |
| 1164 | :link ("Emacs FAQ" (lambda (button) (view-emacs-FAQ))) | 1164 | :link ("Emacs FAQ" (lambda (button) (view-emacs-FAQ))) |
| 1165 | "\t\tFrequently asked questions and answers\n" | 1165 | "\tFrequently asked questions and answers\n" |
| 1166 | :link ("View Emacs Manual" (lambda (button) (info-emacs-manual))) | 1166 | :link ("View Emacs Manual" (lambda (button) (info-emacs-manual))) |
| 1167 | "\t\tView the Emacs manual using Info\n" | 1167 | "\tView the Emacs manual using Info\n" |
| 1168 | :link ("Absence of Warranty" (lambda (button) (describe-no-warranty))) | 1168 | :link ("Absence of Warranty" (lambda (button) (describe-no-warranty))) |
| 1169 | "\tGNU Emacs comes with " | 1169 | "\tGNU Emacs comes with " |
| 1170 | :face (variable-pitch :slant oblique) | 1170 | :face (variable-pitch :slant oblique) |
| 1171 | "ABSOLUTELY NO WARRANTY\n" | 1171 | "ABSOLUTELY NO WARRANTY\n" |
| 1172 | :face variable-pitch | 1172 | :face variable-pitch |
| 1173 | :link ("Copying Conditions" (lambda (button) (describe-copying))) | 1173 | :link ("Copying Conditions" (lambda (button) (describe-copying))) |
| 1174 | "\t\tConditions for redistributing and changing Emacs\n" | 1174 | "\tConditions for redistributing and changing Emacs\n" |
| 1175 | :link ("Getting New Versions" (lambda (button) (describe-distribution))) | 1175 | :link ("Getting New Versions" (lambda (button) (describe-distribution))) |
| 1176 | "\tHow to obtain the latest version of Emacs\n" | 1176 | "\tHow to obtain the latest version of Emacs\n" |
| 1177 | :link ("More Manuals / Ordering Manuals" (lambda (button) (view-order-manuals))) | 1177 | :link ("More Manuals / Ordering Manuals" (lambda (button) (view-order-manuals))) |
| 1178 | " Buying printed manuals from the FSF\n") | 1178 | " Buying printed manuals from the FSF\n") |
| 1179 | (:face (variable-pitch :weight bold) | 1179 | (:face (variable-pitch :weight bold) |
| 1180 | "Useful File menu items:\n" | ||
| 1181 | :face variable-pitch | ||
| 1182 | :link ("Exit Emacs" (lambda (button) (save-buffers-kill-emacs))) | ||
| 1183 | "\t\t(Or type " | ||
| 1184 | :face default | ||
| 1185 | "Control-x" | ||
| 1186 | :face variable-pitch | ||
| 1187 | " followed by " | ||
| 1188 | :face default | ||
| 1189 | "Control-c" | ||
| 1190 | :face variable-pitch | ||
| 1191 | ")\n" | ||
| 1192 | :link ("Recover Crashed Session" (lambda (button) (recover-session))) | ||
| 1193 | "\tRecover files you were editing before a crash\n\n" | ||
| 1194 | |||
| 1195 | :face (variable-pitch :weight bold) | ||
| 1196 | "Useful tasks:\n" | 1180 | "Useful tasks:\n" |
| 1197 | :face variable-pitch | 1181 | :face variable-pitch |
| 1198 | :link ("Visit New File" | 1182 | :link ("Visit New File" |
| 1199 | (lambda (button) (call-interactively 'find-file))) | 1183 | (lambda (button) (call-interactively 'find-file))) |
| 1200 | " Specify a new file's name, to edit the file\n" | 1184 | "\tSpecify a new file's name, to edit the file\n" |
| 1201 | :link ("Open Home Directory" | 1185 | :link ("Open Home Directory" |
| 1202 | (lambda (button) (dired "~"))) | 1186 | (lambda (button) (dired "~"))) |
| 1203 | " Open your home directory, to operate on its files\n" | 1187 | "\tOpen your home directory, to operate on its files\n" |
| 1204 | :link ("Open *scratch* buffer" | 1188 | :link ("Open *scratch* buffer" |
| 1205 | (lambda (button) (switch-to-buffer (get-buffer-create "*scratch*")))) | 1189 | (lambda (button) (switch-to-buffer (get-buffer-create "*scratch*")))) |
| 1206 | " Open buffer for notes you don't want to save\n" | 1190 | "\tOpen buffer for notes you don't want to save\n" |
| 1207 | :link ("Customize Startup" | 1191 | :link ("Customize Startup" |
| 1208 | (lambda (button) (customize-group 'initialization))) | 1192 | (lambda (button) (customize-group 'initialization))) |
| 1209 | " Change initialization settings including this screen\n" | 1193 | "\tChange initialization settings including this screen\n" |
| 1210 | 1194 | ||
| 1211 | "\nEmacs Guided Tour\t\tSee " | 1195 | "\nEmacs Guided Tour\tSee " |
| 1212 | :link ("http://www.gnu.org/software/emacs/tour/" | 1196 | :link ("http://www.gnu.org/software/emacs/tour/" |
| 1213 | (lambda (button) (browse-url "http://www.gnu.org/software/emacs/tour/"))) | 1197 | (lambda (button) (browse-url "http://www.gnu.org/software/emacs/tour/"))) |
| 1214 | 1198 | ||
| @@ -1376,7 +1360,7 @@ using the mouse.\n" | |||
| 1376 | "Meta-x recover-session RET" | 1360 | "Meta-x recover-session RET" |
| 1377 | :face '(variable-pitch :foreground "red") | 1361 | :face '(variable-pitch :foreground "red") |
| 1378 | "\nto recover" | 1362 | "\nto recover" |
| 1379 | " the files you were editing.")))) | 1363 | " the files you were editing.\n")))) |
| 1380 | 1364 | ||
| 1381 | (defun fancy-splash-screens-1 (buffer) | 1365 | (defun fancy-splash-screens-1 (buffer) |
| 1382 | "Timer function displaying a splash screen." | 1366 | "Timer function displaying a splash screen." |
| @@ -1435,6 +1419,7 @@ Warning Warning!!! Pure space overflow !!!Warning Warning | |||
| 1435 | #'fancy-splash-screens-1 | 1419 | #'fancy-splash-screens-1 |
| 1436 | splash-buffer)) | 1420 | splash-buffer)) |
| 1437 | (use-local-map splash-screen-keymap) | 1421 | (use-local-map splash-screen-keymap) |
| 1422 | (setq tab-width 22) | ||
| 1438 | (message "%s" (startup-echo-area-message)) | 1423 | (message "%s" (startup-echo-area-message)) |
| 1439 | (setq buffer-read-only t) | 1424 | (setq buffer-read-only t) |
| 1440 | (recursive-edit)) | 1425 | (recursive-edit)) |
| @@ -1462,6 +1447,7 @@ Warning Warning!!! Pure space overflow !!!Warning Warning | |||
| 1462 | (insert "\n") | 1447 | (insert "\n") |
| 1463 | (fancy-splash-tail) | 1448 | (fancy-splash-tail) |
| 1464 | (use-local-map splash-screen-keymap) | 1449 | (use-local-map splash-screen-keymap) |
| 1450 | (setq tab-width 22) | ||
| 1465 | (set-buffer-modified-p nil) | 1451 | (set-buffer-modified-p nil) |
| 1466 | (setq buffer-read-only t) | 1452 | (setq buffer-read-only t) |
| 1467 | (if (and view-read-only (not view-mode)) | 1453 | (if (and view-read-only (not view-mode)) |
| @@ -1543,60 +1529,50 @@ To quit a partially entered command, type Control-g.\n") | |||
| 1543 | (insert-button "Emacs Tutorial" | 1529 | (insert-button "Emacs Tutorial" |
| 1544 | 'action (lambda (button) (help-with-tutorial)) | 1530 | 'action (lambda (button) (help-with-tutorial)) |
| 1545 | 'follow-link t) | 1531 | 'follow-link t) |
| 1546 | (insert " Learn how to use Emacs efficiently\n") | 1532 | (insert "\t\tLearn how to use Emacs efficiently\n") |
| 1547 | (insert-button "Emacs FAQ" | 1533 | (insert-button "Emacs FAQ" |
| 1548 | 'action (lambda (button) (view-emacs-FAQ)) | 1534 | 'action (lambda (button) (view-emacs-FAQ)) |
| 1549 | 'follow-link t) | 1535 | 'follow-link t) |
| 1550 | (insert " Frequently asked questions and answers\n") | 1536 | (insert "\t\tFrequently asked questions and answers\n") |
| 1551 | (insert-button "Read the Emacs Manual" | 1537 | (insert-button "Read the Emacs Manual" |
| 1552 | 'action (lambda (button) (info-emacs-manual)) | 1538 | 'action (lambda (button) (info-emacs-manual)) |
| 1553 | 'follow-link t) | 1539 | 'follow-link t) |
| 1554 | (insert " View the Emacs manual using Info\n") | 1540 | (insert "\tView the Emacs manual using Info\n") |
| 1555 | (insert-button "\(Non)Warranty" | 1541 | (insert-button "\(Non)Warranty" |
| 1556 | 'action (lambda (button) (describe-no-warranty)) | 1542 | 'action (lambda (button) (describe-no-warranty)) |
| 1557 | 'follow-link t) | 1543 | 'follow-link t) |
| 1558 | (insert " GNU Emacs comes with ABSOLUTELY NO WARRANTY\n") | 1544 | (insert "\t\tGNU Emacs comes with ABSOLUTELY NO WARRANTY\n") |
| 1559 | (insert-button "Copying Conditions" | 1545 | (insert-button "Copying Conditions" |
| 1560 | 'action (lambda (button) (describe-copying)) | 1546 | 'action (lambda (button) (describe-copying)) |
| 1561 | 'follow-link t) | 1547 | 'follow-link t) |
| 1562 | (insert " Conditions for redistributing and changing Emacs\n") | 1548 | (insert "\tConditions for redistributing and changing Emacs\n") |
| 1563 | (insert-button "Getting New Versions" | 1549 | (insert-button "Getting New Versions" |
| 1564 | 'action (lambda (button) (describe-distribution)) | 1550 | 'action (lambda (button) (describe-distribution)) |
| 1565 | 'follow-link t) | 1551 | 'follow-link t) |
| 1566 | (insert " How to obtain the latest version of Emacs\n") | 1552 | (insert "\tHow to obtain the latest version of Emacs\n") |
| 1567 | (insert-button "More Manuals / Ordering Manuals" | 1553 | (insert-button "More Manuals / Ordering Manuals" |
| 1568 | 'action (lambda (button) (view-order-manuals)) | 1554 | 'action (lambda (button) (view-order-manuals)) |
| 1569 | 'follow-link t) | 1555 | 'follow-link t) |
| 1570 | (insert " How to order printed manuals from the FSF\n") | 1556 | (insert " How to order printed manuals from the FSF\n") |
| 1571 | |||
| 1572 | (insert "\nUseful File menu items:\n") | ||
| 1573 | (insert-button "Exit Emacs" | ||
| 1574 | 'action (lambda (button) (save-buffers-kill-emacs)) | ||
| 1575 | 'follow-link t) | ||
| 1576 | (insert " (or type Control-x followed by Control-c)\n") | ||
| 1577 | (insert-button "Recover Crashed Session" | ||
| 1578 | 'action (lambda (button) (recover-session)) | ||
| 1579 | 'follow-link t) | ||
| 1580 | (insert " Recover files you were editing before a crash\n") | ||
| 1581 | 1557 | ||
| 1582 | (insert "\nUseful tasks:\n") | 1558 | (insert "\nUseful tasks:\n") |
| 1583 | (insert-button "Visit New File" | 1559 | (insert-button "Visit New File" |
| 1584 | 'action (lambda (button) (call-interactively 'find-file)) | 1560 | 'action (lambda (button) (call-interactively 'find-file)) |
| 1585 | 'follow-link t) | 1561 | 'follow-link t) |
| 1586 | (insert " Specify a new file's name, to edit the file\n") | 1562 | (insert "\t\tSpecify a new file's name, to edit the file\n") |
| 1587 | (insert-button "Open Home Directory" | 1563 | (insert-button "Open Home Directory" |
| 1588 | 'action (lambda (button) (dired "~")) | 1564 | 'action (lambda (button) (dired "~")) |
| 1589 | 'follow-link t) | 1565 | 'follow-link t) |
| 1590 | (insert " Open your home directory, to operate on its files\n") | 1566 | (insert "\tOpen your home directory, to operate on its files\n") |
| 1591 | (insert-button "Open *scratch* buffer" | 1567 | (insert-button "Open *scratch* buffer" |
| 1592 | 'action (lambda (button) (switch-to-buffer | 1568 | 'action (lambda (button) (switch-to-buffer |
| 1593 | (get-buffer-create "*scratch*"))) | 1569 | (get-buffer-create "*scratch*"))) |
| 1594 | 'follow-link t) | 1570 | 'follow-link t) |
| 1595 | (insert " Open buffer for notes you don't want to save\n") | 1571 | (insert "\tOpen buffer for notes you don't want to save\n") |
| 1596 | (insert-button "Customize Startup" | 1572 | (insert-button "Customize Startup" |
| 1597 | 'action (lambda (button) (customize-group 'initialization)) | 1573 | 'action (lambda (button) (customize-group 'initialization)) |
| 1598 | 'follow-link t) | 1574 | 'follow-link t) |
| 1599 | (insert " Change initialization settings including this screen\n") | 1575 | (insert "\tChange initialization settings including this screen\n") |
| 1600 | 1576 | ||
| 1601 | (insert "\n" (emacs-version) | 1577 | (insert "\n" (emacs-version) |
| 1602 | "\n" emacs-copyright)) | 1578 | "\n" emacs-copyright)) |
| @@ -1619,21 +1595,21 @@ Get help C-h (Hold down CTRL and press h) | |||
| 1619 | (insert-button "Emacs manual" | 1595 | (insert-button "Emacs manual" |
| 1620 | 'action (lambda (button) (info-emacs-manual)) | 1596 | 'action (lambda (button) (info-emacs-manual)) |
| 1621 | 'follow-link t) | 1597 | 'follow-link t) |
| 1622 | (insert " C-h r ") | 1598 | (insert " C-h r\t") |
| 1623 | (insert-button "Browse manuals" | 1599 | (insert-button "Browse manuals" |
| 1624 | 'action (lambda (button) (Info-directory)) | 1600 | 'action (lambda (button) (Info-directory)) |
| 1625 | 'follow-link t) | 1601 | 'follow-link t) |
| 1626 | (insert " C-h i | 1602 | (insert "\t C-h i |
| 1627 | ") | 1603 | ") |
| 1628 | (insert-button "Emacs tutorial" | 1604 | (insert-button "Emacs tutorial" |
| 1629 | 'action (lambda (button) (help-with-tutorial)) | 1605 | 'action (lambda (button) (help-with-tutorial)) |
| 1630 | 'follow-link t) | 1606 | 'follow-link t) |
| 1631 | (insert " C-h t Undo changes C-x u | 1607 | (insert " C-h t\tUndo changes\t C-x u |
| 1632 | ") | 1608 | ") |
| 1633 | (insert-button "Buy manuals" | 1609 | (insert-button "Buy manuals" |
| 1634 | 'action (lambda (button) (view-order-manuals)) | 1610 | 'action (lambda (button) (view-order-manuals)) |
| 1635 | 'follow-link t) | 1611 | 'follow-link t) |
| 1636 | (insert " C-h C-m Exit Emacs C-x C-c")) | 1612 | (insert "\t C-h C-m\tExit Emacs\t C-x C-c")) |
| 1637 | 1613 | ||
| 1638 | (insert (format " | 1614 | (insert (format " |
| 1639 | Get help %s | 1615 | Get help %s |
| @@ -1650,19 +1626,19 @@ Get help %s | |||
| 1650 | (insert-button "Browse manuals" | 1626 | (insert-button "Browse manuals" |
| 1651 | 'action (lambda (button) (Info-directory)) | 1627 | 'action (lambda (button) (Info-directory)) |
| 1652 | 'follow-link t) | 1628 | 'follow-link t) |
| 1653 | (insert (substitute-command-keys "\t\\[info] | 1629 | (insert (substitute-command-keys "\t \\[info] |
| 1654 | ")) | 1630 | ")) |
| 1655 | (insert-button "Emacs tutorial" | 1631 | (insert-button "Emacs tutorial" |
| 1656 | 'action (lambda (button) (help-with-tutorial)) | 1632 | 'action (lambda (button) (help-with-tutorial)) |
| 1657 | 'follow-link t) | 1633 | 'follow-link t) |
| 1658 | (insert (substitute-command-keys | 1634 | (insert (substitute-command-keys |
| 1659 | " \\[help-with-tutorial]\tUndo changes\t\\[advertised-undo] | 1635 | " \\[help-with-tutorial]\tUndo changes\t \\[advertised-undo] |
| 1660 | ")) | 1636 | ")) |
| 1661 | (insert-button "Buy manuals" | 1637 | (insert-button "Buy manuals" |
| 1662 | 'action (lambda (button) (view-order-manuals)) | 1638 | 'action (lambda (button) (view-order-manuals)) |
| 1663 | 'follow-link t) | 1639 | 'follow-link t) |
| 1664 | (insert (substitute-command-keys | 1640 | (insert (substitute-command-keys |
| 1665 | " \\[view-order-manuals]\tExit Emacs\t\\[save-buffers-kill-emacs]"))) | 1641 | "\t \\[view-order-manuals]\tExit Emacs\t \\[save-buffers-kill-emacs]"))) |
| 1666 | 1642 | ||
| 1667 | ;; Say how to use the menu bar with the keyboard. | 1643 | ;; Say how to use the menu bar with the keyboard. |
| 1668 | (insert "\n") | 1644 | (insert "\n") |