From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#57534: 29.0.50; Highlighting lost after auto-revert-mode triggers Date: Thu, 01 Sep 2022 15:40:01 -0700 Message-ID: <87o7vyhg72.fsf@shorty.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24841"; mail-complaints-to="usenet@ciao.gmane.io" To: 57534@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 02 00:41:24 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 1oTssE-0006EC-63 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Sep 2022 00:41:24 +0200 Original-Received: from localhost ([::1]:60200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTssC-0007CX-Nt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Sep 2022 18:41:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTsrw-0007CO-MB for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 18:41:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTsrv-0003hd-O6 for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 18:41:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTsru-0003LE-KD for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 18:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Sep 2022 22:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57534 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166207201412753 (code B ref -1); Thu, 01 Sep 2022 22:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Sep 2022 22:40:14 +0000 Original-Received: from localhost ([127.0.0.1]:44364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTsr8-0003Ja-3d for submit@debbugs.gnu.org; Thu, 01 Sep 2022 18:40:14 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTsr6-0003JT-3b for submit@debbugs.gnu.org; Thu, 01 Sep 2022 18:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTsr4-00074r-Hn for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 18:40:11 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:52145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTsr2-0003RP-8A for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 18:40:10 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id EA5035C00CB for ; Thu, 1 Sep 2022 18:40:05 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 01 Sep 2022 18:40:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t= 1662072005; x=1662158405; bh=9KeT6r2ljupdZbchvVNT8ar9lWu82IK+vHD 11RVo2Fk=; b=RXGF/VoIjFwn/Y6I90iIPsUhq9iKnL46ZGLBvlKffeTm4z8KGOr Z/QqqlxkAHMnErDb6B5q0O/Oj6ZDLThRhmafy+/smUhtEhj8fDN+2ldrUH5oPKH0 mBY2qj8KefKngSYQbLTdpxyRzn4pRyPi6LiM3gvXbhaMPQIc7lCr7szTu+o6F5nG 6pV8Qx8ipJeHC/qTdZIW+UC5P0qggckXemGZt81rwvlc5UD66eKLkysxOw26nEsD B8XxvfC2S7m5Aw6VApW5YPJO5kPlmn/NM2pxn6nuFn4dhc33JvRxmHyxtsS6YeGP Wz6xpD4/NRev004jDhpqAN+v5GUVG718jMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1662072005; x= 1662158405; bh=9KeT6r2ljupdZbchvVNT8ar9lWu82IK+vHD11RVo2Fk=; b=h 2qqNWOj2oLrwadJb1xUjADPy8dKLqyJxyiHgAV+/xVSrzkl+bTWkET8g9tHYO5J3 d1nrk9aTY7HRCY+NEH5PKGgwznRNnHSsZZR++qoloXWhlNB9bjKFUefQH45MD1W7 0KxN3zxdNTDLw5cUCthYknws9qIGONzQEKYRu1GBydap9Hb1mcQHdENV6K59Qj3D XEav4mqSrwsHpkFmf8qNB3+yjqAhjvlER2ALklpnGdw9JMj40zsX+YKTj4MEnmYT g/HC3J268A4i0Zj6pdOA1kpMNdVLYhyOz5F2CfvFIhGrkB5kODWvxVCS5o03A5Bq z5EFHIfxiSWSV4tbZdKvg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekledgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgt vgdrnhgvtheqnecuggftrfgrthhtvghrnhepffdvffduhfekfffhieefhfffvddtgfefje evuedvfedujeejudevfedtgeeguedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 1 Sep 2022 18:40:05 -0400 (EDT) Received-SPF: pass client-ip=66.111.4.25; envelope-from=dima@secretsauce.net; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:241277 Archived-At: Hi. I'm seeing this: 1. seq 10 > /tmp/file 2. emacs -Q /tmp/file 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 5. Back in the shell: seq 20 > /tmp/file auto-revert-mode kicks in, updating the buffer with the results of 'seq 20' (possibly updating to an empty buffer first, if we react immediately to the file truncation). At this point I would expect either: 1. The buffer being fully reverted, with all the highlighting disappearing. This is what happens if we did M-x revert buffer 2. The buffer contents being reverted, but the highlighting being reapplied In this auto-revert scenario, we get something in-between: after the auto-revert hi-lock-interactive-patterns still contains the highlighting regex, but no highlighting actually happens. It'd be really nice and useful if the highlighting stayed. Thanks!