Fix Bug#32828
* lisp/net/dbus.el (dbus-init-bus): Return number of connections, as promised by the docstring. (Bug#32828)
This commit is contained in:
@@ -1791,10 +1791,11 @@ GTK+. It should be used with care for at least the `:system' and
|
|||||||
this connection to those buses."
|
this connection to those buses."
|
||||||
(or (featurep 'dbusbind)
|
(or (featurep 'dbusbind)
|
||||||
(signal 'dbus-error (list "Emacs not compiled with dbus support")))
|
(signal 'dbus-error (list "Emacs not compiled with dbus support")))
|
||||||
(dbus--init-bus bus private)
|
(prog1
|
||||||
(dbus-register-signal
|
(dbus--init-bus bus private)
|
||||||
bus nil dbus-path-local dbus-interface-local
|
(dbus-register-signal
|
||||||
"Disconnected" #'dbus-handle-bus-disconnect))
|
bus nil dbus-path-local dbus-interface-local
|
||||||
|
"Disconnected" #'dbus-handle-bus-disconnect)))
|
||||||
|
|
||||||
|
|
||||||
;; Initialize `:system' and `:session' buses. This adds their file
|
;; Initialize `:system' and `:session' buses. This adds their file
|
||||||
|
|||||||
Reference in New Issue
Block a user