GNU bug report logs - #42977
28.0.50; New gnus-dbus library providing (optional) D-Bus->Gnus integration

Previous Next

Package: emacs;

Reported by: Eric Abrahamsen <eric <at> ericabrahamsen.net>

Date: Fri, 21 Aug 2020 20:44:02 UTC

Severity: normal

Found in version 28.0.50

Done: Eric Abrahamsen <eric <at> ericabrahamsen.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eric Abrahamsen <eric <at> ericabrahamsen.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#42977: closed (28.0.50; New gnus-dbus library providing
 (optional) D-Bus->Gnus integration)
Date: Thu, 27 Aug 2020 21:21:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 27 Aug 2020 14:20:26 -0700
with message-id <87y2lzg50l.fsf <at> ericabrahamsen.net>
and subject line Re: bug#42977: 28.0.50; New gnus-dbus library providing (optional) D-Bus->Gnus integration
has caused the debbugs.gnu.org bug report #42977,
regarding 28.0.50; New gnus-dbus library providing (optional) D-Bus->Gnus integration
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
42977: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42977
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eric Abrahamsen <eric <at> ericabrahamsen.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; New gnus-dbus library providing (optional) D-Bus->Gnus
 integration
Date: Fri, 21 Aug 2020 13:43:07 -0700
[Message part 3 (text/plain, inline)]
The attached patch provides a new gnus-dbus.el library, allowing systems
with dbus support to register a signal that closes all Gnus servers when
the system is going down for sleep. This is kind of a stop-gap solution
for the larger problems discussed in #40748.

It only does anything if Emacs has been compiled with dbus support, and
if the user sets the `gnus-dbus-close-on-sleep' to non-nil (it defaults
to nil).

Right now I've done this by checking the value of that option in
`gnus-1', but I could just as easily have the library add a startup
hook.

I assume this would require a mention in the manual. Is it something
we'd add to NEWS, as well?

Thanks,
Eric

[0001-Add-basic-D-Bus-integration-to-Gnus.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Eric Abrahamsen <eric <at> ericabrahamsen.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 42977 <at> debbugs.gnu.org, 42977-done <at> debbugs.gnu.org
Subject: Re: bug#42977: 28.0.50; New gnus-dbus library providing (optional)
 D-Bus->Gnus integration
Date: Thu, 27 Aug 2020 14:20:26 -0700
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Eric Abrahamsen <eric <at> ericabrahamsen.net> writes:
>
>> I think it's more a matter of reducing confusion for hackers. If I do
>> `gnus-close-server' followed by `gnus-server-status', it tells me the
>> server is open -- not very helpful.
>>
>> The patch is pretty simple.
>
> Looks good to me.

Cool, in it goes. It turns out the signal needed to be :system after
all, not :session, so I made that change as well, and am closing this
report.

Thanks,
Eric


This bug report was last modified 4 years and 271 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.