From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Whittaker Newsgroups: gmane.emacs.bugs Subject: bug#25841: 25.2; Highlighting not being updated in some modes. Date: Thu, 23 Feb 2017 12:21:38 +0000 Message-ID: <8297e47c-d156-615a-8443-9332165d95c0@drisq.com> References: <231f3b41-7ba1-58d9-a1d4-2e0af37d0ac7@drisq.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------0EAA60E63FD9EC5E7B1560EE" X-Trace: blaine.gmane.org 1487853385 12897 195.159.176.226 (23 Feb 2017 12:36:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 12:36:25 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: 25841@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 23 13:36:19 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgsd5-0002ct-Dv for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 13:36:15 +0100 Original-Received: from localhost ([::1]:58250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgsdB-0004um-CD for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 07:36:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgsPO-0007eP-3m for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 07:22:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgsPK-00037G-2Z for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 07:22:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgsPJ-000375-WE for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 07:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgsPJ-0004Uy-R2 for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 07:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Whittaker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2017 12:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 25841-submit@debbugs.gnu.org id=B25841.148785250817270 (code B ref 25841); Thu, 23 Feb 2017 12:22:01 +0000 Original-Received: (at 25841) by debbugs.gnu.org; 23 Feb 2017 12:21:48 +0000 Original-Received: from localhost ([127.0.0.1]:52028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgsP6-0004UU-0s for submit@debbugs.gnu.org; Thu, 23 Feb 2017 07:21:48 -0500 Original-Received: from smtp.hosts.co.uk ([85.233.160.19]:37768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgsP3-0004UG-Pc for 25841@debbugs.gnu.org; Thu, 23 Feb 2017 07:21:46 -0500 Original-Received: from [82.69.137.27] (helo=[10.60.6.99]) by smtp.hosts.co.uk with esmtpa (Exim 4.87_1) (envelope-from ) id 1cgsOy-0006LI-3U; Thu, 23 Feb 2017 12:21:40 +0000 X-Enigmail-Draft-Status: N1110 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129687 Archived-At: This is a multi-part message in MIME format. --------------0EAA60E63FD9EC5E7B1560EE Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 22/02/17 22:02, Glenn Morris wrote: > This is the documented way highlight-regexp behaves: > > 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. Thanks, I'd missed that. I'm trying to get dynamic (non-overlay) highlighting working in a plain text mode. That documentation makes me think that I just need to enable font-lock mode, but doing that doesn't appear to make any difference. emacs -Q M-x fundamental-mode RET M-1 M-x font-lock-mode RET M-x highlight-regexp RET foo RET hi-yellow RET f o o SPC b a r ;; Not highlighted, as before. Would you expect that to work, or is there something else that I'm missing here? Apologies if this is a stupid question: I suspect I'm not seeing all of the picture. Thanks in advance, Paul. --=20 Paul Whittaker DRisQ Ltd. Company number 7754903, registered in England and Wales. Registered office: Malvern Hills Science Park, Malvern, UK, WR14 3SZ. Tel: +44(0)1684 252452 Web: www.drisq.com CONFIDENTIALITY NOTICE: This email and any attachments are confidential a= nd may be privileged. If you are not the intended recipient, please notify us immediately. Please note that in th= ese circumstances, you should not copy or use this information for any purpose, nor disclose its contents to any ot= her person. Although we have scanned this email and any attachments for viruses, it is your responsibility to ensur= e that they are actually virus free. --------------0EAA60E63FD9EC5E7B1560EE Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 22/02/17 22:02, Glenn Morris wrote:
> This is the documented way highlight-regexp behaves:
>
>     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.

Thanks, I'd missed that.

I'm trying to get dynamic (non-overlay) highlighting working in a plain
text mode.  That documentation makes me think that I just need to enable
font-lock mode, but doing that doesn't appear to make any difference.

  emacs -Q
  M-x fundamental-mode RET
  M-1 M-x font-lock-mode RET
  M-x highlight-regexp RET foo RET hi-yellow RET

  f o o SPC b a r  ;; Not highlighted, as before.

Would you expect that to work, or is there something else that I'm
missing here?  Apologies if this is a stupid question: I suspect I'm not
seeing all of the picture.

Thanks in advance,

Paul.

-- 
Paul Whittaker
DRisQ Ltd. Company number 7754903, registered in England and Wales.
Registered office: Malvern Hills Science Park, Malvern, UK, WR14 3SZ.
Tel: +44(0)1684 252452  Web: www.drisq.com

CONFIDENTIALITY NOTICE: This email and any attachments are confidential and may be privileged.  If you are not the
intended recipient, please notify us immediately.  Please note that in these circumstances, you should not copy or
use this information for any purpose, nor disclose its contents to any other person.  Although we have scanned this
email and any attachments for viruses, it is your responsibility to ensure that they are actually virus free.
--------------0EAA60E63FD9EC5E7B1560EE--