]> code.delx.au - gnu-emacs/commitdiff
Extend mouse support on W32 text-mode console.
authorEli Zaretskii <eliz@gnu.org>
Sat, 26 May 2012 12:14:56 +0000 (15:14 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 26 May 2012 12:14:56 +0000 (15:14 +0300)
 src/xdisp.c (draw_row_with_mouse_face): Call
 tty_draw_row_with_mouse_face for WINDOWSNT as well.
 src/w32console.c: Include window.h.
 (w32con_write_glyphs_with_face, tty_draw_row_with_mouse_face): New
 functions.
 (initialize_w32_display): Initialize mouse-highlight data.
 src/w32inevt.c: Include termchar.h and window.h.
 (do_mouse_event): Support mouse-autoselect-window.  When the mouse
 moves, call note_mouse_highlight.  If help_echo changed, call
 gen_help_event to produce help-echo message in the echo area.
 Call clear_mouse_face if mouse_face_hidden is set in the mouse
 highlight info.

 etc/NEWS: Describe the changes.

1  2 
etc/NEWS
src/ChangeLog

diff --cc etc/NEWS
index 68744dc9ff50b1fc5f553a096fee03872cfb47fb,68744dc9ff50b1fc5f553a096fee03872cfb47fb..c216c6be95ed33b48b6787fd798b27d41fd44b30
+++ b/etc/NEWS
@@@ -313,6 -313,6 +313,10 @@@ by the underlying C implementation
  *** --without-libxml2 omits support for libxml2, even if its presence
  is detected.
  
++** When invoked with the -nw switch to run on the Windows text-mode terminal,
++Emacs now supports mouse highlight, help-echo (in the echo area), and
++mouse-autoselect-window.
++
  \f
  * Installation Changes in Emacs 24.1
  
diff --cc src/ChangeLog
index 2981e754c8a8e378ba338da60c07d15cc5732aa8,aeab5c9d1137a8badb9db656da62e2f6d6435a3a..c71ea45ddedb5721138024f02e2a99aaccbb2c7a
@@@ -1,8 -1,32 +1,26 @@@
 -      * w32inevt.c (do_mouse_event): Support mouse-autoselect-window.
 -      If help_echo changed, call gen_help_event to produce help-echo
 -      message in the echo area.
 -
 -2012-05-26  Eli Zaretskii  <eliz@gnu.org>
 -
 -      Refactor mouse highlight invocation for w32 console.
 -      * w32inevt.c: Include termchar.h.
 -      (mouse_moved_to): Move the call to note_mouse_highlight from here...
 -      (do_mouse_event): ...to here.
 -      Call clear_mouse_face if mouse_face_hidden is set in the mouse
 -      highlight info.
 -
 -2012-05-26  Eli Zaretskii  <eliz@gnu.org>
 -
 -      Support mouse highlight on w32 text-mode frames.
+ 2012-05-26  Eli Zaretskii  <eliz@gnu.org>
 -      * w32inevt.c (mouse_moved_to): When the mouse moves, call
 -      note_mouse_highlight.
 -
++      Extend mouse support on W32 text-mode console.
+       * xdisp.c (draw_row_with_mouse_face): Call
+       tty_draw_row_with_mouse_face for WINDOWSNT as well.
+       * w32console.c: Include window.h.
+       (w32con_write_glyphs_with_face, tty_draw_row_with_mouse_face): New
+       functions.
+       (initialize_w32_display): Initialize mouse-highlight data.
++      * w32inevt.c: Include termchar.h and window.h.
++      (do_mouse_event): Support mouse-autoselect-window.  When the mouse
++      moves, call note_mouse_highlight.  If help_echo changed, call
++      gen_help_event to produce help-echo message in the echo area.
++      Call clear_mouse_face if mouse_face_hidden is set in the mouse
++      highlight info.
++
 +2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * lread.c (read1): Simplify slightly to avoid an overflow warning
 +      with GCC 4.7.0 on x86-64.
 +
  2012-05-26  Eli Zaretskii  <eliz@gnu.org>
  
        * bidi.c (bidi_mirror_char): Revert last change: an int is