diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index f63ab9a15a..5f44c36034 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el @@ -1791,10 +1791,11 @@ dbus-init-bus this connection to those buses." (or (featurep 'dbusbind) (signal 'dbus-error (list "Emacs not compiled with dbus support"))) - (dbus--init-bus bus private) - (dbus-register-signal - bus nil dbus-path-local dbus-interface-local - "Disconnected" #'dbus-handle-bus-disconnect)) + (prog1 + (dbus--init-bus bus private) + (dbus-register-signal + bus nil dbus-path-local dbus-interface-local + "Disconnected" #'dbus-handle-bus-disconnect))) ;; Initialize `:system' and `:session' buses. This adds their file