From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#53771: 29.0.50; highlight-regexp not working after tabulated-list-col-sort Date: Sat, 5 Feb 2022 10:13:59 +0300 Message-ID: References: <86wnibdu15.fsf@protected.rcdrun.com> <877da9erl1.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28297"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.1.5+104 (cd3a5c8) (2022-01-09) Cc: 53771@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 05 08:31:54 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 1nGFY1-0007BQ-Hd for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 08:31:53 +0100 Original-Received: from localhost ([::1]:32956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGFXy-0001IJ-8o for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 02:31:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGFK5-0007Wa-2H for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 02:17:32 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGFJe-0003kS-Qf for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 02:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGFJe-0002wC-JG for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 02:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Feb 2022 07:17:02 +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.164404540311262 (code B ref 53771); Sat, 05 Feb 2022 07:17:02 +0000 Original-Received: (at 53771) by debbugs.gnu.org; 5 Feb 2022 07:16:43 +0000 Original-Received: from localhost ([127.0.0.1]:33612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGFJK-0002vZ-WF for submit@debbugs.gnu.org; Sat, 05 Feb 2022 02:16:43 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:60373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGFJI-0002vJ-BO for 53771@debbugs.gnu.org; Sat, 05 Feb 2022 02:16:40 -0500 Original-Received: from localhost ([::ffff:41.75.189.214]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000067F36.0000000061FE2451.00006DC7; Sat, 05 Feb 2022 00:16:32 -0700 Content-Disposition: inline In-Reply-To: <877da9erl1.fsf@gnus.org> 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:226046 Archived-At: * Lars Ingebrigtsen [2022-02-05 09:49]: > As the doc string says: > > --- > Use Font lock mode, if enabled, to highlight REGEXP. Otherwise, > use overlays for highlighting. If overlays are used, the > highlighting will not update as you type. The Font Lock mode > is considered "enabled" in a buffer if its ‘major-mode’ > causes ‘font-lock-specified-p’ to return non-nil, which means > the major mode specifies support for Font Lock. I wish to use the function highlight-regexp for reasons of simplicity. The above description does not tell me HOW to use font lock mode to highlight regexp. I can see that font-lock-mode is T inthe buffer before and after sorting. My understanding is that I am already using font-lock-mode. It is enabled, and I cannot get highlighting. Description such as "Use Font lock mode, if enabled, to highlight REGEXP." with its "REGEXP" relates to the argument REGEXP. It is related to the function. It tells little how is that supposed to work. I have followed the above instructions by my (mis)understanding and have specified `font-lock-specified-p' below, and after sorting I still cannot invoke highlight-regexp neither with M-x neither by evaluation. Please, help me resolve this. (define-derived-mode hyperscope-list-mode tabulated-list-mode "Hyperscope" "Hyperscope mode" (hyperscope-text-scale-adjust 'hyperscope-list-mode) (let ((id-length (length (number-to-string (rcd-sql-first "SELECT hyobjects_id FROM hyobjects ORDER BY hyobjects_id DESC LIMIT 1" hs-db))))) (setq tabulated-list-format (vconcat (list (list "ID" id-length t :right-align t)) (list (list "Hyperdocument" 70 t)) (list (list "Type" 12 t)) (list (list "Action" 9 t)))) (setq font-lock-specified-p t) (setq tabulated-list-padding 1) ;; (setq tabulated-list-sort-key (cons "ID" nil)) (tabulated-list-init-header))) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/