diff options
| author | Juri Linkov | 2021-08-23 20:42:16 +0300 |
|---|---|---|
| committer | Juri Linkov | 2021-08-23 20:42:16 +0300 |
| commit | 976594d905ceacc3c351735ba099ac71ea31f014 (patch) | |
| tree | c1e0e4e639c404c46f0ab2ff440aeecfab062763 /src | |
| parent | c1c2266a1c38b1f8dfd001f653ebec6fa79fb3c3 (diff) | |
| download | emacs-976594d905ceacc3c351735ba099ac71ea31f014.tar.gz emacs-976594d905ceacc3c351735ba099ac71ea31f014.zip | |
* lisp/mouse.el (context-menu-open): New command bound to [S-f10].
* doc/emacs/frames.texi (Menu Mouse Clicks): Mention S-F10
to pop up the context menu.
* src/callint.c (Fcall_interactively):
Use inhibit_mouse_event_check for the case 'e'.
(inhibit-mouse-event-check): New variable.
https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00733.html
Diffstat (limited to 'src')
| -rw-r--r-- | src/callint.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/callint.c b/src/callint.c index 6f8a7f13f61..5201dc7ba16 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -606,7 +606,7 @@ invoke it (via an `interactive' spec that contains, for instance, an | |||
| 606 | break; | 606 | break; |
| 607 | 607 | ||
| 608 | case 'e': /* The invoking event. */ | 608 | case 'e': /* The invoking event. */ |
| 609 | if (next_event >= key_count) | 609 | if (!inhibit_mouse_event_check && next_event >= key_count) |
| 610 | error ("%s must be bound to an event with parameters", | 610 | error ("%s must be bound to an event with parameters", |
| 611 | (SYMBOLP (function) | 611 | (SYMBOLP (function) |
| 612 | ? SSDATA (SYMBOL_NAME (function)) | 612 | ? SSDATA (SYMBOL_NAME (function)) |
| @@ -900,6 +900,13 @@ Its purpose is to give temporary modes such as Isearch mode | |||
| 900 | a way to turn themselves off when a mouse command switches windows. */); | 900 | a way to turn themselves off when a mouse command switches windows. */); |
| 901 | Vmouse_leave_buffer_hook = Qnil; | 901 | Vmouse_leave_buffer_hook = Qnil; |
| 902 | 902 | ||
| 903 | DEFVAR_BOOL ("inhibit-mouse-event-check", inhibit_mouse_event_check, | ||
| 904 | doc: /* Non-nil means the interactive spec "e" doesn't check for events. | ||
| 905 | In this case `(interactive "e")' doesn't signal an error when no mouse event | ||
| 906 | is produced while using the keyboard. Then `event-start', `event-end', | ||
| 907 | `event-click-count' can create a new event. */); | ||
| 908 | inhibit_mouse_event_check = false; | ||
| 909 | |||
| 903 | defsubr (&Sinteractive); | 910 | defsubr (&Sinteractive); |
| 904 | defsubr (&Scall_interactively); | 911 | defsubr (&Scall_interactively); |
| 905 | defsubr (&Sfuncall_interactively); | 912 | defsubr (&Sfuncall_interactively); |