From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#54551: show-paren-mode inconsistency Date: Fri, 25 Mar 2022 17:57:45 +1300 Message-ID: <5b634871f981330f5d47a53aff2a318d@webmail.orcon.net.nz> References: <83ee2rccyk.fsf@gnu.org> <02f5d0e52ab17015df7cffeda5600d17@webmail.orcon.net.nz> <0WZYJ8onIiWI4JsigrmlEGqkMLh1v1m8PYEhIC8hfU3s6tdWSPdE2eWEXWlzwwZ4UEkfEez_mlZTmfCy5akvKZTpu32mttK4b_qxu2VMIxs=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23438"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: 54551@debbugs.gnu.org To: goncholden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 25 05:58:09 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 1nXc1Z-0005uU-3C for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 05:58:09 +0100 Original-Received: from localhost ([::1]:60210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXc1X-00068e-Nf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 00:58:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXc1S-00068F-6W for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 00:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXc1R-0007XB-UA for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 00:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXc1R-0002ja-PP for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 00:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Mar 2022 04:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54551 X-GNU-PR-Package: emacs Original-Received: via spool by 54551-submit@debbugs.gnu.org id=B54551.164818427110492 (code B ref 54551); Fri, 25 Mar 2022 04:58:01 +0000 Original-Received: (at 54551) by debbugs.gnu.org; 25 Mar 2022 04:57:51 +0000 Original-Received: from localhost ([127.0.0.1]:49835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXc1H-0002jA-4Y for submit@debbugs.gnu.org; Fri, 25 Mar 2022 00:57:51 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:39307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXc1F-0002j0-1j for 54551@debbugs.gnu.org; Fri, 25 Mar 2022 00:57:49 -0400 Original-Received: from [10.253.37.70] (port=43576 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1nXc1B-0002A5-6o; Fri, 25 Mar 2022 17:57:45 +1300 Original-Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Fri, 25 Mar 2022 17:57:45 +1300 In-Reply-To: <0WZYJ8onIiWI4JsigrmlEGqkMLh1v1m8PYEhIC8hfU3s6tdWSPdE2eWEXWlzwwZ4UEkfEez_mlZTmfCy5akvKZTpu32mttK4b_qxu2VMIxs=@protonmail.com> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:228906 Archived-At: On 2022-03-25 17:20, goncholden wrote: > I use the block colouring of the cursor, meaning that your > valid description in not so intuitive. Would it be possible > to include a different interpretation depending on the type > of cursor display one is using? The position at point is the same no matter what the cursor looks like, and the behaviour is based on where point is, so for the current code the appearance of the cursor is irrelevant. You *could* make the code test the cursor type and change its behaviour in accordance with what it thought the cursor looked like, but I'd really recommend just getting familiar with the existing (and very consistent) behaviour, and remembering what it is that the cursor actually represents. > > I think you're looking for this library: > > https://www.emacswiki.org/emacs/HighlightSexp > > Is HighlightSexp only relevant for use with lisp-mode-hook > and emacs-lisp-mode-hook ? Anything lisp-based should certainly work, but it's more generic than that. Not every major mode would be relevant, but you can experiment with different modes and see whether it works. -Phil