From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#32828: 27.0.50; Docstring of `dbus-init-bus' incorrect Date: Tue, 25 Sep 2018 11:33:38 +0200 Message-ID: <87y3bpapl9.fsf@gmx.de> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537867931 15824 195.159.176.226 (25 Sep 2018 09:32:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2018 09:32:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 32828@debbugs.gnu.org To: Philipp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 25 11:32:07 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 1g4jhO-000406-RQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Sep 2018 11:32:06 +0200 Original-Received: from localhost ([::1]:51878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4jjV-0004Fl-Ai for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Sep 2018 05:34:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4jjM-0004Fd-5L for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 05:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4jjH-0005fp-4R for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 05:34:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4jjG-0005ff-Ul for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 05:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g4jjG-0008Pi-HR for bug-gnu-emacs@gnu.org; Tue, 25 Sep 2018 05:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Sep 2018 09:34: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.153786802832320 (code B ref 32828); Tue, 25 Sep 2018 09:34:02 +0000 Original-Received: (at 32828) by debbugs.gnu.org; 25 Sep 2018 09:33:48 +0000 Original-Received: from localhost ([127.0.0.1]:52872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4jj2-0008PE-8l for submit@debbugs.gnu.org; Tue, 25 Sep 2018 05:33:48 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:45499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4jiz-0008P1-MW for 32828@debbugs.gnu.org; Tue, 25 Sep 2018 05:33:46 -0400 Original-Received: from detlef.gmx.de ([178.20.95.78]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LpObx-1fbTNP3j89-00f7vA; Tue, 25 Sep 2018 11:33:39 +0200 In-Reply-To: (Philipp's message of "Mon, 24 Sep 2018 22:55:08 +0200") X-Provags-ID: V03:K1:9o2+szQoYMFS441AYPzk0vEmlBDJ/2y3Y02PrNKRoKG/hlsqxOQ K4Sbx1P3eb+iaqMVYzC0iJLx60T7fU4RbsbkC4VuAKTmzJjToE5FTHdn2oIXoJi8y3suAfg yHVQ+eeBgYsXmnbNuyzOrXrcc672DAxgqwEH7bwQWp9fMx+EmVbv0+vrfK2HhSSPQawVO4n tiA/Yd4SG5J0hfvjEiGEw== X-UI-Out-Filterresults: notjunk:1;V01:K0:wYOrM0z4MC8=:pKeoAmgNApxghvufV0HZO7 qFIZkEJajo+M3jyVIJJ9/cnm5wBsRoiXdTxX5o//JvidmBIrQYTXplNblX0WzsSRSTiMNRRSg an1DaMK1nBcksNaXkTUwoD+jhhQVrxktLcXA3nF07J6WBIrG3FGr6GMScU0LTya3oJnj3XdRl oJvkZaW0d7X0Iji9N5jxIaFoMk5+xJAzkeflyBOqrDIPgbka1eVjkdhRJF7qqSP5pCxva6WX0 A4SFAniLt86fhYXlpL7YDTAii+yTpLK07JgDVBk0fRaBNdI/jV8QU9yO8yRoxY7A1JQZbUjIQ Jd3O52VPEI/fWg3UGLVuKFz4Cd3oSe2VBVcXBeBcbXOof1tFDEIejEbsFjWitTEDN/RONgL2A /aOlAdZK0xHwtRmrPhSzkbMxmg4SWJD3JQgGLWQuSRdOlyywEr/uT9/xgo2+xRDBjnJ/g9wBJ EzWGD2M+Gd8MvJrRbRH47kmbKTp03NzVx8Olg0EG0Rq3W8P6GMMGXTBK+sZUeBHcxE3ym2lOX 8y9qruI93MU+zKBRNmwSjf9efkH0+wmIjfhs3BmPG0A4LU6T4XJs2faEGJekNTm7Z3SF/Y5Cn qk918FvD/nLC7G1eq8tp8hCB3CbaGN250nqZ3MqrP2rk4cGyLTha8EqWEaREzIkC7jzTD/GqX feuMQHrh3bV853mD7KAX1IOel3M/nRKZydZ7HGBIDcpy/84VnlaB9Dfip8ph/tLBpaH0sGtp9 K2LpK2HLUgDD+3Ond3sY1jLIt9gugPeq3GvsWBL3dc4CCCdRpH4C6TFCknH91cAwVyOlg/e6 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:150645 Archived-At: Philipp writes: Hi Philipp, > The docstring of `dbus-init-bus' says: > >> 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? Best regards, Michael.