diff options
| author | Juanma Barranquero | 2007-11-13 15:09:34 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-11-13 15:09:34 +0000 |
| commit | fb053a1f93201ace1251db95e33d4d4901d4db22 (patch) | |
| tree | 2d0378594e382a59ac30b29cf7febc02313740a0 /src | |
| parent | a5373305429ab6f8095102f32219573548bb22c9 (diff) | |
| download | emacs-fb053a1f93201ace1251db95e33d4d4901d4db22.tar.gz emacs-fb053a1f93201ace1251db95e33d4d4901d4db22.zip | |
(Fw32_register_hot_key): Don't try to register
hot key if w32_parse_hot_key returned nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/w32fns.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4cf00fc3c30..b8a8445155e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-11-13 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * w32fns.c (Fw32_register_hot_key): Don't try to register hot key | ||
| 4 | if w32_parse_hot_key returned nil. | ||
| 5 | |||
| 1 | 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * xdisp.c (load_overlay_strings): Fix copy&paste typo. | 8 | * xdisp.c (load_overlay_strings): Fix copy&paste typo. |
| @@ -107,7 +112,7 @@ | |||
| 107 | 2007-11-01 Johan Bockg,Ae(Brd <bojohan@gnu.org> | 112 | 2007-11-01 Johan Bockg,Ae(Brd <bojohan@gnu.org> |
| 108 | 113 | ||
| 109 | * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): | 114 | * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string): |
| 110 | Don't set s->stippled_p here, since it has already been set by | 115 | Don't set s->stippled_p here, since it has already been set by |
| 111 | x_set_glyph_string_gc from x_draw_glyph_string. | 116 | x_set_glyph_string_gc from x_draw_glyph_string. |
| 112 | 117 | ||
| 113 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> | 118 | 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu> |
diff --git a/src/w32fns.c b/src/w32fns.c index 6199b16bb2f..c8daa646720 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -8263,7 +8263,7 @@ The return value is the hotkey-id if registered, otherwise nil. */) | |||
| 8263 | { | 8263 | { |
| 8264 | key = w32_parse_hot_key (key); | 8264 | key = w32_parse_hot_key (key); |
| 8265 | 8265 | ||
| 8266 | if (NILP (Fmemq (key, w32_grabbed_keys))) | 8266 | if (!NILP (key) && NILP (Fmemq (key, w32_grabbed_keys))) |
| 8267 | { | 8267 | { |
| 8268 | /* Reuse an empty slot if possible. */ | 8268 | /* Reuse an empty slot if possible. */ |
| 8269 | Lisp_Object item = Fmemq (Qnil, w32_grabbed_keys); | 8269 | Lisp_Object item = Fmemq (Qnil, w32_grabbed_keys); |