unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.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: Thu, 27 May 2021 00:29:37 +0200	[thread overview]
Message-ID: <878s419lim.fsf@gnus.org> (raw)
In-Reply-To: <87r3kqxe2o.fsf@secretsauce.net> (Dima Kogan's message of "Mon, 19 Oct 2015 23:13:19 -0700")

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

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


[-- Attachment #2: Type: image/png, Size: 8689 bytes --]

[-- Attachment #3: Type: text/plain, Size: 328 bytes --]


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

  parent reply	other threads:[~2021-05-26 22:29 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
2021-05-26 22:29 ` Lars Ingebrigtsen [this message]
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=878s419lim.fsf@gnus.org \
    --to=larsi@gnus.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).