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 04:29:01 +0000 Message-ID: <7HF3qMcVu6h-sk7DalI-eW4Dghrjvr8JGDFsLdTscFleTv944hc3qU8KmBM5FOgK94hjbkmUVcqQpx5kvw4cCsVWBHjwaogloBoHlElxF84=@protonmail.com> References: <83ee2rccyk.fsf@gnu.org> <02f5d0e52ab17015df7cffeda5600d17@webmail.orcon.net.nz> <0WZYJ8onIiWI4JsigrmlEGqkMLh1v1m8PYEhIC8hfU3s6tdWSPdE2eWEXWlzwwZ4UEkfEez_mlZTmfCy5akvKZTpu32mttK4b_qxu2VMIxs=@protonmail.com> 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="17026"; 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 05:31:11 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 1nXbbT-0004FJ-K7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 05:31:11 +0100 Original-Received: from localhost ([::1]:54578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXbbS-00011G-4P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 00:31:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXbaW-000112-UB for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 00:30:13 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXbaN-0003bx-FN for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 00:30:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXbaN-00020x-7V for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 00:30:03 -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 04:30:03 +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.16481825577663 (code B ref 54551); Fri, 25 Mar 2022 04:30:03 +0000 Original-Received: (at 54551) by debbugs.gnu.org; 25 Mar 2022 04:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:49814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXbZc-0001zW-OE for submit@debbugs.gnu.org; Fri, 25 Mar 2022 00:29:17 -0400 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]:35715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXbZU-0001zC-Oa for 54551@debbugs.gnu.org; Fri, 25 Mar 2022 00:29:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1648182542; bh=hLQgklK3uCxnDa6I8WGZ3U06WM4hzAhnyuJ5AW1mgCo=; 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=EnxV+Ym7ml2x+YVY5Kr/S1wOHCgazT9XvmAzvpSor71aPiqb1L+2WQARsRnGNJ2V0 +/P/pSrPrKULfh7p2Di6w8OEdROeTTCrHSMkKYDlDPd6nxXFhDeXze2E2yRJXf5/2s DREn7h3EDzNX0pBCYplSX0IFUFIwiKTFJkrxtYQHW+M0WBjzIKVqtYYYe9GsjmyVCY iFyeXVdtXCMWfOqtHx/lOtAhomX076bTrq/RSZFQxEEGJJS8U68tmKEzZQb2kS9uFn H/h2Ugy2JwpySWcgujTFUGQ0FMg9iQ4sBzaF5ImA0mNqR8aqbqyBYSwfpIXZJLc3W+ +haWKP3cYGD6A== In-Reply-To: <0WZYJ8onIiWI4JsigrmlEGqkMLh1v1m8PYEhIC8hfU3s6tdWSPdE2eWEXWlzwwZ4UEkfEez_mlZTmfCy5akvKZTpu32mttK4b_qxu2VMIxs=@protonmail.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" X-ACL-Warn: , goncholden Xref: news.gmane.io gmane.emacs.bugs:228905 Archived-At: ------- Original Message ------- On Friday, March 25th, 2022 at 4:20 PM, goncholden wrote: > ------- Original Message ------- > > On Friday, March 25th, 2022 at 12:12 PM, Phil Sainty psainty@orcon.net.nz= wrote: > > > On 2022-03-25 11:48, goncholden wrote: > > > > Consider the following command > > > (setq initial-frame-alist '((width . 72) (height . 26)) ). > > > Would be instructive that when one puts the cursor in the space > > > between (width . 72) and (height . 26), the entire (width . 72) > > > (height . 26) would be highlighted. > > That wouldn't make any sense for show-paren-mode. > > The cursor (point) is either between the ")" and " " characters, or > > else between the " " and "(" characters. Those are the only two > > possibilities, and in each case you would expect show-paren-mode to > > highlight the adjacent expression (to the left or to the right of the > > cursor, respectively). > I use the block colouring of the cursor, meaning that your valid descript= ion > in not so intuitive. Would it be possible to include a different interpre= tation > depending on the type of cursor display one is using? > > > But (setq show-paren-when-point-inside-paren t) does not do that. > > It's not documented as doing that, so there's not reason to expect > > that it might. > > I think you're looking for this library: > > https://www.emacswiki.org/emacs/HighlightSexp > Will try it out and report back about it. Is HighlightSexp only relevant for use with lisp-mode-hook and emacs-lisp-m= ode-hook ?