From: Martin Rudalics Date: Wed, 5 Feb 2014 09:24:55 +0000 (+0100) Subject: Fix cursor appearance in note_mouse_highlight (Bug#16647). X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~167 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fa49abf8bfb67ebab4c92bca656380948317a273;p=emacs.git Fix cursor appearance in note_mouse_highlight (Bug#16647). * xdisp.c (note_mouse_highlight): When entering a margin area show a non-text cursor (Bug#16647). --- diff --git a/src/ChangeLog b/src/ChangeLog index 1ef4d9fc816..50c08f8199c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-02-05 Martin Rudalics + + * xdisp.c (note_mouse_highlight): When entering a margin area show + a non-text cursor (Bug#16647). + 2014-02-04 Paul Eggert * menu.c (Fx_popup_dialog): Remove label 'dialog_via_menu'. diff --git a/src/xdisp.c b/src/xdisp.c index 0ca877d997f..f9c1b4d1bf0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -28568,7 +28568,15 @@ note_mouse_highlight (struct frame *f, int x, int y) || part == ON_LEFT_MARGIN || part == ON_RIGHT_MARGIN) { note_mode_line_or_margin_highlight (window, x, y, part); - return; + + if (part == ON_LEFT_MARGIN || part == ON_RIGHT_MARGIN) + { + cursor = FRAME_X_OUTPUT (f)->nontext_cursor; + /* Sho non-text cursor (Bug#16647). */ + goto set_cursor; + } + else + return; } #ifdef HAVE_WINDOW_SYSTEM