unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21716: 25.0.50; highlight-regexp gets confused when the highlighted text is pasted
@ 2015-10-20  6:13 Dima Kogan
  2015-10-20 15:22 ` Eli Zaretskii
  2021-05-26 22:29 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 4+ messages in thread
From: Dima Kogan @ 2015-10-20  6:13 UTC (permalink / raw)
  To: 21716

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-26 23:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-20  6:13 bug#21716: 25.0.50; highlight-regexp gets confused when the highlighted text is pasted Dima Kogan
2015-10-20 15:22 ` Eli Zaretskii
2021-05-26 22:29 ` Lars Ingebrigtsen
2021-05-26 23:02   ` Dima Kogan

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).