Pārlūkot izejas kodu

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.
Eric Schulte 13 gadi atpakaļ
vecāks
revīzija
4f5b6317b5
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      lisp/ob.el

+ 1 - 0
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))