1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-31 01:32:00 -07:00

; Fix last change

* doc/misc/gnus.texi (System Sleep Integration): Move @anchor up.

* etc/NEWS: gnus-dbus.el is obsolete.
Presentational fixes and improvements.

* lisp/gnus/gnus-start.el (gnus-close-on-sleep): Add :version.
(gnus-sleep-handler): Use `ignore-errors'.
This commit is contained in:
Michael Albinus 2026-05-09 13:17:06 +02:00
parent d54faa0f1b
commit e4d529c67b
3 changed files with 15 additions and 12 deletions

View file

@ -26680,11 +26680,11 @@ CloudSynchronizationDataPack(TM)s. It's easiest to set this from the
Server buffer (@pxref{Gnus Cloud Setup}).
@end defvar
@c Section name changed from this in Emacs 31. @c
@c This anchor allows old links to continue working. @c
@anchor{D-Bus Integration}
@node System Sleep Integration
@section System Sleep Integration
@c Section name changed from this in Emacs 31. @c
@c This anchor allows old links to continue working. @c
@anchor{D-Bus Integration}
@cindex system sleep
@cindex closing servers automatically
@cindex hung connections

View file

@ -795,7 +795,7 @@ docstring for the new option.
See the file "etc/ORG-NEWS" for user-visible changes in Org.
+++
** New user option 'compilation-search-extra-path'
** New user option 'compilation-search-extra-path'.
compile.el will now use paths specified in both
'compilation-search-extra-path' and 'compilation-search-path', when
doing search. 'compilation-search-extra-path' is consulted first.
@ -1967,13 +1967,16 @@ Gnus, see "(gnus) Symbolic Prefixes" in the Gnus manual.
---
*** Sorting selected groups is now possible with 'gnus-topic-mode'.
---
*** gnus-dbus.el is now obsolete.
+++
*** System sleep integration is now independent of D-Bus.
The system sleep integration previously provided by customizing the
variable 'gnus-dbus-close-on-sleep' is now deprecated. A new system
using the builtin sleep library is now available by customizing
'gnus-close-on-sleep'. This will work on all systems that the sleep
library supports.
using the builtin 'system-sleep' library is now available by customizing
'gnus-close-on-sleep'. This will work on all systems that the
'system-sleep' library supports.
** Sieve
@ -2819,7 +2822,7 @@ another branch.
---
*** VC Annotate for Mercurial repositories shows changeset hashes.
To restore showing revision numbers instead of changeset hashes,
customize the new option vc-hg-annotate-show-revision-numbers to
customize the new user option 'vc-hg-annotate-show-revision-numbers' to
non-nil.
+++
@ -4613,7 +4616,7 @@ singleton list.
By default it kills Emacs, as before, but 'kill-emacs-on-sigint'
can be set to nil to change that.
The response to SIGINT in interactive sessions is unaffected,
e.g. in a normal GUI session it still kills Emacs whereas in a terminal
e.g., in a normal GUI session it still kills Emacs whereas in a terminal
it causes 'quit' since it is used for 'C-g'.
+++
@ -4622,6 +4625,7 @@ While it is marginally more efficient than ':after' or ':before',
the main purpose is to make the intention more obvious when the advice
modifies only the interactive form and not the actual behavior
of the function.
* Changes in Emacs 31.1 on Non-Free Operating Systems

View file

@ -734,6 +734,7 @@ the first newsgroup."
(defcustom gnus-close-on-sleep nil
"When non-nil, close Gnus servers on system sleep."
:version "31.1"
:type 'boolean
:group 'gnus-start)
@ -744,9 +745,7 @@ See `gnus-close-on-sleep' to enable this functionality.
SLEEP-EVENT is checked to ensure this is only run before sleep."
(when (and (eq 'pre-sleep (sleep-event-state sleep-event))
(gnus-alive-p))
(condition-case nil
(gnus-close-all-servers)
(error nil))))
(ignore-errors (gnus-close-all-servers))))
(defun gnus-no-server-1 (&optional arg child)
"Read network news.