aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2019-01-24 19:48:03 -0500
committerKyle Meyer <kyle@kyleam.com>2019-01-24 20:01:42 -0500
commit0999aa38855912f4100d8f9620185b14f46756eb (patch)
tree9a89a2c1aae77ea0e312b0a84d3c3a36d4d5a55c
parent527d9ccb91e698a2ff4b4b6323a792e77db60992 (diff)
downloadorg-link-edit-0999aa38855912f4100d8f9620185b14f46756eb.tar.gz
transport: Test point-bounds interaction for non-interactive call
-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\]\]"