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

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

[elpa] externals/ement 29b15fcae9 6/6: Tidy: Compiler warnings


From: ELPA Syncer
Subject: [elpa] externals/ement 29b15fcae9 6/6: Tidy: Compiler warnings
Date: Tue, 14 Mar 2023 16:58:00 -0400 (EDT)

branch: externals/ement
commit 29b15fcae9c28414be1d6265cdfe2c20a30a1dcf
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Tidy: Compiler warnings
---
 ement-macros.el    | 3 +++
 ement-room-list.el | 2 ++
 ement-room.el      | 2 ++
 3 files changed, 7 insertions(+)

diff --git a/ement-macros.el b/ement-macros.el
index cac6b71f3f..0065c2721b 100644
--- a/ement-macros.el
+++ b/ement-macros.el
@@ -196,6 +196,9 @@ reporter's min-value to its max-value."
 
 ;;;;; Room-related macros
 
+;; Prevent compiler from complaining that `value' is an unknown slot.
+(require 'magit-section)
+
 (cl-defmacro ement-with-room-and-session (&rest body)
   "Eval BODY with `ement-room' and `ement-session' bound.
 If in an `ement-room-list-mode' buffer and `current-prefix-arg'
diff --git a/ement-room-list.el b/ement-room-list.el
index ed4ad12e93..5e22a5269a 100644
--- a/ement-room-list.el
+++ b/ement-room-list.el
@@ -57,6 +57,8 @@
   "List of colors used for timestamps.
 Set automatically when `ement-room-list-mode' is activated.")
 
+(defvar ement-room)
+(defvar ement-session)
 (defvar ement-sessions)
 (defvar ement-room-prism-minimum-contrast)
 
diff --git a/ement-room.el b/ement-room.el
index 13d9fd2d9d..4bd4f6f409 100644
--- a/ement-room.el
+++ b/ement-room.el
@@ -1861,6 +1861,8 @@ reaction string, e.g. \"👍\"."
 
 ;;;; Functions
 
+(declare-function magit-current-section "magit-section")
+
 (defun ement-room-view (room session)
   "Switch to a buffer showing ROOM on SESSION.
 Uses action `ement-view-room-display-buffer-action', which see."



reply via email to

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