ob: examplization of inserted results is smarter about markers

* lisp/ob.el (org-babel-examplize-region): Check if `end' is a marker
  or a point and handle appropriately.
This commit is contained in:
Eric Schulte 2010-12-03 07:11:09 -07:00
parent 6e450915a7
commit 201eb8ce23
1 changed files with 1 additions and 1 deletions

View File

@ -1562,7 +1562,7 @@ file's directory then expand relative links."
(insert (if results-switches
(format "#+begin_example%s\n" results-switches)
"#+begin_example\n"))
(forward-char (- end beg))
(if (markerp end) (goto-char end) (forward-char (- end beg)))
(insert "#+end_example\n"))))))
(defun org-babel-update-block-body (new-body)