correctly position point when mapping hits an inline code block

* lisp/ob.el (org-babel-map-executables): Correctly position point when
  mapping hits an inline code block.
This commit is contained in:
Eric Schulte 2012-01-20 11:58:07 -07:00
parent f92facd890
commit 4f5b6317b5
1 changed files with 1 additions and 0 deletions

View File

@ -912,6 +912,7 @@ buffer."
(goto-char (point-min))
(while (re-search-forward ,rx nil t)
(goto-char (match-beginning 1))
(when (looking-at org-babel-inline-src-block-regexp)(forward-char 1))
(save-match-data ,@body)
(goto-char (match-end 0))))
(unless visited-p (kill-buffer to-be-removed))