* lisp/isearch.el (isearch-fold-quotes-mode): Add char-folding of
double quotation marks.
* test/lisp/subr-tests.el (test-local-set-state): Test values
after setting state.
(isearch-update))
\f
-
(defvar isearch-fold-quotes-mode--state)
(define-minor-mode isearch-fold-quotes-mode
"Minor mode to aid searching for \\=` characters in help modes."
(thread-last
(regexp-quote string)
(replace-regexp-in-string "`" "[`‘]")
- (replace-regexp-in-string "'" "['’]")))))
+ (replace-regexp-in-string "'" "['’]")
+ (replace-regexp-in-string "\"" "[\"“”]")))))
(buffer-local-restore-state isearch-fold-quotes-mode--state)))
(provide 'isearch)
(let ((state (buffer-local-set-state global 10
local 20
unexist 30)))
+ (should (= global 10))
+ (should (= local 20))
+ (should (= unexist 30))
(buffer-local-restore-state state)
(should (= global 1))
(should (= local 2))