Commit 6b918613 authored by Chong Yidong's avatar Chong Yidong

Fix text pos part of lispy positions for right fringe clicks (Bug#7839).

* src/keyboard.c (make_lispy_position): For clicks on right fringe or
margin, compute text position using the X coordinate relative to
the left of the text area (Bug#7839).
parent 01c63f4c
2011-01-28 Chong Yidong <cyd@stupidchicken.com>
* keyboard.c (make_lispy_position): For clicks on right fringe or
margin, compute text position using the X coordinate relative to
the left of the text area (Bug#7839).
2011-01-28 Kenichi Handa <handa@m17n.org>
* ftfont.c (ftfont_spec_pattern): Check each extra property
......@@ -5153,8 +5153,12 @@ make_lispy_position (struct frame *f, Lisp_Object x, Lisp_Object y,
int width2, height2;
/* The pixel X coordinate passed to buffer_posn_from_coords
is the X coordinate relative to the text area for
text-area clicks, zero otherwise. */
int x2 = (part == ON_TEXT) ? xret : 0;
text-area and right-margin clicks, zero otherwise. */
int x2
= (part == ON_TEXT) ? x2
: (part == ON_RIGHT_FRINGE || part == ON_RIGHT_MARGIN)
? (XINT (x) - window_box_left (w, TEXT_AREA))
: 0;
int y2 = wy;
string2 = buffer_posn_from_coords (w, &x2, &y2, &p,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment