|Subject:||bug#25841: 25.2; Highlighting not being updated in some modes.|
|Date:||Thu, 23 Feb 2017 12:21:38 +0000|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0|
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.
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 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.
|[Prev in Thread]||Current Thread||[Next in Thread]|