emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/arduino-mode cf0eb26 099/107: Emacs 28.1 deprecated easy-m


From: ELPA Syncer
Subject: [nongnu] elpa/arduino-mode cf0eb26 099/107: Emacs 28.1 deprecated easy-menu-add function
Date: Sun, 29 Aug 2021 10:58:24 -0400 (EDT)

branch: elpa/arduino-mode
commit cf0eb267430c07ae3b97f27ef23726d799278657
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    Emacs 28.1 deprecated easy-menu-add function
---
 arduino-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arduino-mode.el b/arduino-mode.el
index f8df18c..4e9fb4c 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -342,7 +342,8 @@ Value is a symbol.  The possible values are the symbols in 
the
   ;; initialization to get the syntactic analysis and similar things working.
   (c-common-init 'arduino-mode)
   
-  (easy-menu-add arduino-menu)
+  (when (version<= emacs-version "28.1")
+    (easy-menu-add arduino-menu))
   (set (make-local-variable 'c-basic-offset) 2)
   (set (make-local-variable 'tab-width) 2))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]