branch: externals/hyperbole
commit 9caac62663ae14dac8a3e59f4bfcc13074a2f3a0
Merge: 7b90a1de93 cfe9c7deec
Author: Robert Weiner <[email protected]>
Commit: GitHub <[email protected]>

    Merge branch 'master' into bug_wikiword_in_description
---
 ChangeLog            |  1 +
 test/hywiki-tests.el | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c562222913..70bcea4449 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
 * test/hywiki-tests.el (hywiki-tests--org-link-with-wikiword-in-description):
     Add test.
+* test/hywiki-tests.el (hywiki-tests--org-in-buffer-completion): Add test.
 
 2026-03-09  Bob Weiner  <[email protected]>
 
diff --git a/test/hywiki-tests.el b/test/hywiki-tests.el
index 95e6cd9131..9b6d3f610d 100644
--- a/test/hywiki-tests.el
+++ b/test/hywiki-tests.el
@@ -2287,6 +2287,20 @@ expected result."
       (should (eq (org-element-type (org-element-context)) 'link))
       (should (eq (caar (hkey-actions)) 'smart-org)))))
 
+(ert-deftest hywiki-tests--org-in-buffer-completion ()
+  "Verify org in buffer completion works with `hywiki-mode'."
+  (hywiki-tests--preserve-hywiki-mode
+    (let ((hsys-org-enable-smart-keys t))
+      (org-mode)
+      (hywiki-tests--insert "* Header\n\n[[*")
+      (execute-kbd-macro (kbd "TAB"))
+      (save-excursion
+        (beginning-of-line)
+        (should (looking-at-p (regexp-quote "[[*Header"))))
+      (ert-with-message-capture cap
+        (execute-kbd-macro (kbd "TAB"))
+        (should (string= "Sole completion\n" cap))))))
+
 (provide 'hywiki-tests)
 
 ;; This file can't be byte-compiled without the `el-mock' package

Reply via email to