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#65990: 29.1; show-paren-mode should not highlight line-prefix area Date: Sat, 16 Sep 2023 12:37:36 +0300 Message-ID: <83r0myihlr.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35264"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65990@debbugs.gnu.org To: awrhygty@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 16 11:38:20 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 1qhRkq-00092s-K5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Sep 2023 11:38:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhRkV-0005pF-J5; Sat, 16 Sep 2023 05:37:59 -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 1qhRkT-0005jt-C0 for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 05:37:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhRkS-0007xX-Dd for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 05:37:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhRkZ-0002ck-Ab for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 05:38:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Sep 2023 09:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65990 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 65990-submit@debbugs.gnu.org id=B65990.169485707610046 (code B ref 65990); Sat, 16 Sep 2023 09:38:03 +0000 Original-Received: (at 65990) by debbugs.gnu.org; 16 Sep 2023 09:37:56 +0000 Original-Received: from localhost ([127.0.0.1]:45392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhRkS-0002bx-Hm for submit@debbugs.gnu.org; Sat, 16 Sep 2023 05:37:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhRkR-0002bZ-0a for 65990@debbugs.gnu.org; Sat, 16 Sep 2023 05:37:55 -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 1qhRkE-0007vb-DS; Sat, 16 Sep 2023 05:37:42 -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=6noPJccqeMED+SYSf35YcSUdP7Y+w+uswWC6EUlh1MQ=; b=fCyvMzR6jgYr OKW1vpubQtlUXD/Im/mqAPEVCXoyGQztpY50tH95G9AlE1QFtJI9/hnJKZUp7AWKQ9xBjJwFpBNZI ncLlOG/a4hqf/lh8JJNhEw3NbZXgth0HLhQ7t04w90poEPY9dRaA0ffK0RBxPzCKSp/+HyoNfBS7P z5jkH7p28d+16B7Kb5qj68Nk7aJK1+2vS8sGWF+RtZpsVcnWtE5uUjSblOsHVVZFLqNy+paBmkk8I m72sztxSTEYh4PgVQCRADWYIrKlEkvZp+CQ4t5dVww03532F6DilwgXFgqgSEWXcGHDajlssKwIox 80o7sn1agCGO2yPh508leg==; In-Reply-To: (awrhygty@outlook.com) 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:270596 Archived-At: > From: awrhygty@outlook.com > Date: Fri, 15 Sep 2023 18:26:12 +0900 > > > Evaluate the form below, > the blank area on the left of the open parensis is highlighted, > while the blank area on the left of the close parensis is not. > Then type 'C-l C-l' to make the close parensis placed at the window > start, the area on the left of the close parensis is highlighted. > > (let ((buf (generate-new-buffer "*temp*"))) > (switch-to-buffer buf) > (insert (propertize "(x\n)" 'line-prefix '(space :width 8)))) Normally, none of the line-prefix should be highlighted. And that is what happens when the show-paren face is anywhere but at the first visible character in the window. When the face _is_ on the first visible character in the window, it is not clear whether the face should be considered as starting before the window or not; the current display code considers it to start before the window-start. I tend to close this bug as wontfix, since it seems to happen in rare situations, and fixing it will likely be messy. If you can show that it happens in more than just these rare cases, or if you have any suggestions for how to fix that or even can just point to the code which causes this, I might change my mind. Thanks.