branch: elpa/d-mode
commit 203ef144a4ba918450839a47b726ebea99e3bdff
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Don't call easy-menu-add on Emacs 28+
Fixes byte compilation warning.
---
d-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index eea1dac..e97ff69 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -1845,7 +1845,9 @@ Key bindings:
#'d--syntax-propertize-function)
(c-common-init 'd-mode)
- (easy-menu-add d-menu)
+ (d--if-version>= "28"
+ nil
+ (easy-menu-add d-menu))
(c-run-mode-hooks 'c-mode-common-hook 'd-mode-hook)
(c-update-modeline)
(d--if-version>= "26.0"