summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <eric.schulte@gmx.com>2012-01-20 11:58:07 -0700
committerEric Schulte <eric.schulte@gmx.com>2012-01-20 11:59:53 -0700
commit4f5b6317b54c25adad4a6865bdcb7436d05fba75 (patch)
tree7f2b603552430b5e489f418dc92d8c1872c200d2
parentf92facd890bf3ced7f261f3a1586dfd715d75bcb (diff)
downloadorg-mode-4f5b6317b54c25adad4a6865bdcb7436d05fba75.tar.gz
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.
-rw-r--r--lisp/ob.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index 64230d6..c603203 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -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))