From 1d93015db496515c2c0bf7a15af7f5675241e35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marks?= Date: Sat, 21 Feb 2026 13:44:53 -0500 Subject: [PATCH] ; system-taskbar tweaks to dbus loading and group keyword (bug#80361) * lisp/system-taskbar.el (system-taskbar): Defgroup keyword now system-interface in sympathy with system-sleep. (dbus-list-activatable-names, dbus-send-signal, dbus-ping): Pacify byte compiler. (system-taskbar--set-back-end): Load dbus only when needed. --- lisp/system-taskbar.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lisp/system-taskbar.el b/lisp/system-taskbar.el index 44e3d5f58cf..cc41183fb32 100644 --- a/lisp/system-taskbar.el +++ b/lisp/system-taskbar.el @@ -4,7 +4,7 @@ ;; Author: Stephane Marks ;; Maintainer: emacs-devel@gnu.org -;; Keywords: convenience +;; Keywords: system-interface ;; Package-Requires: ((emacs "31.1")) ;; This file is part of GNU Emacs. @@ -103,11 +103,14 @@ ;;; Code: -(require 'dbus) +;; Pacify the byte compiler. +(declare-function dbus-list-activatable-names "dbus.el") +(declare-function dbus-send-signal "dbus.el") +(declare-function dbus-ping "dbus.el") (defgroup system-taskbar nil "System GUI taskbar icon badge, progress report, alerting." - :group 'convenience + :group 'system-interface :version "31.1") (defcustom system-taskbar-use-progress-reporter t @@ -219,6 +222,7 @@ If PROGRESS is nil, remove the progress indicator." (cond ((boundp 'ns-version-string) 'ns) ((bound-and-true-p w32-initialized) 'w32) ((and (featurep 'dbusbind) + (require 'dbus) (member "org.freedesktop.login1" (dbus-list-activatable-names :system))) 'dbus)