branch: elpa/lua-mode
commit c044a1bdbc823d8bf4243d8eeeb6b53725ad61fb
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
Fix emacs compilation warning in XEmacs-oriented code
---
lua-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lua-mode.el b/lua-mode.el
index 07397b9..de35e92 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -349,8 +349,9 @@ The following keys are bound:
(modify-syntax-entry ?\n ">")
(modify-syntax-entry ?\' "\"")
(modify-syntax-entry ?\" "\"")
+ ;; setup menu bar entry (XEmacs style)
(if (and (featurep 'menubar)
- current-menubar
+ (boundp 'current-menubar)
(not (assoc "Lua" current-menubar)))
(progn
(set-buffer-menubar (copy-sequence current-menubar))