aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2006-08-03 22:08:09 +0000
committerJason Rumney2006-08-03 22:08:09 +0000
commitf3e0a6de08025d4f77a55b74a28760cc9a5e30e7 (patch)
tree45dbae0a564dc88d21d299cfad2b4afa03588371 /src
parent8a38d42d83bb9fc54ce958ca6b791f7748e2f6d3 (diff)
downloademacs-f3e0a6de08025d4f77a55b74a28760cc9a5e30e7.tar.gz
emacs-f3e0a6de08025d4f77a55b74a28760cc9a5e30e7.zip
(w32_menu_show, w32_dialog_show): Call Fsignal to quit
when no option selected except when for_click.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32menu.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 78cfea5dff2..1a70edd2a07 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-08-03 Jason Rumney <jasonr@gnu.org>
2
3 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
4 when no option selected.
5
12006-08-03 Chong Yidong <cyd@stupidchicken.com> 62006-08-03 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * process.c: Revert last change. 8 * process.c: Revert last change.
diff --git a/src/w32menu.c b/src/w32menu.c
index 389e6c5b856..11af1d66b6f 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -1994,6 +1994,9 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error)
1994 } 1994 }
1995 } 1995 }
1996 } 1996 }
1997 else if (!for_click)
1998 /* Make "Cancel" equivalent to C-g. */
1999 Fsignal (Qquit, Qnil);
1997 2000
1998 return Qnil; 2001 return Qnil;
1999} 2002}
@@ -2186,6 +2189,9 @@ w32_dialog_show (f, keymaps, title, header, error)
2186 } 2189 }
2187 } 2190 }
2188 } 2191 }
2192 else
2193 /* Make "Cancel" equivalent to C-g. */
2194 Fsignal (Qquit, Qnil);
2189 2195
2190 return Qnil; 2196 return Qnil;
2191} 2197}