Subject: bug#16913: Please extend case-fold-search on-the-fly toggling

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 13 May 2022 19:35:56 +0200

Juri Linkov <[email-masked]> writes:

> Maybe `read-regexp' could modify some global variable?

Like read-regexp-last-case-fold-setting or something?  I guess that's
possible, but it feels rather hacky...

We could add an extra parameter that would make read-regexp alter
`case-fold-search', and then callers (that used that parameter) would
have to bind case-fold-search around the call, but that feels like it
could be very error-prone.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no