From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32828: 27.0.50; Docstring of `dbus-init-bus' incorrect Date: Tue, 25 Sep 2018 12:43:11 +0300 Message-ID: <834ledap5c.fsf@gnu.org> References: <87y3bpapl9.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1537868935 26397 195.159.176.226 (25 Sep 2018 09:48:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2018 09:48:55 +0000 (UTC) Cc: p.stephani2@gmail.com, 32828@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 25 11:48:50 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4jxZ-0006kN-Rm for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Sep 2018 11:48:50 +0200 Original-Received: from localhost ([::1]:51911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4jzg-000827-8q for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Sep 2018 05:51:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4jzB-0007YW-5I for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 05:50:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4jsw-0006RI-NZ for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 05:44:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48620) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4jsw-0006RC-K2 for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 05:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g4jsw-0000GV-GF for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 05:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Sep 2018 09:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32828 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32828-submit@debbugs.gnu.org id=B32828.1537868610958 (code B ref 32828); Tue, 25 Sep 2018 09:44:02 +0000 Original-Received: (at 32828) by debbugs.gnu.org; 25 Sep 2018 09:43:30 +0000 Original-Received: from localhost ([127.0.0.1]:52878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4jsQ-0000FN-9r for submit@debbugs.gnu.org; Tue, 25 Sep 2018 05:43:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4jsO-0000F8-Ne for 32828@debbugs.gnu.org; Tue, 25 Sep 2018 05:43:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4jsD-0006Ez-97 for 32828@debbugs.gnu.org; Tue, 25 Sep 2018 05:43:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4jsD-0006Ev-2s; Tue, 25 Sep 2018 05:43:17 -0400 Original-Received: from [176.228.60.248] (port=3740 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g4jsC-000509-0F; Tue, 25 Sep 2018 05:43:16 -0400 In-reply-to: <87y3bpapl9.fsf@gmx.de> (message from Michael Albinus on Tue, 25 Sep 2018 11:33:38 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150646 Archived-At: > From: Michael Albinus > Date: Tue, 25 Sep 2018 11:33:38 +0200 > Cc: 32828@debbugs.gnu.org > > >> The function returns a number, which counts the connections this Emacs > >> session has established to the BUS under the same unique name > > > > However: > > > > (dbus-init-bus :system) > > > > ==> ((:signal :system "org.freedesktop.DBus.Local" "Disconnected") (nil "/org/freedesktop/DBus/Local" dbus-handle-bus-disconnect)) > > > > Looking at the definition of `dbus-init-bus', it seems that only a > > `prog1' form is missing to make the docstring correct: > > > > (prog1 (dbus--init-bus ...) (dbus-register-signal ...)) > > Indeed. dbus--init-bus keeps the original implementation of dbus-init-bus. > It would be safe to apply this patch even to the emacs-26 branch, IMHO. > > Eli? ENOPATCH