GNU bug report logs - #64178
replace-regexp ignoring value of org-search-invisible

Previous Next

Package: emacs;

Reported by: bobf32 <at> gmail.com

Date: Mon, 19 Jun 2023 20:17:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Juri Linkov <juri <at> linkov.net>
Cc: bobf32 <at> gmail.com, 64178 <at> debbugs.gnu.org
Subject: bug#64178: replace-regexp ignoring value of org-search-invisible
Date: Thu, 22 Jun 2023 07:48:02 +0000
Juri Linkov <juri <at> linkov.net> writes:

>> Ok. Then, it is not an Org mode bug.
>
> Actually, Isearch never supported zero-length invisible matches.
> The following condition was in isearch.el since day 1:
>
>   (defun isearch-range-invisible (beg end)
>     "Return t if all the text from BEG to END is invisible."
>     (when (/= beg end)
>
> So any zero-length match is deemed visible by Isearch.

Which is unexpected.
It is natural to expect that zero-width matches are considered invisible
when the surrounding text is invisible.

Also, is this documented anywhere?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




This bug report was last modified 15 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.