diff options
| author | Richard M. Stallman | 2005-05-01 18:49:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-05-01 18:49:28 +0000 |
| commit | be6ed24abaafbbb93aab880523963a38f76cc91a (patch) | |
| tree | e0844a19c47bc767f159852cef70d3a732176d88 /src | |
| parent | 524ed533b0c2904ef56c9e034c4f69d131431b31 (diff) | |
| download | emacs-be6ed24abaafbbb93aab880523963a38f76cc91a.tar.gz emacs-be6ed24abaafbbb93aab880523963a38f76cc91a.zip | |
[not HAVE_X_TOOLKIT] (xmenu_show):
If user cancels the menu, quit unless FOR_CLICK.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 581a5ce6cd2..d86535c47ac 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -2889,6 +2889,9 @@ xmenu_show (f, x, y, for_click, keymaps, title, error) | |||
| 2889 | } | 2889 | } |
| 2890 | } | 2890 | } |
| 2891 | } | 2891 | } |
| 2892 | else if (!for_click) | ||
| 2893 | /* Make "Cancel" equivalent to C-g. */ | ||
| 2894 | Fsignal (Qquit, Qnil); | ||
| 2892 | 2895 | ||
| 2893 | return Qnil; | 2896 | return Qnil; |
| 2894 | } | 2897 | } |
| @@ -3519,8 +3522,8 @@ xmenu_show (f, x, y, for_click, keymaps, title, error) | |||
| 3519 | entry = Qnil; | 3522 | entry = Qnil; |
| 3520 | break; | 3523 | break; |
| 3521 | case XM_NO_SELECT: | 3524 | case XM_NO_SELECT: |
| 3522 | /* Make "Cancel" equivalent to C-g unless this menu was popped up by | 3525 | /* Make "Cancel" equivalent to C-g unless FOR_CLICK (which means |
| 3523 | a mouse press. */ | 3526 | the menu was invoked with a mouse event as POSITION). */ |
| 3524 | if (! for_click) | 3527 | if (! for_click) |
| 3525 | Fsignal (Qquit, Qnil); | 3528 | Fsignal (Qquit, Qnil); |
| 3526 | entry = Qnil; | 3529 | entry = Qnil; |