unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dima Kogan <dima@secretsauce.net>
Cc: 21716@debbugs.gnu.org
Subject: bug#21716: 25.0.50; highlight-regexp gets confused when the highlighted text is pasted
Date: Tue, 20 Oct 2015 18:22:05 +0300	[thread overview]
Message-ID: <83h9llftuq.fsf@gnu.org> (raw)
In-Reply-To: <87r3kqxe2o.fsf@secretsauce.net>

> From: Dima Kogan <dima@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.





  reply	other threads:[~2015-10-20 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=83h9llftuq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21716@debbugs.gnu.org \
    --cc=dima@secretsauce.net \
    /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).