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#59527: 29.0.50; Face issues in show-paren context overlay Date: Thu, 24 Nov 2022 09:10:54 +0200 Message-ID: <83edtsyght.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5126"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59527@debbugs.gnu.org To: Gabriel , Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 24 08:11:23 2022 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 1oy6OJ-0001BT-2o for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Nov 2022 08:11:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy6O5-00033e-PH; Thu, 24 Nov 2022 02:11:09 -0500 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 1oy6Nz-00033N-3H for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2022 02:11:03 -0500 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 1oy6Ny-0002IC-P5 for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2022 02:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oy6Ny-000318-BI for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2022 02:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Nov 2022 07:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59527 X-GNU-PR-Package: emacs Original-Received: via spool by 59527-submit@debbugs.gnu.org id=B59527.166927384911579 (code B ref 59527); Thu, 24 Nov 2022 07:11:02 +0000 Original-Received: (at 59527) by debbugs.gnu.org; 24 Nov 2022 07:10:49 +0000 Original-Received: from localhost ([127.0.0.1]:56999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oy6Nk-00030h-Vw for submit@debbugs.gnu.org; Thu, 24 Nov 2022 02:10:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oy6Nj-00030U-BK for 59527@debbugs.gnu.org; Thu, 24 Nov 2022 02:10:47 -0500 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 1oy6Ne-0002Eo-3l; Thu, 24 Nov 2022 02:10:42 -0500 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=t8yhZgxqC02hHCSS/45cUAcTdHlmjL68uatav3RiL2g=; b=eDW6BRtMauoq MpGKXSAfr7jV0Ecabek3HzVQW2lKc05ItKQzJc3WM2fPNCB8lQ/B/aYeSV1BVPhLMnbMKfzO7x7W2 lo1wuxE46Qrbf5WnPdFoo+Vn4CNFplWryGhZ3efMXFzy+M41iPl+iSfc89MbOeqnuXbbIe04Ypvc8 YyNilT5uDIbSj6natormsEafwI1p4jbcr10WwjLGVIpsmhEvoXCE9gaR7bbgjbV+ibsVEd1bq1GrG gEPgnvnjTxVIKYdVBDhoelqHAeNf/obDTpcZr2TN1Xr3uxFqYs9e6ioVg82aYfhYJupMLqMuri4Lj KB9eBXj4fMPCBRAdC5dF+A==; 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 1oy6NX-0008Jx-TA; Thu, 24 Nov 2022 02:10:40 -0500 In-Reply-To: (message from Gabriel on Wed, 23 Nov 2022 21:22:02 -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:248818 Archived-At: > From: Gabriel > Date: Wed, 23 Nov 2022 21:22:02 -0300 > > The context overlay (from show-paren) has some face issues. First, in > case font-lock was not applied to a previous region of the buffer, the > overlay will not display the context with font-lock. Second, the > overlay will be displayed with the same background as the top-left line > of the window instead of the original context background. > > Steps: > > 1) emacs -Q (master "b42cd524b46a4f29ef13e9d03be9d3df917f9aa3") > > 2) eval: > > (progn > ;; enable overlay context in show-paren > (setopt show-paren-context-when-offscreen 'overlay) > > ;; just to have a different background to reproduce issue #2 > (add-hook 'c-mode-hook #'whitespace-mode)) > > 3) Open file src/xdisp.c from emacs source tree: C-x C-f emacs/src/xdisp.c > > 4) Go to line 13418: M-g M-g 13418 > > 5) Go to next char (the context overlay will be displayed): C-f > > Problem 1: the overlay context does not have font-lock, since font-lock > was not applied to the previous area that contains the context. As a > workaround, execute C-M b (to navigate to context and force font-lock > update) and then C-M-f to navigate back and display again the overlay > context (with correct font-lock, this time). I expect the context > overlay to always be displayed with an updated font-lock. > > Problem 2: the overlay context will be displayed with the same > background color as the top-left line of the window (yellow, in this > case, because of whitespace-mode). I expect the context overlay to > always show the correct background, regardless of the face in the > top-left line. CC'ing Tassilo, who implemented this feature.