Tags: patch When the size of the generated regexp in char-fold isearch mode reaches a certain limit, it silently falls back to literal search without notifying the user about this fact. Thus uninformed users might miss some search hits. Here is the patch that instead of returning a quoted string in char-fold-to-regexp when it reaches some arbitrary limit, instead of this it toggles the literal search mode explicitly, tries to find the next occurrence in literal mode, and displays the message about switching search mode for 2 seconds: