diff --git a/lisp/org.el b/lisp/org.el index 028243953..f1a4b9557 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17177,7 +17177,7 @@ BEG and END default to the buffer boundaries." (save-restriction (widen) (setq beg (or beg (point-min)) end (or end (point-max))) - (goto-char (point-min)) + (goto-char beg) (let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([^]\n]+?" (substring (org-image-file-name-regexp) 0 -2) "\\)\\]" (if include-linked "" "\\]")))