From 1338e5b0d5e111ad932efb77d3cad680cc3b86c9 Mon Sep 17 00:00:00 2001 From: Zed Date: Wed, 1 Nov 2023 13:42:09 +0000 Subject: [PATCH] Fix 'org-element-at-point' eldoc error (#253) --- nim-suggest.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nim-suggest.el b/nim-suggest.el index 3730ab6..3358ac3 100644 --- a/nim-suggest.el +++ b/nim-suggest.el @@ -108,7 +108,8 @@ PROJECT-PATH is added as the last option." ;; and nimscript-mode (nimsuggest doesn't support yet). ;; https://github.com/nim-lang/nimsuggest/issues/29 (not (memq major-mode '(org-mode nimscript-mode))) - (not (and (fboundp 'org-in-src-block-p) + (not (and (derived-mode-p 'org-mode) + (fboundp 'org-in-src-block-p) (or (org-in-src-block-p) (org-in-src-block-p t))))))