GNU bug report logs - #54551
show-paren-mode inconsistency

Previous Next

Package: emacs;

Reported by: goncholden <goncholden <at> protonmail.com>

Date: Thu, 24 Mar 2022 20:15:01 UTC

Severity: wishlist

Tags: notabug

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 54551 <at> debbugs.gnu.org (full text, mbox):

From: goncholden <goncholden <at> protonmail.com>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 54551 <at> debbugs.gnu.org
Subject: Re: bug#54551: show-paren-mode inconsistency
Date: Fri, 25 Mar 2022 04:29:01 +0000
------- Original Message -------

On Friday, March 25th, 2022 at 4:20 PM, goncholden <goncholden <at> protonmail.com> wrote:

> ------- Original Message -------
>
> On Friday, March 25th, 2022 at 12:12 PM, Phil Sainty psainty <at> 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 description
> in not so intuitive. Would it be possible to include a different interpretation
> 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-mode-hook ?





This bug report was last modified 3 years and 151 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.