]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-isearch-filter): Don't filter out invisible text
authorJuri Linkov <juri@jurta.org>
Wed, 14 Jan 2009 23:09:45 +0000 (23:09 +0000)
committerJuri Linkov <juri@jurta.org>
Wed, 14 Jan 2009 23:09:45 +0000 (23:09 +0000)
when search-invisible is t.  (Bug#1848)

lisp/info.el

index 9ee468f311df20c8d3bcc2c715f74992e764400b..4a90b3e65bba4dd3a142b9fd7170cca9998bce8f 100644 (file)
@@ -1868,11 +1868,12 @@ and is not in the header line or a tag table."
     (let ((backward (< found beg-found)))
       (not
        (or
-       (if backward
-           (or (text-property-not-all found beg-found 'invisible nil)
-               (text-property-not-all found beg-found 'display nil))
-         (or (text-property-not-all beg-found found 'invisible nil)
-             (text-property-not-all beg-found found 'display nil)))
+       (and (not (eq search-invisible t))
+            (if backward
+                (or (text-property-not-all found beg-found 'invisible nil)
+                    (text-property-not-all found beg-found 'display nil))
+              (or (text-property-not-all beg-found found 'invisible nil)
+                  (text-property-not-all beg-found found 'display nil))))
        ;; Skip node header line
        (and (save-excursion (forward-line -1)
                             (looking-at "\^_"))