From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57534: 29.0.50; Highlighting lost after auto-revert-mode triggers Date: Fri, 02 Sep 2022 10:22:08 +0300 Message-ID: <834jxqqlzz.fsf@gnu.org> References: <87o7vyhg72.fsf@shorty.mail-host-address-is-not-set> <83fshaqpbd.fsf@gnu.org> <8635dacl52.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12132"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dima@secretsauce.net, 57534@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 02 09:28:27 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oU16J-0002xT-HB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Sep 2022 09:28:27 +0200 Original-Received: from localhost ([::1]:41634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oU16I-0006yK-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Sep 2022 03:28:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU106-00026n-Ao for bug-gnu-emacs@gnu.org; Fri, 02 Sep 2022 03:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oU105-0008Pj-Sg for bug-gnu-emacs@gnu.org; Fri, 02 Sep 2022 03:22:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oU105-0008BV-OA for bug-gnu-emacs@gnu.org; Fri, 02 Sep 2022 03:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Sep 2022 07:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57534 X-GNU-PR-Package: emacs Original-Received: via spool by 57534-submit@debbugs.gnu.org id=B57534.166210330731442 (code B ref 57534); Fri, 02 Sep 2022 07:22:01 +0000 Original-Received: (at 57534) by debbugs.gnu.org; 2 Sep 2022 07:21:47 +0000 Original-Received: from localhost ([127.0.0.1]:44687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oU0zr-0008B3-Gf for submit@debbugs.gnu.org; Fri, 02 Sep 2022 03:21:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oU0zp-0008Ao-E6 for 57534@debbugs.gnu.org; Fri, 02 Sep 2022 03:21:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU0zi-0008Nj-Jw; Fri, 02 Sep 2022 03:21:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pxfTWPViZhxLDMQNkT8VfSU4ujL65k2cqMgWmkDDhbg=; b=Sxm/mmaavYrw QUKcV+QWSqtjTCrxWowqa8B743FJAyU5Hb7Qc3588kPnaWMXUFCw/jhQKQSEEDIh9W4/68yVSEdaw y5P4EkRPFDPUMh92zc9kvv1Iwca/Y/TKCb66a91HfY/cQb6rBB2VRQET8cnFMS6kangvZjg4O76Mk lOxNYo4/kc7Fr7rlBf4PIO30PVThAxNzK1QG1hS2xeMjiHgGC3jGeuVJrLY0A/hehKkGf4Ghi0aCJ Jf63O/BYM9IpljjpowEaMknX+t1nJBAfEkT7CEav+UGnfXmVXtdRDcn0q5AkzuESGBEQpNGqnS7+7 ez1jA2ivztSNOFJFU3wAxw==; Original-Received: from [87.69.77.57] (port=1472 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oU0zi-0000tx-2D; Fri, 02 Sep 2022 03:21:38 -0400 In-Reply-To: <8635dacl52.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 02 Sep 2022 10:04:25 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241295 Archived-At: > From: Juri Linkov > Cc: Dima Kogan , 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.