summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/help-mode.el3
-rw-r--r--lisp/info.el3
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 38a2f93a3c3..a0a587cd810 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -416,7 +416,8 @@ Commands:
(setq-local help-mode--current-data nil)
(setq-local bookmark-make-record-function
#'help-bookmark-make-record)
- (isearch-fold-quotes-mode))
+ (unless search-default-mode
+ (isearch-fold-quotes-mode)))
;;;###autoload
(defun help-mode-setup ()
diff --git a/lisp/info.el b/lisp/info.el
index 0bdb2f2e7a3..514cf7b3f47 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -4491,7 +4491,8 @@ Advanced commands:
(setq-local font-lock-defaults '(Info-mode-font-lock-keywords t t))
(Info-set-mode-line)
(setq-local bookmark-make-record-function #'Info-bookmark-make-record)
- (isearch-fold-quotes-mode))
+ (unless search-default-mode
+ (isearch-fold-quotes-mode)))
;; When an Info buffer is killed, make sure the associated tags buffer
;; is killed too.