aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-03-24 01:46:10 +0000
committerJim Blandy1993-03-24 01:46:10 +0000
commit1e95ed28db7059d9b6e2e30faa4988ed42b53245 (patch)
tree071dcc36e453d7a0e7a68e25029244947e7955b9 /src
parent5cc5784116fbc3fb77b05d80c15376c6ac8bfd07 (diff)
downloademacs-1e95ed28db7059d9b6e2e30faa4988ed42b53245.tar.gz
emacs-1e95ed28db7059d9b6e2e30faa4988ed42b53245.zip
* keyboard.c (Fsuspend_emacs):
Change suspend-hooks back to suspend-hook and make it a normal hook.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 904257ad912..aa2a8503270 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4151,17 +4151,9 @@ On such systems, Emacs starts a subshell instead of suspending.")
4151 if (!NILP (stuffstring)) 4151 if (!NILP (stuffstring))
4152 CHECK_STRING (stuffstring, 0); 4152 CHECK_STRING (stuffstring, 0);
4153 4153
4154 /* Run the functions in suspend-hooks. */ 4154 /* Run the functions in suspend-hook. */
4155 tem = Fsymbol_value (intern ("suspend-hooks")); 4155 if (!NILP (Vrun_hooks))
4156 while (CONSP (tem)) 4156 call1 (Vrun_hooks, intern ("suspend-hook"));
4157 {
4158 Lisp_Object val;
4159 GCPRO2 (stuffstring, tem);
4160 val = call0 (Fcar (tem));
4161 UNGCPRO;
4162 tem = Fcdr (tem);
4163 if (!EQ (val, Qnil)) return Qnil;
4164 }
4165 4157
4166 GCPRO1 (stuffstring); 4158 GCPRO1 (stuffstring);
4167 get_frame_size (&old_width, &old_height); 4159 get_frame_size (&old_width, &old_height);
@@ -4180,8 +4172,7 @@ On such systems, Emacs starts a subshell instead of suspending.")
4180 if (width != old_width || height != old_height) 4172 if (width != old_width || height != old_height)
4181 change_frame_size (0, height, width, 0, 0); 4173 change_frame_size (0, height, width, 0, 0);
4182 4174
4183 /* Call value of suspend-resume-hook 4175 /* Run suspend-resume-hook. */
4184 if it is bound and value is non-nil. */
4185 if (!NILP (Vrun_hooks)) 4176 if (!NILP (Vrun_hooks))
4186 call1 (Vrun_hooks, intern ("suspend-resume-hook")); 4177 call1 (Vrun_hooks, intern ("suspend-resume-hook"));
4187 4178