GNU bug report logs - #20566
perl-mode: maybe have the parentheses of s{a}{b} also blink

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 13 May 2015 16:14:01 UTC

Severity: wishlist

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20566 in the body.
You can then email your comments to 20566 AT debbugs.gnu.org in the normal way.

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#20566; Package emacs. (Wed, 13 May 2015 16:14:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 13 May 2015 16:14:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Subject: perl-mode: maybe have the parentheses of s{a}{b} also blink
Date: Thu, 14 May 2015 00:05:15 +0800
Just like the matching parentheses if(1){$k++;} blink,
also maybe do the same for s{a}{b} etc.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20566; Package emacs. (Sat, 06 Jul 2019 03:08:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 20566 <at> debbugs.gnu.org
Subject: Re: bug#20566: perl-mode: maybe have the parentheses of s{a}{b} also
 blink
Date: Sat, 6 Jul 2019 05:07:39 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> Just like the matching parentheses if(1){$k++;} blink,
> also maybe do the same for s{a}{b} etc.

Trying this on the most recent version of Emacs, 26.2:

0. emacs -Q
1. C-x b foo <RET>
2. M-x perl-mode <RET>
3. s{a}{b}

I do get a blinking effect, i.e. that when I type the "}" after "a"
and "b", Emacs briefly highlights the "{" character.

If this is indeed the issue, could you please test this on the most
recent version of Emacs (26.2) and see if you can reproduce it?

Also, could you clarify what "s{a}{b} etc." means above -- are there
any other expressions which you think should exhibit this behaviour
but do not?

If I don't get a response in a couple of weeks, I will close this as
unreproducible.

Thanks,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20566; Package emacs. (Sat, 06 Jul 2019 13:20:01 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 20566 <at> debbugs.gnu.org
Subject: Re: bug#20566: perl-mode: maybe have the parentheses of s{a}{b} also
 blink
Date: Sat, 06 Jul 2019 21:19:28 +0800
I think I am saying that when one types in
if(1),
even here in a non-perl mode as I type this email message,
emacs makes the ( and ) very bright, indeed as long as I don't move the
cursor more.

So I'm saying that something just the same should be done
on s/a/b/ s{a}{b}
where all three /'s or all four brackets light up.

>>>>> "SK" == Stefan Kangas <stefan <at> marxist.se> writes:

SK> I do get a blinking effect, i.e. that when I type the "}" after "a"
SK> and "b", Emacs briefly highlights the "{" character.

Well not only briefly, but it should stay lit, until the cursor moves
away, All four of {}{} too.

Same for [][], !!!, etc.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20566; Package emacs. (Tue, 13 Jul 2021 17:55:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 20566 <at> debbugs.gnu.org, Stefan Kangas <stefan <at> marxist.se>
Subject: Re: bug#20566: perl-mode: maybe have the parentheses of s{a}{b}
 also blink
Date: Tue, 13 Jul 2021 19:53:57 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> I think I am saying that when one types in
> if(1),
> even here in a non-perl mode as I type this email message,
> emacs makes the ( and ) very bright, indeed as long as I don't move the
> cursor more.
>
> So I'm saying that something just the same should be done
> on s/a/b/ s{a}{b}
> where all three /'s or all four brackets light up.

I don't think that sounds very useful -- the blinking stuff is supposed
to match the matching brace, not wider language constructs.  So I'm
closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 20566 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 13 Jul 2021 17:55:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 11 Aug 2021 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 259 days ago.

Previous Next


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