unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dima Kogan <dima@secretsauce.net>
To: 21716@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	[thread overview]
Message-ID: <87r3kqxe2o.fsf@secretsauce.net> (raw)

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.





             reply	other threads:[~2015-10-20  6:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-20  6:13 Dima Kogan [this message]
2015-10-20 15:22 ` bug#21716: 25.0.50; highlight-regexp gets confused when the highlighted text is pasted Eli Zaretskii
2021-05-26 22:29 ` Lars Ingebrigtsen
2021-05-26 23:02   ` Dima Kogan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3kqxe2o.fsf@secretsauce.net \
    --to=dima@secretsauce.net \
    --cc=21716@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).