diff options
author | Spencer Williams <spnw@plexwave.org> | 2025-07-11 16:45:34 -0400 |
---|---|---|
committer | Spencer Williams <spnw@plexwave.org> | 2025-07-11 16:49:13 -0400 |
commit | 037a20d6a621fc24576dbb4fb460b4b6cbcbc846 (patch) | |
tree | 4f24c8040a7f2f2d91934a906f5e902125bb1a27 /lisp/seam-test.el | |
parent | b28940a44e41923836fe771ba9845a3e4cdf97e7 (diff) |
Fix creating note via link open never makes draft
Diffstat (limited to 'lisp/seam-test.el')
-rw-r--r-- | lisp/seam-test.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lisp/seam-test.el b/lisp/seam-test.el index 47d4fbb..13c52c6 100644 --- a/lisp/seam-test.el +++ b/lisp/seam-test.el @@ -506,6 +506,25 @@ it." (seam-test-list-files)) (kill-buffer))))))) +(ert-deftest seam-test-follow-link-new-draft () + "Test that following a link to an nonexistent draft note creates +and opens that note." + (should + (equal + '("-bar" ("private/-bar.org" "private/foo.org")) + (seam-test-with-notes () + ((foo "foo")) + (with-current-buffer foo + (seam-test-add-contents foo "[[seam:-bar]]") + (goto-char 1) + (org-next-link) + (org-open-at-point) + (unwind-protect + (list + (buffer-name) + (seam-test-list-files)) + (kill-buffer))))))) + (ert-deftest seam-test-escape-title () (should (equal |