GNU bug report logs -
#25841
25.2; Highlighting not being updated in some modes.
Previous Next
Reported by: Paul Whittaker <emacs <at> pdw.org.uk>
Date: Wed, 22 Feb 2017 21:46:02 UTC
Severity: minor
Tags: notabug
Found in version 25.2
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 25841 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]
This bug report was last modified 5 years and 337 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.