auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] [elpa] externals/auctex 32e93a0 04/26: Fix bug#36651


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 32e93a0 04/26: Fix bug#36651
Date: Thu, 12 Aug 2021 11:18:20 -0400 (EDT)

branch: externals/auctex
commit 32e93a0638fda83440c63af4f595eda49cff9615
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>

    Fix bug#36651
    
    * tex-fold.el (TeX-fold-mode): Open folded portion when isearch
    matches the hidden text.
---
 tex-fold.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tex-fold.el b/tex-fold.el
index dd26742..7698721 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -908,7 +908,11 @@ With zero or negative ARG turn mode off."
   :keymap (list (cons TeX-fold-command-prefix TeX-fold-keymap))
   (if TeX-fold-mode
       (progn
-        (set (make-local-variable 'search-invisible) t)
+        ;; The value t cause problem when body text is hidden in
+        ;; outline-minor-mode. (bug#36651)
+        ;; In addition, it's better not to override user preference
+        ;; without good reason.
+        ;; (set (make-local-variable 'search-invisible) t)
         (add-hook 'post-command-hook #'TeX-fold-post-command nil t)
         (add-hook 'LaTeX-fill-newline-hook #'TeX-fold-update-at-point nil t)
         (add-hook 'TeX-after-insert-macro-hook
@@ -930,7 +934,7 @@ With zero or negative ARG turn mode off."
                                                      (TeX-mode-prefix) elt))))
                          (when (boundp symbol)
                            (symbol-value symbol)))))))
-    (kill-local-variable 'search-invisible)
+    ;; (kill-local-variable 'search-invisible)
     (remove-hook 'post-command-hook #'TeX-fold-post-command t)
     (remove-hook 'LaTeX-fill-newline-hook #'TeX-fold-update-at-point t)
     (TeX-fold-clearout-buffer))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]