diff --git a/lisp/org.el b/lisp/org.el index 539ed3c94..4debf3d14 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11086,7 +11086,9 @@ If the file does not exist, an error is thrown." (eq cmd 'emacs)) (funcall (cdr (assq 'file org-link-frame-setup)) file) (widen) - (if line (org-goto-line line) + (if line (progn (org-goto-line line) + (if (derived-mode-p 'org-mode) + (org-reveal))) (if search (org-link-search search)))) ((consp cmd) (let ((file (convert-standard-filename file)))