]> git.eshelyaron.com Git - emacs.git/commit
Fix posn-at-point in Flycheck buffers
authorEli Zaretskii <eliz@gnu.org>
Fri, 19 Jan 2018 14:18:41 +0000 (16:18 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Jun 2018 09:08:48 +0000 (12:08 +0300)
commitddd1b957e9406a4185e5a43ad3933b4e734d58f1
treea915cd6c2f69d7517c2615e91ea26e7afe10f043
parentaf82d1f4bd3c01786516c0d32cec4dc77a235778
Fix posn-at-point in Flycheck buffers

* src/dispnew.c (buffer_posn_from_coords): Improve commentary.

* src/xdisp.c (move_it_in_display_line_to): Don't exit the loop
under truncate-lines if the glyph at TO_CHARPOS was not yet
produced.  This avoids bailing out too early when we are at
TO_CHARPOS, but didn't yet produce glyphs for that buffer
position, because the last call to PRODUCE_GLYPHS at this position
was for an object other than the buffer.  For further details, see
http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00537.html.

(cherry picked from commit c0154ac7c3423f68d8f3a2e85a756c9759219039)
src/dispnew.c
src/xdisp.c