aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-org-link-edit.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-org-link-edit.el b/test-org-link-edit.el
index 51f4b30..0980aca 100644
--- a/test-org-link-edit.el
+++ b/test-org-link-edit.el
@@ -533,6 +533,15 @@ website"
(org-link-edit-transport-next-link
nil (point-min) (point))
(buffer-string))))
+ ;; When a lisp caller gives BEG and END explicitly, they take
+ ;; precedence over point.
+ (should
+ (string= "Here is \[\[http://orgmode.org/\]\[Org's\]\] website "
+ (org-test-with-temp-text
+ "<point>Here is Org's website http://orgmode.org/"
+ (org-link-edit-transport-next-link
+ nil 9 14)
+ (buffer-string))))
;; Transport previous link to the active region.
(should
(string= " Here is \[\[http://orgmode.org/\]\[Org's website\]\]"