From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54551: show-paren-mode inconsistency Date: Fri, 25 Mar 2022 05:23:35 +0000 Message-ID: References: <83ee2rccyk.fsf@gnu.org> <02f5d0e52ab17015df7cffeda5600d17@webmail.orcon.net.nz> <0WZYJ8onIiWI4JsigrmlEGqkMLh1v1m8PYEhIC8hfU3s6tdWSPdE2eWEXWlzwwZ4UEkfEez_mlZTmfCy5akvKZTpu32mttK4b_qxu2VMIxs=@protonmail.com> <5b634871f981330f5d47a53aff2a318d@webmail.orcon.net.nz> Reply-To: goncholden 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="19634"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54551@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 25 06:24:19 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 1nXcQs-0004uU-3T for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 06:24:18 +0100 Original-Received: from localhost ([::1]:33186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXcQq-0008FT-I5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 01:24:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXcQc-0008F6-Vs for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 01:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXcQc-0002hz-N1 for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 01:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXcQc-0003Vc-Dd for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 01:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: goncholden Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Mar 2022 05:24:02 +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.164818582613465 (code B ref 54551); Fri, 25 Mar 2022 05:24:02 +0000 Original-Received: (at 54551) by debbugs.gnu.org; 25 Mar 2022 05:23:46 +0000 Original-Received: from localhost ([127.0.0.1]:49847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXcQM-0003V7-CA for submit@debbugs.gnu.org; Fri, 25 Mar 2022 01:23:46 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:57125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXcQJ-0003Ur-CJ for 54551@debbugs.gnu.org; Fri, 25 Mar 2022 01:23:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1648185816; bh=W4hLxKU4PjmMuSKjlGgcRp2rvnWhz19lSigLUgtyGdg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=VXUL1COnpfavXm5e66hUWzkGj/1kx7EozeTxv1gE9pXVtRrsKFb6lzdxGF69W+zyM jy+uEThrpA0kLSdFLWF9ESH20KyrzSaOe5ufK0qhGK5oWCJbC2BP0ksB17AGcy+o12 dnfcuDjCrGl1+a7Gsm3Xv8BneINtzi9LyeKZlwQ643WhxTFWIkEO24ACCWhkL3k9l5 ETsX1u9aM7i0NV/QHNaIf0VbaLI7YB/6qF6DECNNCXnX9DcDsKDigiA+ErI3XxZQTh is+Xsk+XZ+8CxAywHqovZAcFZOPMMy59LpJ5RBMhLlAszHBqVjqI5xkUQtpnpkZu7r CGnw5cxPeTmKw== In-Reply-To: <5b634871f981330f5d47a53aff2a318d@webmail.orcon.net.nz> 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" X-ACL-Warn: , goncholden Xref: news.gmane.io gmane.emacs.bugs:228907 Archived-At: ------- Original Message ------- On Friday, March 25th, 2022 at 4:57 PM, Phil Sainty = wrote: > 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 Have tried to figure out the background colour used by show-paren-mode after setting show-paren-when-point-inside-paren to t. But have not got to its determination.