From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63271: 29.0.90; broken mouse-face Date: Tue, 09 May 2023 11:43:09 +0300 Message-ID: <83ednpc2ua.fsf@gnu.org> References: <86zg6kuwz5.fsf@mail.linkov.net> <83354ckrvo.fsf@gnu.org> <86h6sq3che.fsf@mail.linkov.net> <83y1m2hbp6.fsf@gnu.org> <87fs89k8r0.fsf@yahoo.com> <86fs88xbrx.fsf@mail.linkov.net> <833548dm6y.fsf@gnu.org> <86ednrur9e.fsf@mail.linkov.net> <87h6smia66.fsf@yahoo.com> <86lehy11ou.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27161"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 63271@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 09 10:43:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pwIwI-0006qW-PY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 May 2023 10:43:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwIwA-0002Qx-At; Tue, 09 May 2023 04:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwIw2-0002K9-Hh for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 04:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pwIw2-000838-8p for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 04:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pwIw1-0003rD-Mf for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 04:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 May 2023 08:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63271 X-GNU-PR-Package: emacs Original-Received: via spool by 63271-submit@debbugs.gnu.org id=B63271.168362173514760 (code B ref 63271); Tue, 09 May 2023 08:43:01 +0000 Original-Received: (at 63271) by debbugs.gnu.org; 9 May 2023 08:42:15 +0000 Original-Received: from localhost ([127.0.0.1]:42371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwIvH-0003q0-G6 for submit@debbugs.gnu.org; Tue, 09 May 2023 04:42:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwIvF-0003pl-1m for 63271@debbugs.gnu.org; Tue, 09 May 2023 04:42:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwIv9-0007p2-B2; Tue, 09 May 2023 04:42:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0us3/hztAPnXWiloyzY21G80ru332FpqSoiUQh6NR2g=; b=Q4IKKaCvRP/j /RX0Yd/FnAaGzI+spCg4wcscaxffELbyFYIlNurTn1mCynwWSdK/M//sno+kXrwdUmtDLpkN9uiC5 DF9WxwshZNFkEPEYMX0McDPNT0VFO/hnWvdO/lFZFWeSR+jAbMCHXQr2pA/DIUnh8cNbGCvG6cMw0 xd/UIOZ/NoN+WSpK5rgXwjOoWpfiCdyhPbMSkEGDKmXlHzntcdN1zpqSvlJGZRv4/nE1vriuTZQ17 6w1IgWg/CZkTSlwTMExv7apkaO/ecEjH+pwoUsBopgotwWhjN9r115H7UR+1Y9W52c/IFQsqTOb3a txaLx5AjR3W2OHgHiavjQA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwIv8-0004MD-Rd; Tue, 09 May 2023 04:42:07 -0400 In-Reply-To: <86lehy11ou.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 09 May 2023 09:43:29 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261394 Archived-At: > From: Juri Linkov > Cc: Eli Zaretskii , 63271@debbugs.gnu.org > Date: Tue, 09 May 2023 09:43:29 +0300 > > > --- a/src/ftcrfont.c > > +++ b/src/ftcrfont.c > > @@ -593,6 +593,10 @@ ftcrfont_draw (struct glyph_string *s, > > s->background_filled_p = 1; > > cairo_rectangle (cr, x, y - FONT_BASE (s->font), > > s->width, FONT_HEIGHT (s->font)); > > + fprintf (stderr, "ftcrfont_draw: %d, %d, %d, %d, %d\n", > > + x, y - FONT_BASE (s->font), > > + s->width, FONT_HEIGHT (s->font), > > + s->hl); > > cairo_fill (cr); > > } > > > > then move point over the text under mouse face, what is printed? > > This is after moving point backward from last "O" to first "T" in "TODO" > while mouse is over the text: > > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 58, 56, 12, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 58, 56, 12, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 45, 56, 13, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 45, 56, 13, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 10, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 10, 19, 2 > > and forward from "T" to "O": > > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 45, 56, 13, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 45, 56, 13, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 58, 56, 12, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 58, 56, 12, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 70, 56, 13, 19, 2 > ftcrfont_draw: 25, 56, 10, 19, 0 > ftcrfont_draw: 35, 56, 48, 19, 0 > ftcrfont_draw: 70, 56, 13, 19, 2 s->hl == 2 means DRAW_CURSOR. Why does Emacs draw cursor -- did you s->move point or did you move the mouse pointer? I thought Po Lu s->meant the latter, not the former.