diff options
author | Joakim Verona <joakim@verona.se> | 2016-01-15 20:06:45 +0100 |
---|---|---|
committer | Joakim Verona <joakim@verona.se> | 2016-01-15 20:06:45 +0100 |
commit | 4b73dac2885aa7eb23b66c299065e19bd118a4fb (patch) | |
tree | 18452b36b890faf52d40f555ebe4dc3c6e020bc6 /src/keyboard.c | |
parent | 0d824cc5e79e7d29a01929a51dfd673a117c77e8 (diff) | |
parent | 984a14904658da42ca9dea50a811a901ddc56e60 (diff) | |
download | emacs-xwidget_mvp.tar.gz |
merge masterxwidget_mvp
Diffstat (limited to 'src/keyboard.c')
-rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 3a43c93cae2..dc0dab34f47 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -1,6 +1,6 @@ /* Keyboard and mouse input; editor command loop. -Copyright (C) 1985-1989, 1993-1997, 1999-2015 Free Software Foundation, +Copyright (C) 1985-1989, 1993-1997, 1999-2016 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -7139,6 +7139,9 @@ struct user_signal_info /* List of user signals. */ static struct user_signal_info *user_signals = NULL; +/* Function called when handling user signals. */ +void (*handle_user_signal_hook) (int); + void add_user_signal (int sig, const char *name) { @@ -7187,6 +7190,8 @@ handle_user_signal (int sig) } p->npending++; + if (handle_user_signal_hook) + (*handle_user_signal_hook) (sig); #ifdef USABLE_SIGIO if (interrupt_input) handle_input_available_signal (sig); |