Thanks. Would you mind trying again, but try and append some text to a line by searching for $ (as should have been mentioned in the original bug report). It looks like the evil issue you refer to is at least partly to blame. On Tue, 20 Jun 2023 at 11:17, Ihor Radchenko wrote: > bobf32@gmail.com writes: > > > Sorry, that was a typo. I set search-invisible, not org-search-invisible. > > Then, I am unable to reproduce using > > 1. emacs -Q /your/example.org > 2. Fold everything > 3. M-< > 4. M-: (setq search-invisible nil) > 5. M-x replace-regexp ^\* [BC] foo > > Also, be aware of https://github.com/emacs-evil/evil/issues/1630 > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at >