From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87854 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-exit-group-hook Date: Mon, 18 Dec 2017 13:41:12 -1000 Message-ID: References: <87h8sohfx8.fsf@bobnewell.net> <87bmivlwy1.fsf@ericabrahamsen.net> <86k1xjhl9p.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1513640459 25808 195.159.176.226 (18 Dec 2017 23:40:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Dec 2017 23:40:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+m36068@lists.math.uh.edu Tue Dec 19 00:40:55 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eR51f-0006C6-Di for ding-account@gmane.org; Tue, 19 Dec 2017 00:40:51 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id 1dac2a3f-e44d-11e7-a8eb-b499baa2b07a; Mon, 18 Dec 2017 23:42:32 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.89) (envelope-from ) id 1eR52Y-0000tr-K5; Mon, 18 Dec 2017 17:41:46 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eR52V-0000tE-2a for ding@lists.math.uh.edu; Mon, 18 Dec 2017 17:41:43 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.89) (envelope-from ) id 1eR52T-0001ad-RO for ding@lists.math.uh.edu; Mon, 18 Dec 2017 17:41:42 -0600 Original-Received: from mail-yb0-f171.google.com ([209.85.213.171]) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1eR52S-0002My-D9 for ding@gnus.org; Tue, 19 Dec 2017 00:41:40 +0100 Original-Received: by mail-yb0-f171.google.com with SMTP id q3so550829ybg.9 for ; Mon, 18 Dec 2017 15:41:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=n/TeVjFO+HMlh5rr/yDz4eTXVa8KfD4+M6vpzuFNBG8=; b=cX1CQIVELAYtcmElGC9asiNJ0XOjuHXduSWPif0WDmW8j7xWO6wZL2RjIa89Vo64Au x3IoUGFRYtk5yOTPVpuKWF8TcWv05v4dv5ykO072JCEWO0Sdtd7L10J/9XwSYNfq6Oxt 8yB6f0H1VhCzy73WI5BOE8h6lihOoLAZgUugbRsJdfqZzuc+yRu8EVeE/Eo1X/RPCvPp utSqhKpJ16069oLnfe2muCb3TzIpjcWONj4Fg9Q4jW03TpufETUQnw0iy+CbFqpG0Ti8 bQO397LrjYh4ap4ohGeQmKxX2L7+1GNP6DyX5HObSpljtMRdA//WWiQu9WeafWiMKIrX r6vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=n/TeVjFO+HMlh5rr/yDz4eTXVa8KfD4+M6vpzuFNBG8=; b=FCU4mZCFi1NNO5fEXUrADetDrVAdZlbSHMiTLb/LOTf9Cg3nK4bpZ2uKe6z7lUdscR PNlYAPuJfpkbfEZ/FMFJrCF65ZHy6ASOruuCVx1lW5sp70YYrnglrte9yBOeBqSGErm7 hzDHmm1asRu7XoYcuQHdkW6gWOiruEkq+9HIwI2kdZkJWD2mtM9mRB0TjzGoGLmsvBuB qKhboDhBnWyo96NWgG9axqRwaD7OldD1hZ7fIUdmoXU17PYbtqznMZd11Oed46bMXHvy uGsFsrdvk/jpAOtOhcxymBAUZ++0b0qVeqsrL+9W2LgkRQFlcu7vt4RN9L3PiSdQlA4P Rzmw== X-Gm-Message-State: AKGB3mJTajOMZqXPqGVavVGfA1TD8kIpQmJhYfWVyam/6g98iVS2p0mj tNqJGKz1Qq+mqL+QBLCqn1SRW0uXR0sdYhWnYvEUmg== X-Google-Smtp-Source: ACJfBouie3Vvu3GKSuqqdTjegeNI4NqQpzzobxhgv3/l1+fUQAglMXfjm3PIIqmBc/oL2GfTHqvKxbbjMZQl/F+JsuE= X-Received: by 10.13.209.7 with SMTP id t7mr1145155ywd.34.1513640492627; Mon, 18 Dec 2017 15:41:32 -0800 (PST) Original-Received: by 10.37.234.14 with HTTP; Mon, 18 Dec 2017 15:41:12 -0800 (PST) In-Reply-To: <86k1xjhl9p.fsf@zoho.com> X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin (3.4.1 2015-04-28) analysis follows Bayesian score: 0.4574 Ham tokens: 0.000-9--313h-0s--0d--HX-Gm-Message-State:sk:AKGB3mJ, 0.000-5--181h-0s--0d--HX-Google-Smtp-Source:sk:ACJfBou, 0.000-3--100h-0s--0d--HX-Received:Mon, 0.000-3--92h-0s--0d--emmanuel, 0.000-1760--66097h-2s--0d--HX-Google-DKIM-Signature:references Spam tokens: 0.996-15746--318h-12918s--0d--HX-Envelope-From:sk:junkmas, 0.996-15746--318h-12918s--0d--H*RT:sk:junkmas, 0.996-15746--318h-12918s--0d--Hx-spam-relays-internal:sk:junkmas, 0.995-24149--736h-20011s--0d--H*Ad:D*gnus.org, 0.994-28540--931h-23699s--0d--HTo:D*gnus.org Autolearn status: ham autolearn_force=no -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.213.171 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.213.171 listed in wl.mailspike.net] 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4574] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87854 Archived-At: Aloha and thanks for the replies. Eric: gnus-newsgroup-unread is indeed the variable I test, and it doesn't seem to update as articles are read, only when exiting the group summary buffer. This "sort of" makes sense, because if you exit with 'Q' you don't want that or anything else updated, perhaps? So updates only happen when you "commit" them with a form of exit that supports it--- such as 'q'. In any case, rather than modify Gnus code directly and creating a maintenance issue for myself, I dropped my hook call and instead added :after advice to gnus-summary-update-info, and now my code runs after all variables are updated. Emmanuel: I definitely will look at your gnus coding. There is always more to learn, and in the case of Gnus, always more to unlearn as well. Bob Newell Honolulu