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

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

[elpa] externals/ement cca407f549 06/13: Tidy: Compiler warnings


From: ELPA Syncer
Subject: [elpa] externals/ement cca407f549 06/13: Tidy: Compiler warnings
Date: Fri, 8 Sep 2023 06:58:07 -0400 (EDT)

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

    Tidy: Compiler warnings
---
 ement-notifications.el | 12 +++++++++++-
 ement-notify.el        |  2 +-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ement-notifications.el b/ement-notifications.el
index 8d4a4e4169..1e190ad0a9 100644
--- a/ement-notifications.el
+++ b/ement-notifications.el
@@ -31,7 +31,9 @@
 (require 'cl-lib)
 (require 'map)
 
-(require 'ement)
+(require 'ement-lib)
+(require 'ement-room)
+(require 'ement-notify)
 
 ;;;; Structs
 
@@ -44,6 +46,7 @@
 NOTIFICATION is an alist representing a notification returned
 from the \"/notifications\" endpoint.  The notification's event
 is passed through `ement--make-event'."
+  (declare (function ement--make-event "ement"))
   (pcase-let (((map room_id _actions _ts event read) notification))
     (make-ement-notification :room-id room_id :readp read
                              :event (ement--make-event event))))
@@ -74,6 +77,13 @@ Used to avoid overlapping requests.")
 (defvar-local ement-notifications-metadata nil
   "Metadata for `ement-notifications' buffers.")
 
+;; Variables from other files.
+(defvar ement-ewoc)
+(defvar ement-session)
+(defvar ement-notify-prism-background)
+(defvar ement-room-message-format-spec)
+(defvar ement-room-sender-in-left-margin)
+
 ;;;; Commands
 
 ;;;###autoload
diff --git a/ement-notify.el b/ement-notify.el
index 58e27d0e12..8cc0803175 100644
--- a/ement-notify.el
+++ b/ement-notify.el
@@ -169,7 +169,7 @@ margins in Emacs.  But it's useful, anyway."
 
 (defun ement-notify-switch-to-notifications-buffer ()
   "Switch to \"*Ement Notifications*\" buffer."
-  (declare (function ement-notifications--log-buffer "ement-notifications"))
+  (declare (function ement-notifications "ement-notifications"))
   (interactive)
   (call-interactively #'ement-notifications))
 



reply via email to

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