changeset 50016:03e0aadb68a0

xsmfns.c (smc_save_yourself_CB): Add --no-splash to options when restarting Emacs.
author Jan Djärv <jan.h.d@swipnet.se>
date Mon, 03 Mar 2003 19:55:10 +0000
parents e0d5566e0b0d
children 0ee18dc00572
files src/ChangeLog src/xsmfns.c
diffstat 2 files changed, 17 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Mar 03 19:09:40 2003 +0000
+++ b/src/ChangeLog	Mon Mar 03 19:55:10 2003 +0000
@@ -1,3 +1,8 @@
+2003-03-03  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
+
+	* xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
+	when restarting Emacs.
+
 2003-03-03  Richard M. Stallman  <rms@gnu.org>
 
 	* buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
--- a/src/xsmfns.c	Mon Mar 03 19:09:40 2003 +0000
+++ b/src/xsmfns.c	Mon Mar 03 19:55:10 2003 +0000
@@ -94,6 +94,12 @@
 #define SMID_OPT "--smid="
 
 
+/* The option to start Emacs without the splash screen when
+   restarting Emacs. */
+
+#define NOSPLASH_OPT "--no-splash"
+
+
 /* Handle any messages from the session manager.  If no connection is
    open to a session manager, just return 0.
    Otherwise returns the number of events stored in buffer BUFP,
@@ -220,11 +226,11 @@
   props[props_idx]->vals[0].value = SDATA (Vinvocation_name);
   ++props_idx;
 
-  /* How to restart Emacs (i.e.: /path/to/emacs --smid=xxxx). */
+  /* How to restart Emacs (i.e.: /path/to/emacs --smid=xxxx --no-splash). */
   props[props_idx] = &prop_ptr[props_idx];
   props[props_idx]->name = SmRestartCommand;
   props[props_idx]->type = SmLISTofARRAY8;
-  props[props_idx]->num_vals = 2; /* 2 values: /path/to/emacs, --smid=xxx */
+  props[props_idx]->num_vals = 3; /* /path/to/emacs, --smid=xxx --no-splash */
   props[props_idx]->vals = &values[val_idx];
   props[props_idx]->vals[0].length = strlen (emacs_program);
   props[props_idx]->vals[0].value = emacs_program;
@@ -235,7 +241,10 @@
 
   props[props_idx]->vals[1].length = strlen (smid_opt);
   props[props_idx]->vals[1].value = smid_opt;
-  val_idx += 2;
+
+  props[props_idx]->vals[2].length = strlen (NOSPLASH_OPT);
+  props[props_idx]->vals[2].value = NOSPLASH_OPT;
+  val_idx += 3;
   ++props_idx;
 
   /* User id */