From: Eli Zaretskii Date: Sat, 26 May 2012 12:14:56 +0000 (+0300) Subject: Extend mouse support on W32 text-mode console. X-Git-Tag: emacs-24.2.90~471^2~6^2~100 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=53a63be64de2c4a28ffcd275398255976a380fee;p=emacs.git Extend mouse support on W32 text-mode console. 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. --- 53a63be64de2c4a28ffcd275398255976a380fee diff --cc etc/NEWS index 68744dc9ff5,68744dc9ff5..c216c6be95e --- a/etc/NEWS +++ 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. ++ * Installation Changes in Emacs 24.1 diff --cc src/ChangeLog index 2981e754c8a,aeab5c9d113..c71ea45dded --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,8 -1,32 +1,26 @@@ + 2012-05-26 Eli Zaretskii + - * 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 - - 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 - - Support mouse highlight on w32 text-mode frames. ++ 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. + - * w32inevt.c (mouse_moved_to): When the mouse moves, call - note_mouse_highlight. - + * 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 + + * lread.c (read1): Simplify slightly to avoid an overflow warning + with GCC 4.7.0 on x86-64. + 2012-05-26 Eli Zaretskii * bidi.c (bidi_mirror_char): Revert last change: an int is