summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-04-07 17:46:07 +0200
committerUlrich Müller <ulm@gentoo.org>2021-04-07 17:46:07 +0200
commit5f04788fb32d31b658fad39ec0d5dd30278cedb7 (patch)
treefd99753a3dfc7351bf0a947b8566899a63cd9da0
parentMake easymenu in gentoo-newsitem-mode work with XEmacs (diff)
downloadebuild-mode-master.tar.gz
ebuild-mode-master.tar.bz2
ebuild-mode-master.zip
Fix byte-compile warnings in XEmacsHEADmaster
* gentoo-newsitem-mode.el (gentoo-newsitem-mode-menu): Declare. This fixes a byte-compile warning in XEmacs. * ebuild-mode.el (ebuild-repo-mode-hook) (ebuild-repo-mode-on-hook, ebuild-repo-mode-off-hook): Ditto. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--ChangeLog5
-rw-r--r--ebuild-mode.el5
-rw-r--r--gentoo-newsitem-mode.el3
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cc87879..a2695b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2021-04-07 Ulrich Müller <ulm@gentoo.org>
+ * gentoo-newsitem-mode.el (gentoo-newsitem-mode-menu): Declare.
+ This fixes a byte-compile warning in XEmacs.
+ * ebuild-mode.el (ebuild-repo-mode-hook)
+ (ebuild-repo-mode-on-hook, ebuild-repo-mode-off-hook): Ditto.
+
* gentoo-newsitem-mode.el (gentoo-newsitem-mode): Make easymenu
work with XEmacs.
diff --git a/ebuild-mode.el b/ebuild-mode.el
index a80b9ae..ea61045 100644
--- a/ebuild-mode.el
+++ b/ebuild-mode.el
@@ -566,6 +566,11 @@ and `all-completions' for details."
;;; Minor mode for editing files in an ebuild repository.
+;; suppress byte-compiler warning in XEmacs
+(defvar ebuild-repo-mode-hook)
+(defvar ebuild-repo-mode-on-hook)
+(defvar ebuild-repo-mode-off-hook)
+
(defun ebuild-repo-mode-before-save ()
(when ebuild-mode-fix-whitespace
;; trim trailing whitespace, except for patches
diff --git a/gentoo-newsitem-mode.el b/gentoo-newsitem-mode.el
index af94521..9951e7c 100644
--- a/gentoo-newsitem-mode.el
+++ b/gentoo-newsitem-mode.el
@@ -43,6 +43,9 @@
'("1.0" "2.0")
"List of news item formats defined by GLEP 42.")
+;; suppress byte-compiler warning in XEmacs
+(defvar gentoo-newsitem-mode-menu)
+
;;;###autoload
(define-derived-mode gentoo-newsitem-mode text-mode "Newsitem"
"Major mode for Gentoo GLEP 42 news items."