From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54634: 29.0.50; Off-by-one highlighting Date: Sat, 09 Apr 2022 22:41:09 +0200 Message-ID: References: <83fsmz8yf0.fsf@gnu.org> <83bkxif9zi.fsf@gnu.org> <83pmlucw6y.fsf@gnu.org> Reply-To: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3896"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54634@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 09 22:43:08 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 1ndHvG-0000qc-BG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Apr 2022 22:43:06 +0200 Original-Received: from localhost ([::1]:44344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndHvE-0002vL-Sp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Apr 2022 16:43:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndHuE-0002Q7-Mv for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2022 16:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndHuE-0004J1-DX for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2022 16:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndHuE-0003JD-BB for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2022 16:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Apr 2022 20:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54634 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54634-submit@debbugs.gnu.org id=B54634.164953688312661 (code B ref 54634); Sat, 09 Apr 2022 20:42:02 +0000 Original-Received: (at 54634) by debbugs.gnu.org; 9 Apr 2022 20:41:23 +0000 Original-Received: from localhost ([127.0.0.1]:38793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndHta-0003I9-MS for submit@debbugs.gnu.org; Sat, 09 Apr 2022 16:41:22 -0400 Original-Received: from mr85p00im-ztdg06021701.me.com ([17.58.23.196]:41864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndHtX-0003Hu-Tw for 54634@debbugs.gnu.org; Sat, 09 Apr 2022 16:41:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1649536874; bh=wmN7qw2PgWpqRBf+6CUATsTWN1JvSav72C7ayOwmELg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=1K3iUI+rS4udylOqagxpM9loDAQJUMs9KSb/8w4bVL70H9hDJUxMY3X9qUuYwBGw/ dnjEG5tPFAocI/pciZqA7RtpKp02nEVzQQtioR93DNonmgzWW4gHaNivMATMVeFChn nI08oCnUMPOXp/QuoW+t/8+YW+YSsb6Eg92KysSf+woQZXDM2SsSlhlbiV8IkUdXGC LNzB26G3PZWOrx0/bU7k3QPwPJpd+wbDzL5jvLrKkztF9l7pUXBdVXyZWf8CHxBRv3 tXTzUjzwv4B4b0dEA8sTHmG7HuVeMd7/JApmRwyALlItan2a0M6zUwlU8Xj/ygE6OI ByuhT2Ubo0WyQ== Original-Received: from Workstation.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06021701.me.com (Postfix) with ESMTPSA id 8607B9A05E9; Sat, 9 Apr 2022 20:41:13 +0000 (UTC) In-Reply-To: <83pmlucw6y.fsf@gnu.org> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.1.170-22c6f66c430a71ce266a39bfe25bc2903e8d5c8f:6.0.138, 18.0.572, 17.11.62.513.0000000 definitions=2020-02-14_11:2020-02-14_02, 2020-02-14_11, 2021-12-02_01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 malwarescore=0 mlxlogscore=804 clxscore=1015 adultscore=0 mlxscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2204090135 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" Xref: news.gmane.io gmane.emacs.bugs:229636 Archived-At: Eli Zaretskii writes: > If you can suggest a better setting for the priority/priorities of the > two involved overlays, perhaps we could change the priority only when > this style of show-paren-mode is used, and that would be an okay > solution. Eli, thank you for the reply! In the reproduction case above, I would expect the active region highlight = to take precedence over the parenthesized expression highlight. Effectively, = the active region highlight should cover the entire expression, including both = of its parentheses, rendering the expression highlight itself hidden. I see two issues in play here: (1) The priority, when using this particular style, does not make much sens= e. For myself, I work around the issue as follows: > Highlight parenthesized expressions with lower priority to avoid covering > more important highlights, such as the active region highlight provided by > the Transient Mark mode. >=20 > #+BEGIN_SRC emacs-lisp > (setq show-paren-priority 0) > #+END_SRC (2) If we decide to fix the priority, then that uncovers the off-by-one act= ive region highlight bug that I reported. I have waited for a couple of months with reporting the bug to become sure that this configuration makes sense a= nd the highlight continues to confuse me. It does and it does. Rudy --=20 "Be especially critical of any statement following the word 'obviously.'" -- Anna Pell Wheeler, 1883-1966 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia