From 6441d26875ab254d667007cc229739c84ad9dec1 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 12 Jun 2025 23:37:32 +0300 Subject: [PATCH] mu4e-notification: avoid error when byte-compiled Ensure eval-when-compile macro is defined --- mu4e/mu4e-notification.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-notification.el b/mu4e/mu4e-notification.el index 3d76b1a3..83bce829 100644 --- a/mu4e/mu4e-notification.el +++ b/mu4e/mu4e-notification.el @@ -1,6 +1,6 @@ ;;; mu4e-notification.el --- Mail notifications -*- lexical-binding: t-*- -;; Copyright (C) 2023-2024 Dirk-Jan C. Binnema +;; Copyright (C) 2023-2025 Dirk-Jan C. Binnema ;; Author: Dirk-Jan C. Binnema ;; Maintainer: Dirk-Jan C. Binnema @@ -28,6 +28,8 @@ (require 'mu4e-query-items) (require 'mu4e-bookmarks) +(eval-when-compile (require 'dbus nil 'noerror)) + ;; for Emacs' built-in desktop notifications to work, we need ;; DBus (when (featurep 'dbus)