aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2012-11-08 10:11:32 +0100
committerJoakim Verona2012-11-08 10:11:32 +0100
commit2a4942ed0e4cca22145a0d973112454c410c3dd7 (patch)
treebe2e92cd8c5485bb083c9f334eae9eaf82b7a900 /src
parenta06cbaa8c0a0cbadf00640b7463da588483557ab (diff)
parenta43d02f01b7b6cc07f15a0a6ea677669ff079618 (diff)
downloademacs-2a4942ed0e4cca22145a0d973112454c410c3dd7.tar.gz
emacs-2a4942ed0e4cca22145a0d973112454c410c3dd7.zip
upstream
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/w32fns.c17
-rw-r--r--src/xfns.c12
3 files changed, 31 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 37907cd555a..0eb69f59efe 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,14 @@
12012-11-07 Eli Zaretskii <eliz@gnu.org>
2
3 * w32fns.c (modifier_set): Don't report modifiers from toggle key,
4 such as Scroll Lock, if the respective keys are treated as
5 function keys, not as modifiers. This avoids destroying non-ASCII
6 keyboard input when Scroll Lock is toggled ON. (Bug#12806)
7
82012-11-07 Dmitry Antipov <dmantipov@yandex.ru>
9
10 * xfns.c (Fx_wm_set_size_hint): Use check_x_frame. Adjust docstring.
11
12012-11-06 Paul Eggert <eggert@cs.ucla.edu> 122012-11-06 Paul Eggert <eggert@cs.ucla.edu>
2 13
3 Restore some duplicate definitions (Bug#12814). 14 Restore some duplicate definitions (Bug#12814).
diff --git a/src/w32fns.c b/src/w32fns.c
index 24760054523..f4f5aad90b4 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -2085,8 +2085,21 @@ sync_modifiers (void)
2085static int 2085static int
2086modifier_set (int vkey) 2086modifier_set (int vkey)
2087{ 2087{
2088 if (vkey == VK_CAPITAL || vkey == VK_SCROLL) 2088 if (vkey == VK_CAPITAL)
2089 return (GetKeyState (vkey) & 0x1); 2089 {
2090 if (NILP (Vw32_enable_caps_lock))
2091 return 0;
2092 else
2093 return (GetKeyState (vkey) & 0x1);
2094 }
2095 if (vkey == VK_SCROLL)
2096 {
2097 if (NILP (Vw32_scroll_lock_modifier))
2098 return 0;
2099 else
2100 return (GetKeyState (vkey) & 0x1);
2101 }
2102
2090 if (!modifiers_recorded) 2103 if (!modifiers_recorded)
2091 return (GetKeyState (vkey) & 0x8000); 2104 return (GetKeyState (vkey) & 0x8000);
2092 2105
diff --git a/src/xfns.c b/src/xfns.c
index 9c99902b93d..82e218479c8 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2996,16 +2996,14 @@ x_default_font_parameter (struct frame *f, Lisp_Object parms)
2996DEFUN ("x-wm-set-size-hint", Fx_wm_set_size_hint, Sx_wm_set_size_hint, 2996DEFUN ("x-wm-set-size-hint", Fx_wm_set_size_hint, Sx_wm_set_size_hint,
2997 0, 1, 0, 2997 0, 1, 0,
2998 doc: /* Send the size hints for frame FRAME to the window manager. 2998 doc: /* Send the size hints for frame FRAME to the window manager.
2999If FRAME is nil, use the selected frame. */) 2999If FRAME is omitted or nil, use the selected frame.
3000Signal error if FRAME is not an X frame. */)
3000 (Lisp_Object frame) 3001 (Lisp_Object frame)
3001{ 3002{
3002 struct frame *f; 3003 struct frame *f = check_x_frame (frame);
3003 if (NILP (frame)) 3004
3004 frame = selected_frame;
3005 f = XFRAME (frame);
3006 block_input (); 3005 block_input ();
3007 if (FRAME_X_P (f)) 3006 x_wm_set_size_hint (f, 0, 0);
3008 x_wm_set_size_hint (f, 0, 0);
3009 unblock_input (); 3007 unblock_input ();
3010 return Qnil; 3008 return Qnil;
3011} 3009}