GNU bug report logs - #40337
28.0.50; Enable case-fold-search in hi-lock

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Mon, 30 Mar 2020 22:54:01 UTC

Severity: normal

Tags: fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 40337 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> linkov.net>
Cc: 40337 <at> debbugs.gnu.org
Subject: Re: bug#40337: 28.0.50; Enable case-fold-search in hi-lock
Date: Mon, 30 Mar 2020 23:05:00 -0400
> +        (setq-local font-lock-keywords-case-fold-search hi-lock-case-fold-search)

This affects all the font-lock-keywords, so it's likely to mess things
up for the non-hi-lock keywords.

I think we should change the patterns added to `font-lock-keywords`
instead, such that they do

    (let ((case-fold-search hi-lock-case-fold-search)) <...>)

around the corresponding regexp search.


        Stefan





This bug report was last modified 5 years and 38 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.