unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: dima@secretsauce.net, 57534@debbugs.gnu.org
Subject: bug#57534: 29.0.50; Highlighting lost after auto-revert-mode triggers
Date: Fri, 02 Sep 2022 10:22:08 +0300	[thread overview]
Message-ID: <834jxqqlzz.fsf@gnu.org> (raw)
In-Reply-To: <8635dacl52.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 02 Sep 2022 10:04:25 +0300)

> From: Juri Linkov <juri@linkov.net>
> Cc: Dima Kogan <dima@secretsauce.net>,  57534@debbugs.gnu.org
> Date: Fri, 02 Sep 2022 10:04:25 +0300
> 
> >> 3. (highlight-lines-matching-regexp "3")
> >>
> >>    This is bound to "M-s h l". I see the line containing "3" highlighted
> >>    in yellow, as expected
> >>
> >> 4. M-x auto-revert-mode
> >
> > If I use your recipe in a file visited with C Mode, which does use
> > Font Lock, the auto-revert doesn't lose the highlighted lines.
> 
> However, after manual revert with 'C-x x g' highlighting is still lost.

That's not the same revert as in auto-revert-mode.

> But this is bug#50431 where 'C-x x g' should be fixed to restore minor modes.

I'm not sure this is one of the minor modes to be restored.  Maybe
optionally, but not unconditionally.  See the discussion in that bug.





  reply	other threads:[~2022-09-02  7:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-01 22:40 bug#57534: 29.0.50; Highlighting lost after auto-revert-mode triggers Dima Kogan
2022-09-02  6:10 ` Eli Zaretskii
2022-09-02  7:04   ` Juri Linkov
2022-09-02  7:22     ` Eli Zaretskii [this message]
2022-09-02 14:27       ` Drew Adams

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=834jxqqlzz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=57534@debbugs.gnu.org \
    --cc=dima@secretsauce.net \
    --cc=juri@linkov.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).