GNU bug report logs - #32851
26.1.50; show-paren-mode disables off-screen-paren-match

Previous Next

Package: emacs;

Reported by: Stefan Guath <stefan <at> automata.se>

Date: Thu, 27 Sep 2018 09:43:01 UTC

Severity: minor

Found in version 26.1.50

To reply to this bug, email your comments to 32851 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32851; Package emacs. (Thu, 27 Sep 2018 09:43:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Guath <stefan <at> automata.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 27 Sep 2018 09:43:01 GMT) Full text and rfc822 format available.

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

From: Stefan Guath <stefan <at> automata.se>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1.50; show-paren-mode disables off-screen-paren-match
Date: Thu, 27 Sep 2018 11:35:06 +0200
[Message part 1 (text/plain, inline)]
SUMMARY
When show-paren-mode is enabled, the setting (setq blink-matching-paren
'jump-offscreen) is disabled, which is annoying.

DESCRIPTION
When show-paren-mode is enabled, the only respected setting for
blink-matching-paren is "any other non-nil value" which echos matched
parens only when they are off-screen. The settings t, 'jump and
'jump-offscreen are disabled.

I can understand why the settings t and 'jump are disregarded since it
would just be a redundant functionality of show-paren-mode. But I don't
understand why the setting 'jump-offscreen is disregarded. I think it's a
better option than "echo match off screen paren" since i) a jump (i.e. a
scroll) gives more context than a one-liner in the echo area, and ii) it's
very convenient to get a semantic based scroll operation automatically.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32851; Package emacs. (Thu, 27 Sep 2018 10:45:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Guath <stefan <at> automata.se>
Cc: 32851 <at> debbugs.gnu.org
Subject: Re: bug#32851: 26.1.50;
 show-paren-mode disables off-screen-paren-match
Date: Thu, 27 Sep 2018 13:43:32 +0300
> From: Stefan Guath <stefan <at> automata.se>
> Date: Thu, 27 Sep 2018 11:35:06 +0200
> 
> When show-paren-mode is enabled, the only respected setting for blink-matching-paren is "any other non-nil
> value" which echos matched parens only when they are off-screen. The settings t, 'jump and 'jump-offscreen
> are disabled.
> 
> I can understand why the settings t and 'jump are disregarded since it would just be a redundant functionality
> of show-paren-mode. But I don't understand why the setting 'jump-offscreen is disregarded. I think it's a better
> option than "echo match off screen paren" since i) a jump (i.e. a scroll) gives more context than a one-liner in
> the echo area, and ii) it's very convenient to get a semantic based scroll operation automatically.

Did you try to remove the condition that show-paren-mode is active?
When I try that, I see an unpleasant effect: when blink-matching-paren
jumps off-screen, the wrong opening parenthesis is highlighted
(although the jump is to the right place).

So allowing jump-offscreen and show-paren-mode to coexist will need
more changes than just removing the condition.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32851; Package emacs. (Thu, 27 Sep 2018 11:16:02 GMT) Full text and rfc822 format available.

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

From: Stefan Guath <stefan <at> automata.se>
To: eliz <at> gnu.org
Cc: 32851 <at> debbugs.gnu.org
Subject: Re: bug#32851: 26.1.50;
 show-paren-mode disables off-screen-paren-match
Date: Thu, 27 Sep 2018 13:15:04 +0200
[Message part 1 (text/plain, inline)]
Yes, if I comment out the line "(not show-paren-mode)" in the function
blink-matching-open, I observe the same thing. During the short time that
the point is temporarily moved to the correct matching paren, the
old/previous highlighted parens are still visible. If they could be updated
before the jump rather than after, then the problem would be solved. But as
you say, that would require more changes to the code. To be honest, the
execution paths in this piece of code is not obvious to me, so I'm rather
puzzled where to begin...

On Thu, Sep 27, 2018 at 12:43 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Stefan Guath <stefan <at> automata.se>
> > Date: Thu, 27 Sep 2018 11:35:06 +0200
> >
> > When show-paren-mode is enabled, the only respected setting for
> blink-matching-paren is "any other non-nil
> > value" which echos matched parens only when they are off-screen. The
> settings t, 'jump and 'jump-offscreen
> > are disabled.
> >
> > I can understand why the settings t and 'jump are disregarded since it
> would just be a redundant functionality
> > of show-paren-mode. But I don't understand why the setting
> 'jump-offscreen is disregarded. I think it's a better
> > option than "echo match off screen paren" since i) a jump (i.e. a
> scroll) gives more context than a one-liner in
> > the echo area, and ii) it's very convenient to get a semantic based
> scroll operation automatically.
>
> Did you try to remove the condition that show-paren-mode is active?
> When I try that, I see an unpleasant effect: when blink-matching-paren
> jumps off-screen, the wrong opening parenthesis is highlighted
> (although the jump is to the right place).
>
> So allowing jump-offscreen and show-paren-mode to coexist will need
> more changes than just removing the condition.
>
[Message part 2 (text/html, inline)]

Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Thu, 03 Oct 2019 01:53:02 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 260 days ago.

Previous Next


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