unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Nick Helm <nick@tenpoint.co.nz>, 30519@debbugs.gnu.org
Subject: bug#30519: 26.0.91; Emacs hangs with flyspell overlay
Date: Wed, 21 Feb 2018 10:45:55 +0100	[thread overview]
Message-ID: <5A8D3FD3.4080009@gmx.at> (raw)
In-Reply-To: <m2r2pfui7v.fsf@tenpoint.co.nz>

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

 > #0  0x00000000005e25ec in marker_position (marker=XIL(0x376b469)) at marker.c:641
 > #1  0x00000000005ced7e in mouse_face_overlay_overlaps (overlay=XIL(0x376b4e1)) at buffer.c:3058
 > #2  0x00000000004a943f in note_mouse_highlight (f=0x1603c80 <bss_sbrk_buffer+8226176>, x=170, y=120) at xdisp.c:31349

Can you please try the attached patch.  I have no idea whether this is
the correct interpretation of the semantics of 'mouse-highlight'.

Thanks, martin

[-- Attachment #2: xdisp.c.dif --]
[-- Type: text/plain, Size: 546 bytes --]

--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -31345,7 +31345,8 @@ A polygon is a cons (poly . [x0 y0 x1 y1 ...]) where each pair in the
 	     the one we are currently highlighting, we have to
 	     check if we enter the overlapping overlay, and then
 	     highlight only that.  */
-	  || (OVERLAYP (hlinfo->mouse_face_overlay)
+	  || (!hlinfo->mouse_face_hidden
+	      && OVERLAYP (hlinfo->mouse_face_overlay)
 	      && mouse_face_overlay_overlaps (hlinfo->mouse_face_overlay)))
 	{
 	  /* Find the highest priority overlay with a mouse-face.  */

  reply	other threads:[~2018-02-21  9:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-18 22:24 bug#30519: 26.0.91; Emacs hangs with flyspell overlay Nick Helm
2018-02-19 16:32 ` Eli Zaretskii
2018-02-19 23:47   ` Dmitry Gutov
2018-02-20  0:33     ` Romanos Skiadas
2018-02-20  4:06     ` Eli Zaretskii
2018-02-20 19:12       ` Nick Helm
2018-02-21  3:36       ` Nick Helm
2018-02-21  9:45         ` martin rudalics [this message]
2018-02-21 17:43           ` Eli Zaretskii
2018-02-22  6:45             ` martin rudalics
2018-02-22  7:21               ` Eli Zaretskii
2018-02-22  1:18           ` Nick Helm
2018-02-22  7:59             ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5A8D3FD3.4080009@gmx.at \
    --to=rudalics@gmx.at \
    --cc=30519@debbugs.gnu.org \
    --cc=nick@tenpoint.co.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).