aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2005-12-29 21:10:33 +0000
committerKaroly Lorentey2005-12-29 21:10:33 +0000
commitc28443026f6215a6a4bbe65f16fcd8dbbefc50f8 (patch)
tree9c604ec4b7efd6313db962f4a938ddd9828d88ce
parentc5166388c38d333e00dd02b64623241207465481 (diff)
downloademacs-c28443026f6215a6a4bbe65f16fcd8dbbefc50f8.tar.gz
emacs-c28443026f6215a6a4bbe65f16fcd8dbbefc50f8.zip
Show the splash screen on Emacsclient frames. Show *scratch* by default.
* lisp/server.el (server-process-filter): Show the Emacs splash screen and startup echo area message. Display the *scratch* buffer by default. * lisp/startup.el (fancy-splash-screens): Restore previous buffer, even if it's *scratch*. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-473
-rw-r--r--lisp/server.el7
-rw-r--r--lisp/startup.el3
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 9de88d55896..68c267047fc 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -752,6 +752,13 @@ The following commands are accepted by the client:
752 (setq buffers (server-visit-files files client nowait)) 752 (setq buffers (server-visit-files files client nowait))
753 (run-hooks 'post-command-hook)) 753 (run-hooks 'post-command-hook))
754 754
755 (with-selected-frame frame
756 (switch-to-buffer (or (car buffers)
757 (get-buffer-create "*scratch*")))
758 (unless inhibit-splash-screen
759 (display-splash-screen))
760 (display-startup-echo-area-message))
761
755 ;; Delete the client if necessary. 762 ;; Delete the client if necessary.
756 (cond 763 (cond
757 (nowait 764 (nowait
diff --git a/lisp/startup.el b/lisp/startup.el
index cef38411dc9..651bbb4d33d 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1344,7 +1344,8 @@ mouse."
1344 (cancel-timer timer) 1344 (cancel-timer timer)
1345 (setq display-hourglass old-hourglass 1345 (setq display-hourglass old-hourglass
1346 minor-mode-map-alist old-minor-mode-map-alist) 1346 minor-mode-map-alist old-minor-mode-map-alist)
1347 (kill-buffer splash-buffer)))))) 1347 (kill-buffer splash-buffer)
1348 (switch-to-buffer fancy-splash-outer-buffer))))))
1348 1349
1349(defun fancy-splash-frame () 1350(defun fancy-splash-frame ()
1350 "Return the frame to use for the fancy splash screen. 1351 "Return the frame to use for the fancy splash screen.