diff options
| author | Eli Zaretskii | 2006-01-21 09:32:52 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-01-21 09:32:52 +0000 |
| commit | 6ff901c753a11e45d5fbd70cd35ed10746bfafcd (patch) | |
| tree | fbb7a396f7afc7f7bed908503ce0da477d85d5cb /lisp | |
| parent | 6a056c5d38f7059b7c70e784dcdf62eb00d561d7 (diff) | |
| download | emacs-6ff901c753a11e45d5fbd70cd35ed10746bfafcd.tar.gz emacs-6ff901c753a11e45d5fbd70cd35ed10746bfafcd.zip | |
(command-line-1): Handle --no-desktop if desktop.el is not loaded.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d8beecfd4a0..54af57feb0f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-01-21 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * startup.el (command-line-1): Handle --no-desktop if desktop.el | ||
| 4 | is not loaded. | ||
| 5 | |||
| 1 | 2006-01-20 Jay Belanger <belanger@truman.edu> | 6 | 2006-01-20 Jay Belanger <belanger@truman.edu> |
| 2 | 7 | ||
| 3 | * calc/calcalg2.el (calc-sum-rec): Fix the sum when the lower | 8 | * calc/calcalg2.el (calc-sum-rec): Fix the sum when the lower |
diff --git a/lisp/startup.el b/lisp/startup.el index bc00dc36ba6..4db086fa7a7 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1628,7 +1628,7 @@ normal otherwise." | |||
| 1628 | (longopts | 1628 | (longopts |
| 1629 | (append '(("--funcall") ("--load") ("--insert") ("--kill") | 1629 | (append '(("--funcall") ("--load") ("--insert") ("--kill") |
| 1630 | ("--directory") ("--eval") ("--execute") ("--no-splash") | 1630 | ("--directory") ("--eval") ("--execute") ("--no-splash") |
| 1631 | ("--find-file") ("--visit") ("--file")) | 1631 | ("--find-file") ("--visit") ("--file") ("--no-desktop")) |
| 1632 | (mapcar (lambda (elt) | 1632 | (mapcar (lambda (elt) |
| 1633 | (list (concat "-" (car elt)))) | 1633 | (list (concat "-" (car elt)))) |
| 1634 | command-switch-alist))) | 1634 | command-switch-alist))) |
| @@ -1728,6 +1728,13 @@ normal otherwise." | |||
| 1728 | ((equal argi "-kill") | 1728 | ((equal argi "-kill") |
| 1729 | (kill-emacs t)) | 1729 | (kill-emacs t)) |
| 1730 | 1730 | ||
| 1731 | ;; This is for when they use --no-desktop with -q, or | ||
| 1732 | ;; don't load Desktop in their .emacs. If desktop.el | ||
| 1733 | ;; _is_ loaded, it will handle this switch, and we | ||
| 1734 | ;; won't see it by the time we get here. | ||
| 1735 | ((equal argi "-no-desktop") | ||
| 1736 | (message "\"--no-desktop\" ignored because the Desktop package is not loaded")) | ||
| 1737 | |||
| 1731 | ((string-match "^\\+[0-9]+\\'" argi) | 1738 | ((string-match "^\\+[0-9]+\\'" argi) |
| 1732 | (setq line (string-to-number argi))) | 1739 | (setq line (string-to-number argi))) |
| 1733 | 1740 | ||