]> git.eshelyaron.com Git - emacs.git/commit
Switch to literal mode with message when regexp is too big in char-fold search
authorJuri Linkov <juri@linkov.net>
Sat, 28 Mar 2020 23:41:29 +0000 (01:41 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 28 Mar 2020 23:41:29 +0000 (01:41 +0200)
commitd1b8179f55da75fce313118502ba65444ee1dc98
treebb08523c41a9d43fc7da2f1cbe5e9f87577e1886
parent4f41188a6e1eb0ce832bd74907642f30ada344d9
Switch to literal mode with message when regexp is too big in char-fold search

* lisp/char-fold.el (char-fold-to-regexp): Don't use regexp-quote
when the length of regexp reaches 5000.  (Bug#40216)

* lisp/isearch.el (isearch-search): On big regexp in char-fold mode
gracefully fall back to literal mode, try to search again and display
momentary-message about switching to literal mode.
(isearch--momentary-message): Add optional arg SECONDS.
lisp/char-fold.el
lisp/isearch.el