GNU bug report logs -
#21716
25.0.50; highlight-regexp gets confused when the highlighted text is pasted
Previous Next
Reported by: Dima Kogan <dima <at> secretsauce.net>
Date: Tue, 20 Oct 2015 06:14:02 UTC
Severity: minor
Found in version 25.0.50
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 21716 in the body.
You can then email your comments to 21716 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21716
; Package
emacs
.
(Tue, 20 Oct 2015 06:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dima Kogan <dima <at> secretsauce.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 20 Oct 2015 06:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi. I'm running a recent build of emacs:
https://github.com/emacs-mirror/emacs/commit/ce402dd
and I'm observing highlight-regexp get confused some times. Recipe:
1. emacs -Q
2. open or type a tiny .c source file such as:
=====================
int main(void)
{
}
=====================
3. mark 'main' and M-w
4. highlight 'main': M-s h r main, accept default face
5. yank on the empty line between {}. I expect the yanked text 'main' to
be highlighted. Instead I sometimes see "mai" being highlighted but not
the "n"; at other times I see nothing highlighted, but "mai" being
rendered with a different face than the "n". In any case, it's never
highlighted correctly.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21716
; Package
emacs
.
(Tue, 20 Oct 2015 15:23:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 21716 <at> debbugs.gnu.org (full text, mbox):
> From: Dima Kogan <dima <at> secretsauce.net>
> Date: Mon, 19 Oct 2015 23:13:19 -0700
>
> 1. emacs -Q
>
> 2. open or type a tiny .c source file such as:
> =====================
> int main(void)
> {
>
> }
> =====================
>
> 3. mark 'main' and M-w
>
> 4. highlight 'main': M-s h r main, accept default face
>
> 5. yank on the empty line between {}. I expect the yanked text 'main' to
> be highlighted. Instead I sometimes see "mai" being highlighted but not
> the "n"; at other times I see nothing highlighted, but "mai" being
> rendered with a different face than the "n". In any case, it's never
> highlighted correctly.
What I see here is that the moment 'main' becomes a complete C symbol,
like if I type a ';' or a '(' after yanking it, "main" becomes
highlighted exactly as expected. So maybe this is a feature?
I do see that Emacs 24.5 highlighted "main" as soon as it was yanked,
so this is at least a change in behavior.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21716
; Package
emacs
.
(Wed, 26 May 2021 22:30:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 21716 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Dima Kogan <dima <at> secretsauce.net> writes:
> 2. open or type a tiny .c source file such as:
> =====================
> int main(void)
> {
>
> }
> =====================
>
> 3. mark 'main' and M-w
>
> 4. highlight 'main': M-s h r main, accept default face
>
> 5. yank on the empty line between {}. I expect the yanked text 'main' to
> be highlighted. Instead I sometimes see "mai" being highlighted but not
> the "n"; at other times I see nothing highlighted, but "mai" being
> rendered with a different face than the "n". In any case, it's never
> highlighted correctly.
I've tried the recipe in Emacs 28, and this seems to work better now:
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
So I'm going to go ahead and guess that this has been fixed in the five
years since this was reported, and I'm closing this bug report. If you
can still see the bug, please respond to the debbugs address and we'll
reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
21716 <at> debbugs.gnu.org and Dima Kogan <dima <at> secretsauce.net>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 26 May 2021 22:30:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21716
; Package
emacs
.
(Wed, 26 May 2021 23:03:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 21716 <at> debbugs.gnu.org (full text, mbox):
Yeah, it appears to work now. Thanks much for going through the old
reports.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 24 Jun 2021 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 277 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.