diff options
| author | Jan Djärv | 2003-03-03 19:55:10 +0000 |
|---|---|---|
| committer | Jan Djärv | 2003-03-03 19:55:10 +0000 |
| commit | ca2417b9b97919dbc23bf38916f7cd86902d68de (patch) | |
| tree | 362695430ce11089b6358c7d67643be8bded7ae0 /src | |
| parent | 5b20caf08da67b65f632e75113e1fbb91c4438e0 (diff) | |
| download | emacs-ca2417b9b97919dbc23bf38916f7cd86902d68de.tar.gz emacs-ca2417b9b97919dbc23bf38916f7cd86902d68de.zip | |
xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
when restarting Emacs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xsmfns.c | 15 |
2 files changed, 17 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c5db3849fb8..8c9ae951630 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-03-03 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options | ||
| 4 | when restarting Emacs. | ||
| 5 | |||
| 1 | 2003-03-03 Richard M. Stallman <rms@gnu.org> | 6 | 2003-03-03 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure | 8 | * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure |
diff --git a/src/xsmfns.c b/src/xsmfns.c index 8f6c8714eae..5e712fa1b38 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c | |||
| @@ -94,6 +94,12 @@ Lisp_Object Vx_session_previous_id; | |||
| 94 | #define SMID_OPT "--smid=" | 94 | #define SMID_OPT "--smid=" |
| 95 | 95 | ||
| 96 | 96 | ||
| 97 | /* The option to start Emacs without the splash screen when | ||
| 98 | restarting Emacs. */ | ||
| 99 | |||
| 100 | #define NOSPLASH_OPT "--no-splash" | ||
| 101 | |||
| 102 | |||
| 97 | /* Handle any messages from the session manager. If no connection is | 103 | /* Handle any messages from the session manager. If no connection is |
| 98 | open to a session manager, just return 0. | 104 | open to a session manager, just return 0. |
| 99 | Otherwise returns the number of events stored in buffer BUFP, | 105 | Otherwise returns the number of events stored in buffer BUFP, |
| @@ -220,11 +226,11 @@ smc_save_yourself_CB (smcConn, | |||
| 220 | props[props_idx]->vals[0].value = SDATA (Vinvocation_name); | 226 | props[props_idx]->vals[0].value = SDATA (Vinvocation_name); |
| 221 | ++props_idx; | 227 | ++props_idx; |
| 222 | 228 | ||
| 223 | /* How to restart Emacs (i.e.: /path/to/emacs --smid=xxxx). */ | 229 | /* How to restart Emacs (i.e.: /path/to/emacs --smid=xxxx --no-splash). */ |
| 224 | props[props_idx] = &prop_ptr[props_idx]; | 230 | props[props_idx] = &prop_ptr[props_idx]; |
| 225 | props[props_idx]->name = SmRestartCommand; | 231 | props[props_idx]->name = SmRestartCommand; |
| 226 | props[props_idx]->type = SmLISTofARRAY8; | 232 | props[props_idx]->type = SmLISTofARRAY8; |
| 227 | props[props_idx]->num_vals = 2; /* 2 values: /path/to/emacs, --smid=xxx */ | 233 | props[props_idx]->num_vals = 3; /* /path/to/emacs, --smid=xxx --no-splash */ |
| 228 | props[props_idx]->vals = &values[val_idx]; | 234 | props[props_idx]->vals = &values[val_idx]; |
| 229 | props[props_idx]->vals[0].length = strlen (emacs_program); | 235 | props[props_idx]->vals[0].length = strlen (emacs_program); |
| 230 | props[props_idx]->vals[0].value = emacs_program; | 236 | props[props_idx]->vals[0].value = emacs_program; |
| @@ -235,7 +241,10 @@ smc_save_yourself_CB (smcConn, | |||
| 235 | 241 | ||
| 236 | props[props_idx]->vals[1].length = strlen (smid_opt); | 242 | props[props_idx]->vals[1].length = strlen (smid_opt); |
| 237 | props[props_idx]->vals[1].value = smid_opt; | 243 | props[props_idx]->vals[1].value = smid_opt; |
| 238 | val_idx += 2; | 244 | |
| 245 | props[props_idx]->vals[2].length = strlen (NOSPLASH_OPT); | ||
| 246 | props[props_idx]->vals[2].value = NOSPLASH_OPT; | ||
| 247 | val_idx += 3; | ||
| 239 | ++props_idx; | 248 | ++props_idx; |
| 240 | 249 | ||
| 241 | /* User id */ | 250 | /* User id */ |