aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorK. Handa2016-01-14 21:55:43 +0900
committerK. Handa2016-01-14 21:55:43 +0900
commit641a3472ef245157ebcb2114f2d608cb3cb401a7 (patch)
tree85e524c8d12caca29588382205f536b2008edc55 /src/keyboard.c
parent9835757013569673854b692ccbb58bfb3c3ed1f7 (diff)
parentee83b77f5ddede0fed518d0c23cf0ae38ce5b745 (diff)
downloademacs-641a3472ef245157ebcb2114f2d608cb3cb401a7.tar.gz
emacs-641a3472ef245157ebcb2114f2d608cb3cb401a7.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index eb2c7563afd..c3aa76af518 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1,6 +1,6 @@
1/* Keyboard and mouse input; editor command loop. 1/* Keyboard and mouse input; editor command loop.
2 2
3Copyright (C) 1985-1989, 1993-1997, 1999-2015 Free Software Foundation, 3Copyright (C) 1985-1989, 1993-1997, 1999-2016 Free Software Foundation,
4Inc. 4Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
@@ -7124,6 +7124,9 @@ struct user_signal_info
7124/* List of user signals. */ 7124/* List of user signals. */
7125static struct user_signal_info *user_signals = NULL; 7125static struct user_signal_info *user_signals = NULL;
7126 7126
7127/* Function called when handling user signals. */
7128void (*handle_user_signal_hook) (int);
7129
7127void 7130void
7128add_user_signal (int sig, const char *name) 7131add_user_signal (int sig, const char *name)
7129{ 7132{
@@ -7172,6 +7175,8 @@ handle_user_signal (int sig)
7172 } 7175 }
7173 7176
7174 p->npending++; 7177 p->npending++;
7178 if (handle_user_signal_hook)
7179 (*handle_user_signal_hook) (sig);
7175#ifdef USABLE_SIGIO 7180#ifdef USABLE_SIGIO
7176 if (interrupt_input) 7181 if (interrupt_input)
7177 handle_input_available_signal (sig); 7182 handle_input_available_signal (sig);