GNU bug report logs - #21716
25.0.50; highlight-regexp gets confused when the highlighted text is pasted

Previous Next

Package: emacs;

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.

Full log


View this message in rfc822 format

From: Dima Kogan <dima <at> secretsauce.net>
To: 21716 <at> debbugs.gnu.org
Subject: bug#21716: 25.0.50; highlight-regexp gets confused when the highlighted text is pasted
Date: Mon, 19 Oct 2015 23:13:19 -0700
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.




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

Previous Next


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