From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs,gmane.emacs.help Subject: bug#53771: Why M-x highlight-regexp does not work after sort in tabulated-list-mode? Date: Fri, 02 Sep 2022 02:11:40 +0200 Message-ID: <87y1v2fxdv.fsf@web.de> References: <871qsxnt57.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2326"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: larsi@gnu.org, 53771@debbugs.gnu.org To: help-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 02 02:12:19 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 1oTuIF-0000Lm-FH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Sep 2022 02:12:19 +0200 Original-Received: from localhost ([::1]:46830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTuID-0000sb-Sd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Sep 2022 20:12:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTuHy-0000sB-KI for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 20:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTuHy-0000R8-5m for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 20:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTuHx-0005eC-VB for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 20:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Sep 2022 00:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 53771-submit@debbugs.gnu.org id=B53771.166207751321694 (code B ref 53771); Fri, 02 Sep 2022 00:12:01 +0000 Original-Received: (at 53771) by debbugs.gnu.org; 2 Sep 2022 00:11:53 +0000 Original-Received: from localhost ([127.0.0.1]:44406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTuHo-0005dq-Rm for submit@debbugs.gnu.org; Thu, 01 Sep 2022 20:11:53 -0400 Original-Received: from mout.web.de ([212.227.15.3]:49243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTuHk-0005da-6U for 53771@debbugs.gnu.org; Thu, 01 Sep 2022 20:11:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1662077501; bh=Yo9e2VIRFCJlsEL8Hf+wa7fhL3dbcSLeIgmKRCRp54A=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=m+P5jWLLNOKdcbQnIUUN0EfJdMVW32WGjAYVgUN10ihMZHQD0CqVUXDEPQPopRpL3 uS8y/H98L7QGmoS90o5eaduFtolx+Jk7fS1O7PQ8uChNO0ZrFtz5gUGbaXNfZtrwwz slb7WHlkE6q520fy7YHdY7AHACfX9y/G7q2Zv1s4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.57.248.18]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N0Icd-1pHlhy2RZ1-00x8dY; Fri, 02 Sep 2022 02:11:41 +0200 In-Reply-To: (Jean Louis's message of "Wed, 31 Aug 2022 07:19:04 +0300") X-Provags-ID: V03:K1:4fArmcUJT8FJy7vcXyxLFgYF3dc0rG51qu0BrScxC/y0GDrJwSZ ubihSX/IMkFSCo42PwiebH4CmTul3Ou8jH1CjDB79UaLcfQvosBO3QTHXzVRVaALcvNequ7 Di05DOUnqaAZER1O3Oc040mS3fwqHOz9VLatvKVxTCDZo0Wh00bWy1+3rfXwd9g7PJJW2BX xpQ8Ktu9cBV6B+qnQlb9A== X-UI-Out-Filterresults: notjunk:1;V03:K0:wx/6F+4LsIg=:aWpXU1Tx5ELHOAAmX0WAyx UiSuIUDC1y++DySRvDek8CFcluQC08qOPscVhI0ctOiZSFzz/XMN/3U3krxNXxt/LaNtWSHKx 56dZ8mk/1lCJZLO2GURrf1vy7uxHbXsMP/+D6Ej4ZJKikJxGMp4R992gduTBbEEPix7sqZauI KmKBKbYFSUZwcLMkCl3tjeeqGT4DERVmG/KUP7YovFz1iRq4uby0L0pOuAbDQjDh34GYoNYDC RJMi5HcRXmETTiDhjfnn3KCtiqtgJlcciWUsexPaspGutZMy1PrwHI04KNKGmzBYD0X3f68ly BpBh049qU4bfEw+oIoMdVy44pyevoS7iQJGgp7SC/Yf+zHGKEQDdVT/if5EeiFOWrWPSex+Aa dx5rqCJSz/dst7m5/Z7TMCc/J7xlglgNqYBUGJgZLiI1TOuWrajcGMzLQs4ARyMU0GjPz0nQr foU2tXk/YrH94u9frl/9fcdBbPFRE2PwcsWuGahzXgXBUdmkesN1W/hnp4cF8sjRFQHttC6qo eZr7HaEe5R5dngcaReTWSewK/WCknhOkN2Vw8KqnUprJcOPtZYYmeYDP5bXVe4Vw+nalOILrx SCi88myHS434HpmgDMNtdLYVK9fMCUkxpaDpryLCS98Cq6T2gS4P9lGWWcL5L3uIsnF7dxedO VGY9h6VHO9yLDxmjpsUSMO6HyKTAaqWCTy8T3Ne4sT0F6GI519DUsaKX7wnVhPWEhYYChLKWZ hClnR8ygBq8EwMdbq9mvqOBpAz0CxmekFqj1GkN70ZUvxvC8WOPxriAdhzXExLhu8uUtaiLn 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:241280 gmane.emacs.help:139218 Archived-At: Jean Louis writes: > Do you think that is error, and that hook shall be run after sorting? I don't know what exactly you are doing, so it's hard to tell something concrete. tabulated-list is only a generic mode, so maybe it's better when the implementations add hooks for operations when it makes sense. In any case, I don't think it's that mode's concern to implement features of `hi-lock-mode' - which seems to be your intention. Maybe it would be easier for you to just turn on font-lock-mode. Have you tried that? Removing and re-adding pattern highlighting explicitly is only a workaround. If I would change anything then I would try to improve hi-lock-mode instead so that it is easier to use under such circumstances. That `highlight-regexp' does nothing when font-lock-mode is off (and no automatic highlighting can be assumed) doesn't make much sense to me. It could just highlight again. But if you think that further (automatic updating...) you end with a re-implementation of font-lock-mode in Elisp - thus my suggestion to just try to turn that mode on. Michael.