bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#55768: 26.3; isearch highlighting in dired


From: Thierry EMERY
Subject: bug#55768: 26.3; isearch highlighting in dired
Date: Thu, 2 Jun 2022 17:22:31 +0200

Hello,

isearch fails to highlight in dired and displays the following error:
image.png

As dired sets text property 'invisible to a symbol, either: 'dired-hide-details-detail, 'dired-hide-details-information or 'dired-hide-details-link, in order for isearch to properly highlight the searched string in a dired buffer, the following patch ought to be applied to isearch-range-invisible:
diff -u isearch.el~ isearch.el
--- isearch.el~ 2019-09-10 02:32:49.000000000 +0200
+++ isearch.el 2022-06-02 17:13:55.490492201 +0200
@@ -2972,7 +2972,7 @@
  ;; skip all characters with that same `invisible' property value.
  ;; Do that over and over.
  (while (and (< (point) end) (invisible-p (point)))
-  (if (invisible-p (get-text-property (point) 'invisible))
+  (if (member (get-text-property (point) 'invisible) buffer-invisibility-spec)
       (progn
  (goto-char (next-single-property-change (point) 'invisible
  nil end))

Kind Regards,

Thierry Emery

reply via email to

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