I do [M-%] which bind to package "pcre2el" command `pcre-query-replace-regexp` which replace regexp Org-mode tag ":audio:" with text ":file_audio:" in an Org-mode buffer. The tag is beautified with package "org-tag-beautify" https://repo.or.cz/org-tag-beautify.git. I got error when doing [M-%] which is a keybinding remapped to package "pcre2el" command `pcre-query-replace-regexp`. #+begin_example Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) isearch-open-necessary-overlays(#) mapc(isearch-open-necessary-overlays (# # #)) #f(compiled-function () #)() isearch-clean-overlays@magit-mode(#f(compiled-function () #)) apply(isearch-clean-overlays@magit-mode #f(compiled-function () #) nil) isearch-clean-overlays() replace-dehighlight() #f(compiled-function () #)() perform-replace(":audio:" ":file_audio:" t t nil nil nil nil nil nil nil) query-replace-regexp(":audio:" ":file_audio:" nil nil nil nil nil) funcall-interactively(query-replace-regexp ":audio:" ":file_audio:" nil nil nil nil nil) call-interactively(query-replace-regexp) pcre-query-replace-regexp() funcall-interactively(pcre-query-replace-regexp) call-interactively(pcre-query-replace-regexp nil nil) command-execute(pcre-query-replace-regexp) #+end_example I saw # in the backtrace. Don't know why. Should the `isearch-open-necessary-overlays` exclude filter those #? -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3