From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88651 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.gnus.general Subject: Re: Can't process mark all articles in summary Date: Fri, 05 Jul 2019 16:33:41 -1000 Organization: Avi Gobbler Publishing Message-ID: <87r2733n96.fsf@bobnewell.net> References: <87pnmqompy.fsf@bobnewell.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="136552"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36854@lists.math.uh.edu Sat Jul 06 04:34:48 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hjaXH-000ZLG-P4 for ding-account@gmane.org; Sat, 06 Jul 2019 04:34:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1hjaWT-0005gz-RY; Fri, 05 Jul 2019 21:33:57 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hjaWN-0005eC-Ed for ding@lists.math.uh.edu; Fri, 05 Jul 2019 21:33:51 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hjaWL-0001pT-MT for ding@lists.math.uh.edu; Fri, 05 Jul 2019 21:33:51 -0500 Original-Received: from mail-pg1-f179.google.com ([209.85.215.179]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hjaWH-0008Bb-Ur for ding@gnus.org; Sat, 06 Jul 2019 04:33:48 +0200 Original-Received: by mail-pg1-f179.google.com with SMTP id i18so4996730pgl.11 for ; Fri, 05 Jul 2019 19:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:organization:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Hxl3F2Vkwd9L6xWYO8oVs/g9fSTUiUxmUyPFJbaTJrg=; b=jgAW+Y3lbf5B+HkxTVU7RLkNx9tqraxsMDrPk55piKSd8JuCb1k9KN1Fj3c9tA4sba 3s2Zi0razSQDWFynmP70xpb9LgA1+j75GpN5nooFS1kOtj+ds9fvat5wCyWOzX9zldGb h9s+oPKkNa/2ipGsTPNz8ILxdnAVVRPeAeAlA4TxxqKQxm98DCntNbkuxcuSU3D4a5xh Mvy6C+VOEJTbwhLXzHGsgsDKSRiesb/A1CLBZucO8j9VL2wyERFqsAl57ioZu51iaeuD 8E7akO4+xnWs5kmfl09uWjXiYEW1DBypohYpLak8TVJWD+oBI/Jo0jYngARRjcNuj37m TWoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Hxl3F2Vkwd9L6xWYO8oVs/g9fSTUiUxmUyPFJbaTJrg=; b=Bi1argSIPteC07WaWWCS4PYYGWlZJvjydONwa4xKEUuYEaE5W9ovxoma6GJAibMYX9 Mtzz6wstmoJSZZTqlKiOB7lCpTloAesYc2BGR8axRxs1hj4U+kNK4TNyUNv7YXRBjWhq H2wWAXxynmxr4RV1HSVm4B932b4ziN8vOj+iJM4aIEKINQt0UYAsSdSfsmmAcw/HxJq1 zrA1qMvzhHlWFqiPOv9Nxrnvc1XlgUyq/DOHGlsFlkXN4bmfC27Y+7Lw0mPJmBpdwo40 fa4QXw51QWBqdzq9CXaDat03d7H5OSPCjZHKol7WMuhfLszRrEg+zy6fOVo77zga0sH0 TQ1w== X-Gm-Message-State: APjAAAVkW/L9APMqQ0hKWWFRA2YL2yBbXkl/QgLQ9OFwyHLTE9EUuvs2 w3FL73F6F9nlWf45zIIaSEz8YskkeP+7vA== X-Google-Smtp-Source: APXvYqxtgeaJ4BvOLqVy0Wgd9iafH6RolrXwCV+ZX+YbMjjZHjFD7VOwcGRj/kYavV9vh8XLyEu1dA== X-Received: by 2002:a17:90b:95:: with SMTP id bb21mr2713472pjb.8.1562380423724; Fri, 05 Jul 2019 19:33:43 -0700 (PDT) Original-Received: from localhost (udp072992uds.hawaiiantel.net. [141.239.244.209]) by smtp.gmail.com with ESMTPSA id f62sm15180495pfb.143.2019.07.05.19.33.42 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 05 Jul 2019 19:33:42 -0700 (PDT) In-Reply-To: <87pnmqompy.fsf@bobnewell.net> (Bob Newell's message of "Wed, 03 Jul 2019 11:02:49 -1000") List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88651 Archived-At: Aloha, Figured it out but the fix doesn't seem to be easy. Turns out nothing to do with IMAP, everything to do with my use of gnus-summary-prepare-hook, in which I call a function that compacts the lines in the summary buffer. The docs (in gnus-sum.el) call this "A hook called after the summary buffer has been generated. If you want to modify the summary buffer, you can use this hook." So I did. But the problem is that gnus-newsgroup-data has already been computed (from within functions called earlier by gnus-summary-prepare), and that data structure saves buffer locations for members of threads. Unfortunately modifying the summary lines in my 'hooked' function invalidates the location of some of those saved buffer locations. To make a long story (not all that) short, I did a lot of tracing and found that gnus at times, but not always, positions to the wrong place in the summary buffer after doing things like setting the process mark (among other actions). Interestingly, the correct article number is pushed onto the 'processable' list, but the wrong article might get visually marked because of the wrong mark location, and sometimes this just causes gnus to stop marking (if you're doing a series, like trying to mark the whole buffer). The solution would be to regenerate gnus-newsgroup-data AFTER calling the gnus-summary-prepare-hook. But I can't see how to easily do that. Is this truly a bug? I'd humbly suggest that it is, at least based on the docstring for gnus-summary-prepare-hook, which invites you to monkey with the summary buffer. -- Bob Newell Honolulu, Hawai`i * Via Gnus/BBDB/Org/Emacs/Linux *