GNU bug report logs - #25892
24.4; gnus-after-getting-new-news-hook is not fired when running gnus-summary-rescan-group

Previous Next

Packages: emacs, gnus;

Reported by: Łukasz Stelmach <l.stelmach <at> samsung.com>

Date: Mon, 27 Feb 2017 17:24:01 UTC

Severity: normal

Tags: fixed, patch

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25892 in the body.
You can then email your comments to 25892 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25892; Package emacs. (Mon, 27 Feb 2017 17:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Łukasz Stelmach <l.stelmach <at> samsung.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 27 Feb 2017 17:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Łukasz Stelmach <l.stelmach <at> samsung.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; gnus-after-getting-new-news-hook is not fired when running
 gnus-summary-rescan-group
Date: Mon, 27 Feb 2017 15:07:07 +0100
[Message part 1 (text/plain, inline)]
Hi,

Unlike in pressing g in the *Group* buffer M-g in *Summmary…* buffers
doesn't activate hooks in gnus-after-getting-new-news-hook.

My patch will follow this report.
-- 
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25892; Package emacs. (Tue, 28 Feb 2017 07:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 25892 <at> debbugs.gnu.org (full text, mbox):

From: Łukasz Stelmach <l.stelmach <at> samsung.com>
To: 25892 <at> debbugs.gnu.org
Cc: Łukasz Stelmach <l.stelmach <at> samsung.com>
Subject: [PATCH] Run gnus-after-getting-new-news-hook after scanning a single
 group
Date: Tue, 28 Feb 2017 08:57:37 +0100
* lisp/gnus/gnus-group.el (gnus-group-get-new-news-this-group):
Run gnus-after-getting-new-news-hook after scanning selected groups.
---
 lisp/gnus/gnus-group.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 2488cdb..72a4870 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -4093,6 +4093,7 @@ If DONT-SCAN is non-nil, scan non-activated groups as well."
 	       method (gnus-group-real-name group) active))
 	    (gnus-group-update-group group nil t))
 	(gnus-error 3 "%s error: %s" group (gnus-status-message group))))
+    (gnus-run-hooks 'gnus-after-getting-new-news-hook)
     (when beg
       (goto-char beg))
     (when gnus-goto-next-group-when-activating
-- 
2.1.4





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25892; Package emacs. (Tue, 28 Feb 2017 08:06:02 GMT) Full text and rfc822 format available.

Message #11 received at 25892 <at> debbugs.gnu.org (full text, mbox):

From: Łukasz Stelmach <l.stelmach <at> samsung.com>
To: 25892 <at> debbugs.gnu.org
Subject: Re: bug#25892: Acknowledgement (24.4; gnus-after-getting-new-news-hook
 is not fired when running gnus-summary-rescan-group)
Date: Tue, 28 Feb 2017 09:05:01 +0100
Control: tags -1 +patch




Added tag(s) patch. Request was from Łukasz Stelmach <l.stelmach <at> samsung.com> to control <at> debbugs.gnu.org. (Tue, 28 Feb 2017 08:44:02 GMT) Full text and rfc822 format available.

bug reassigned from package 'emacs' to 'emacs,gnus'. Request was from Tim Landscheidt <tim <at> tim-landscheidt.de> to control <at> debbugs.gnu.org. (Tue, 19 Sep 2017 08:48:02 GMT) Full text and rfc822 format available.

bug No longer marked as found in versions 24.4. Request was from Tim Landscheidt <tim <at> tim-landscheidt.de> to control <at> debbugs.gnu.org. (Tue, 19 Sep 2017 08:48:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#25892; Package emacs,gnus. (Wed, 11 Apr 2018 22:11:02 GMT) Full text and rfc822 format available.

Message #20 received at 25892 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Łukasz Stelmach <l.stelmach <at> samsung.com>
Cc: 25892 <at> debbugs.gnu.org
Subject: Re: bug#25892: [PATCH] Run gnus-after-getting-new-news-hook after
 scanning a single group
Date: Thu, 12 Apr 2018 00:09:57 +0200
Łukasz Stelmach <l.stelmach <at> samsung.com> writes:

> * lisp/gnus/gnus-group.el (gnus-group-get-new-news-this-group):
> Run gnus-after-getting-new-news-hook after scanning selected groups.
> ---
>  lisp/gnus/gnus-group.el | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
> index 2488cdb..72a4870 100644
> --- a/lisp/gnus/gnus-group.el
> +++ b/lisp/gnus/gnus-group.el
> @@ -4093,6 +4093,7 @@ If DONT-SCAN is non-nil, scan non-activated groups as well."
>  	       method (gnus-group-real-name group) active))
>  	    (gnus-group-update-group group nil t))
>  	(gnus-error 3 "%s error: %s" group (gnus-status-message group))))
> +    (gnus-run-hooks 'gnus-after-getting-new-news-hook)
>      (when beg
>        (goto-char beg))
>      (when gnus-goto-next-group-when-activating

Thanks; applied to Emacs 27.1.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 11 Apr 2018 22:11:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 25892 <at> debbugs.gnu.org and Łukasz Stelmach <l.stelmach <at> samsung.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 11 Apr 2018 22:11:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 May 2018 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 353 days ago.

Previous Next


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