Hello,

I noticed that with show-paren-mode on in an org-mode buffer,
the following the opening parenthesis "(> (point) 0)" in the following
code block is not detected.

#+begin_src emacs-lisp
(defun re-search-and-replace-in-buffer (regex replacement)
  (interactive)
  (save-excursion
    (goto-char  (buffer-end 0))
    (while (and (re-search-forward regex (buffer-end 1) t)
                (> (point) 0))
(replace-match replacement))
(save-buffer) 
))
#+end_src

If your solution to this problem. I would appreciate if you  would could you 
document how you solved
the issue. 

Best regards,

Jeremie

Reply via email to