mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
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:
parent
7f5086da05
commit
1908173a4d
1 changed files with 5 additions and 4 deletions
|
|
@ -1791,10 +1791,11 @@ GTK+. It should be used with care for at least the `:system' and
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue