From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#41124: 26.3; highlight regexp not working properly - not updating as you type Date: Thu, 07 May 2020 19:29:25 +0200 Message-ID: <87sggbwt56.fsf@web.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="58948"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rtm443x@googlemail.com To: 41124@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 07 19:33:32 2020 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 1jWkOq-000FDP-Ln for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 May 2020 19:33:32 +0200 Original-Received: from localhost ([::1]:56714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWkOp-0008HW-Do for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 May 2020 13:33:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWkLT-0004RT-O9 for bug-gnu-emacs@gnu.org; Thu, 07 May 2020 13:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWkLT-0007wh-AB for bug-gnu-emacs@gnu.org; Thu, 07 May 2020 13:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWkLT-0006H1-6f for bug-gnu-emacs@gnu.org; Thu, 07 May 2020 13:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 May 2020 17:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41124 X-GNU-PR-Package: emacs X-Debbugs-Original-To: jan via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: jan , 41124@debbugs.gnu.org Original-Received: via spool by 41124-submit@debbugs.gnu.org id=B41124.158887257724028 (code B ref 41124); Thu, 07 May 2020 17:30:03 +0000 Original-Received: (at 41124) by debbugs.gnu.org; 7 May 2020 17:29:37 +0000 Original-Received: from localhost ([127.0.0.1]:43859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWkL2-0006FU-SP for submit@debbugs.gnu.org; Thu, 07 May 2020 13:29:37 -0400 Original-Received: from mout.web.de ([212.227.17.11]:41831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWkL0-0006FB-7l for 41124@debbugs.gnu.org; Thu, 07 May 2020 13:29:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1588872567; bh=IXvqg+hTOzfa/exU6idCZbklocRLTGusaWxrzYQW/MQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=nsbKO91riTHWe97qejwE0Lzqd85qNgmU8jyZLEnyLocc+7BaZI67FbXcSlbV4ZMb0 9Gl45iipt9VDFYXZuifw4DdL/AcKSTiOaMLf5jkcP+IjJtOd4+R9yqFB3dnT3TSu0I vUpk9+OMXYBw3KC34gTOl1JMMX6YIXLPHYB2Xwow= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.214.40]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LbrQm-1inojC3Bps-00jG1w; Thu, 07 May 2020 19:29:27 +0200 In-Reply-To: (jan via's message of "Thu, 7 May 2020 12:32:27 +0100") X-Provags-ID: V03:K1:cxhgK4axet+KyBRr9wthhaFNJ8+ifO2/WWdRS1EPPiqs3K21wLD bmPTEdsk4Z79EQNpFSOOje8elkeX1O3FWcSzZhIGqrtYUQVeyVRk311+/KmwK2ECHXkf+bD GvqJHrZnZ9UVRrx1BWp9sJppNu3Dv4uH0BUzUwj7qje3Oyb/ljls1VXeY4ZvF5h0woZnGVX lx4UWczOWKUgohtkkmwDg== X-UI-Out-Filterresults: notjunk:1;V03:K0:jSfLWnTN4hk=:AOnMT3/mjKpgp0py2EXdiM ae6ABMQ65UVW0K/iyPCbgYkm+K8CEAIYYbuXhbG3f3G/ft75RzIel+W3g+Y3Xlovn5JGQbuyG nD0HpgBcIaLuxrTbYxglBiMs/+NmiH1hcbPKdl1DAawClPttt3UNjkeN5YYS8hTR4IZqg7r4B oZfIZUEBdx1p6Mhf5QvGrVlUUU0mybzlr2LJVCZHas9ZxjHT8fH4BqEzBsfPck9cnyen8vy0+ iTsuksPAU+D/UgDHw7vNxt3ZOlwf+kiydpcARExYraCoeTBB3XvnNADgISmdn3QPtEqBCgn04 9m+pVPNe/wtvBBsnmSMyq2JqL2QiiLTQDcQOm6PVJrW41JVJ1srWHWKbtAeuHbfAzb8Bx1ER3 FUEyKE293lAUXzbdMDLPYaOIu+yDHgU8rEFUPpkGuRIbA4fnkt3AV7ycq5A/0Y9dwwS70s2Uq FpA7TcDmYAMZg8C4nkh7/qufKdImG4q44FsgfV7ZeGXl6NdUpWQBGbWCpW10CZ5RrpaWtCvon Md/dVfzzeqdBhuR5gBPrPDLTfmMK1dfgg1IXPU0CoKQEXoW4JWOzkCAdBp5mHKpqS1qCktXWL FFGxSxZjIT6Sge6o2+HTdBr+XVgAx1qHNBeST2l8CwHY1TpNtr5ZV1eO7vol9KV09nEszoIew a20qPYvNjO9TfuOvo6clby26c8I7ptcQ3sVF61uj7ZN7uWIdCuj+OL2wY76qxLTWnwZJd7Vgm 6G/Jle2qT55dQAQ7V/Ik9lsL0zaB1p2RCYqZ0YxwTEO17HC95UYEN9L4MhgMyJV0UhoevHA9 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:179889 Archived-At: jan via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > First ensure font-lock mode is on. Prefix arg forces it on. > > C-u 1 M-x font-lock-mode > > Minibuffer says font lock mode is enabled @jan: The test that hi-lock uses internally is actually (and font-lock-mode (font-lock-specified-p major-mode)) so you need an implemented font-locking in your buffer. I guess this is intentional and has its reasons. But yes, it is surprising. @Eli: the docstring of `hi-lock-mode' just says: "In buffers where Font Lock mode is enabled, patterns are highlighted using font lock." That's wrong, I think the docstring should be adapted. _Or_ hi-lock-mode could query the user whether he still wants to enable hi-locking using font-lock, with the risk of messing up other highlighting that doesn't come from font-lock. Michael.