aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2006-09-08 14:14:28 +0000
committerChong Yidong2006-09-08 14:14:28 +0000
commit92b2332318a23f84c60088380d4c0ea07e17d1bb (patch)
tree427c440538eb722838203447ecdf6ce00e18a031 /src
parentecc0a2ceccaaaec5d63eeb105b200d513215434b (diff)
downloademacs-92b2332318a23f84c60088380d4c0ea07e17d1bb.tar.gz
emacs-92b2332318a23f84c60088380d4c0ea07e17d1bb.zip
* xdisp.c (mouse_autoselect_window): Removed.
(Vmouse_autoselect_window): New variable. DEFVAR_LISP it. * dispextern.h (mouse_autoselect_window): Remove extern. (Vmouse_autoselect_window): Add extern. * macterm.c (XTread_socket): Test Vmouse_autoselect_window instead of mouse_autoselect_window. * msdos.c (dos_rawgetc): Likewise. * w32term.c (w32_read_socket): Likewise. * xterm.c (handle_one_xevent): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog17
-rw-r--r--src/dispextern.h2
-rw-r--r--src/macterm.c2
-rw-r--r--src/msdos.c2
-rw-r--r--src/w32term.c2
-rw-r--r--src/xdisp.c23
-rw-r--r--src/xterm.c2
7 files changed, 40 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f8a9f26d891..b57aab2882f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12006-08-27 Martin Rudalics <rudalics@gmx.at>
2
3 * xdisp.c (mouse_autoselect_window): Removed.
4 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
5
6 * dispextern.h (mouse_autoselect_window): Remove extern.
7 (Vmouse_autoselect_window): Add extern.
8
9 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
10 instead of mouse_autoselect_window.
11
12 * msdos.c (dos_rawgetc): Likewise.
13
14 * w32term.c (w32_read_socket): Likewise.
15
16 * xterm.c (handle_one_xevent): Likewise.
17
12006-09-08 Richard Stallman <rms@gnu.org> 182006-09-08 Richard Stallman <rms@gnu.org>
2 19
3 * xdisp.c (Vmenu_updating_frame): Define here. 20 * xdisp.c (Vmenu_updating_frame): Define here.
diff --git a/src/dispextern.h b/src/dispextern.h
index 6aff0dc1803..09a0c2dae89 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -2690,7 +2690,7 @@ extern Lisp_Object help_echo_object, previous_help_echo_string;
2690extern int help_echo_pos; 2690extern int help_echo_pos;
2691extern struct frame *last_mouse_frame; 2691extern struct frame *last_mouse_frame;
2692extern int last_tool_bar_item; 2692extern int last_tool_bar_item;
2693extern int mouse_autoselect_window; 2693extern Lisp_Object Vmouse_autoselect_window;
2694extern int unibyte_display_via_language_environment; 2694extern int unibyte_display_via_language_environment;
2695 2695
2696extern void reseat_at_previous_visible_line_start P_ ((struct it *)); 2696extern void reseat_at_previous_visible_line_start P_ ((struct it *));
diff --git a/src/macterm.c b/src/macterm.c
index dcfa61e0ac3..98c311ff02e 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -10653,7 +10653,7 @@ XTread_socket (sd, expected, hold_quit)
10653 else 10653 else
10654 { 10654 {
10655 /* Generate SELECT_WINDOW_EVENTs when needed. */ 10655 /* Generate SELECT_WINDOW_EVENTs when needed. */
10656 if (mouse_autoselect_window) 10656 if (!NILP (Vmouse_autoselect_window))
10657 { 10657 {
10658 Lisp_Object window; 10658 Lisp_Object window;
10659 10659
diff --git a/src/msdos.c b/src/msdos.c
index 2068af544ac..61e167a1946 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -3381,7 +3381,7 @@ dos_rawgetc ()
3381 } 3381 }
3382 3382
3383 /* Generate SELECT_WINDOW_EVENTs when needed. */ 3383 /* Generate SELECT_WINDOW_EVENTs when needed. */
3384 if (mouse_autoselect_window) 3384 if (!NILP (Vmouse_autoselect_window))
3385 { 3385 {
3386 mouse_window = window_from_coordinates (SELECTED_FRAME(), 3386 mouse_window = window_from_coordinates (SELECTED_FRAME(),
3387 mouse_last_x, 3387 mouse_last_x,
diff --git a/src/w32term.c b/src/w32term.c
index 93a697bbd8c..c00fdb8923c 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -4298,7 +4298,7 @@ w32_read_socket (sd, expected, hold_quit)
4298 if (f) 4298 if (f)
4299 { 4299 {
4300 /* Generate SELECT_WINDOW_EVENTs when needed. */ 4300 /* Generate SELECT_WINDOW_EVENTs when needed. */
4301 if (mouse_autoselect_window) 4301 if (!NILP (Vmouse_autoselect_window))
4302 { 4302 {
4303 Lisp_Object window; 4303 Lisp_Object window;
4304 int x = LOWORD (msg.msg.lParam); 4304 int x = LOWORD (msg.msg.lParam);
diff --git a/src/xdisp.c b/src/xdisp.c
index 16dbc533557..0a516c39768 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -256,9 +256,9 @@ Lisp_Object list_of_error;
256Lisp_Object Vfontification_functions; 256Lisp_Object Vfontification_functions;
257Lisp_Object Qfontification_functions; 257Lisp_Object Qfontification_functions;
258 258
259/* Non-zero means automatically select any window when the mouse 259/* Non-nil means automatically select any window when the mouse
260 cursor moves into it. */ 260 cursor moves into it. */
261int mouse_autoselect_window; 261Lisp_Object Vmouse_autoselect_window;
262 262
263/* Non-zero means draw tool bar buttons raised when the mouse moves 263/* Non-zero means draw tool bar buttons raised when the mouse moves
264 over them. */ 264 over them. */
@@ -24019,9 +24019,22 @@ Each function is called with two arguments, the window and the end trigger value
24019See `set-window-redisplay-end-trigger'. */); 24019See `set-window-redisplay-end-trigger'. */);
24020 Vredisplay_end_trigger_functions = Qnil; 24020 Vredisplay_end_trigger_functions = Qnil;
24021 24021
24022 DEFVAR_BOOL ("mouse-autoselect-window", &mouse_autoselect_window, 24022 DEFVAR_LISP ("mouse-autoselect-window", &Vmouse_autoselect_window,
24023 doc: /* *Non-nil means autoselect window with mouse pointer. */); 24023 doc: /* *Non-nil means autoselect window with mouse pointer.
24024 mouse_autoselect_window = 0; 24024If nil, do not autoselect windows.
24025A positive number means delay autoselection by that many seconds: a
24026window is autoselected only after the mouse has remained in that
24027window for the duration of the delay.
24028A negative number has a similar effect, but causes windows to be
24029autoselected only after the mouse has stopped moving. \(Because of
24030the way Emacs compares mouse events, you will occasionally wait twice
24031that time before the window gets selected.\)
24032Any other value means to autoselect window instantaneously when the
24033mouse pointer enters it.
24034
24035Autoselection selects the minibuffer only if it is active, and never
24036unselects the minibuffer if it is active. */);
24037 Vmouse_autoselect_window = Qnil;
24025 24038
24026 DEFVAR_BOOL ("auto-resize-tool-bars", &auto_resize_tool_bars_p, 24039 DEFVAR_BOOL ("auto-resize-tool-bars", &auto_resize_tool_bars_p,
24027 doc: /* *Non-nil means automatically resize tool-bars. 24040 doc: /* *Non-nil means automatically resize tool-bars.
diff --git a/src/xterm.c b/src/xterm.c
index 757a022d35c..e7a462aef58 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6583,7 +6583,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6583 { 6583 {
6584 6584
6585 /* Generate SELECT_WINDOW_EVENTs when needed. */ 6585 /* Generate SELECT_WINDOW_EVENTs when needed. */
6586 if (mouse_autoselect_window) 6586 if (!NILP (Vmouse_autoselect_window))
6587 { 6587 {
6588 Lisp_Object window; 6588 Lisp_Object window;
6589 6589