branch: elpa/gnosis
commit d684638548004ab4c305b9f6448808a7dd6c8fe7
Author: Thanos Apollo <pub...@thanosapollo.org>
Commit: Thanos Apollo <pub...@thanosapollo.org>

    tags-prompt: Require org-mode to be enabled.
---
 gnosis.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnosis.el b/gnosis.el
index a8a2ac7b02..59739e7438 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -989,6 +989,8 @@ DATE is a list of the form (year month day)."
 
 If you only require a tag prompt, refer to `gnosis-tags--prompt'."
   (interactive)
+  (unless (derived-mode-p 'org-mode)
+    (error "This function is meant to be used in an org-mode buffer"))
   (save-excursion
     (let ((input (gnosis-tags--prompt))
          (current-tags (org-get-tags)))

Reply via email to