tags 35802 + patch quit Juri Linkov writes: >> So I think adjusting isearch-search-fun-default should be enough >> to fix this. > > Yes, hopefully the value of search-spaces-regexp is not needed at the > time of regexp generation, even though it's mentioned in the comments > of char-fold-to-regexp. Right, it only affects searching. > Are more changes required to avoid such problem in other error-prone > places and to make char-fold--test-bug-35802 still to pass, like using > "Local[ ]Variables:" in find-auto-coding? I don't think it's reasonable to start protecting all regexps which might have whitespace in them. > Also maybe a warning about the need of using non-capturing groups should be > added to documentation of search-spaces-regexp, search-whitespace-regexp, > Info-search-whitespace-regexp? Right, I forgot about that.