summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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."