diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-05-05 21:58:28 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-05-05 21:58:28 -0400 |
commit | 1f8c2002d13bd723b879aaa578bfcaf79c82787b (patch) | |
tree | a5512431b724b743b5242199584b34c7c85f76d8 /test-org-link-edit.el | |
parent | e0be9b9a015fcce95c9cf8df40dcf78ce307ee81 (diff) | |
parent | 5c5fef32b4690092bbc9e86a8cf6718288053596 (diff) | |
download | org-link-edit-1f8c2002d13bd723b879aaa578bfcaf79c82787b.tar.gz |
Merge branch 'km/transport-whitespace'
Diffstat (limited to 'test-org-link-edit.el')
-rw-r--r-- | test-org-link-edit.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-org-link-edit.el b/test-org-link-edit.el index 9f8a3bd..b88592d 100644 --- a/test-org-link-edit.el +++ b/test-org-link-edit.el @@ -545,6 +545,21 @@ website" (org-link-edit-transport-next-link 'previous (point) (point-max)) (buffer-string)))) + ;; Transport next link with point on whitespace. + (should + (string= "Here is\[\[http://orgmode.org/\]\] Org's website " + (org-test-with-temp-text + "Here is<point> Org's website http://orgmode.org/" + (org-link-edit-transport-next-link) + (buffer-string)))) + ;; Transported links are allow to have an existing description when + ;; point is on whitespace. + (should + (string= "Here is\[\[http://orgmode.org/\]\[descrption\]\] Org's website " + (org-test-with-temp-text + "Here is<point> Org's website \[\[http://orgmode.org/\]\[descrption\]\]" + (org-link-edit-transport-next-link) + (buffer-string)))) ;; Fail if point is on a link. (should-error (org-test-with-temp-text |