diff --git a/lisp/ob.el b/lisp/ob.el index b185f1850..b5b9d8f7d 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -1187,7 +1187,8 @@ code ---- the results are extracted in the syntax of the source (results-switches (cdr (assoc :results_switches (nth 2 info)))) beg end) - (when existing-result + (if (not existing-result) + (setq beg (point)) (goto-char existing-result) (save-excursion (re-search-forward "#" nil t)