From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Any way to control which articles Gnus summary shows by default?
Date: Fri, 06 Apr 2018 11:06:22 -0700 [thread overview]
Message-ID: <873708dxb5.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87efjsdxx0.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 06 Apr 2018 10:53:15 -0700")
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> On 04/06/18 16:52 PM, Michael Heerdegen wrote:
>>> Michael Heerdegen <michael_heerdegen@web.de> writes:
>>>
>>>> I then opened my .gnus.registry.eieio (with "kate", if you care), and I
>>>> again saw some lines with "quote" corruption (you know what I mean).
>>>
>>> My impression is that the Gnus registry itself contains some hashtables
>>> as values, and the fix does only handle the top level hash values, while
>>> the quote problem persists for the sub-hashtables.
>>>
>>> Does that make sense?
>>
>> Thanks for the hint. I was setting the cleaned values for the subtables,
>> but not then re-setting the tables themselves: they were getting fixed,
>> then thrown away. I can't believe how long this is taking to get
>> right... I'll post to gnus.general again once I'm confident (ha) I've
>> got it fixed.
>
> Or maybe no, that's not what was happening. Does your quote corruption
> look like multiple nested "quote"s, or does it look more like "quote
> ("val" quote ("val" quote...", like that? It's probably a bug in the
> strip-quotes part of the fix.
Michael, would you give this new version a whirl (backup first,
obviously!)? For someone who writes as much lisp as I do, I'm actually
terrible at reasoning about list manipulation...
(defun gnus-registry-strip-quotes (lst)
(let (acc)
(when (consp lst)
(while (eq (car lst) 'quote)
(setq lst (cadr lst)))
(while (consp lst)
(if (eq (car lst) 'quote)
(setq lst (cadr lst))
(push (gnus-registry-strip-quotes (car lst)) acc)
(setq lst (cdr lst)))))
(nconc (nreverse (delete-dups acc))
lst)))
(defun gnus-registry-fixit ()
"Fix Gnus registry after eieio-persistent patches.
For use with Emacs master branch, after installing 0afb43eeb, or
the 26 branch, after daa9e853bd."
(interactive)
(unless (gnus-alive-p)
(gnus))
(when gnus-registry-enabled
(with-slots (tracker data) gnus-registry-db
(maphash
(lambda (track-sym hsh)
(maphash
(lambda (k v)
(setf (gethash k hsh)
(gnus-registry-strip-quotes v)))
hsh))
tracker)
(maphash
(lambda (k v)
(setf (gethash k data) (gnus-registry-strip-quotes v)))
data))))
next prev parent reply other threads:[~2018-04-06 18:06 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11583.1522744082.27995.help-gnu-emacs@gnu.org>
2018-04-03 23:17 ` Any way to control which articles Gnus summary shows by default? Emanuel Berg
2018-04-03 23:28 ` Emanuel Berg
2018-04-04 7:00 ` Michael Heerdegen
2018-04-04 7:30 ` Eric Abrahamsen
2018-04-04 10:59 ` Michael Heerdegen
2018-04-04 11:31 ` Eric Abrahamsen
2018-04-04 14:41 ` Michael Heerdegen
2018-04-04 14:46 ` Michael Heerdegen
2018-04-06 14:52 ` Michael Heerdegen
2018-04-06 15:22 ` Eric Abrahamsen
2018-04-06 17:53 ` Eric Abrahamsen
2018-04-06 18:06 ` Eric Abrahamsen [this message]
2018-04-07 9:26 ` Michael Heerdegen
2018-04-07 12:33 ` Michael Heerdegen
2018-04-07 9:23 ` Michael Heerdegen
2018-04-08 14:17 ` Michael Heerdegen
2018-04-08 15:03 ` Eric Abrahamsen
2018-04-08 15:46 ` Michael Heerdegen
2018-04-08 16:57 ` Eric Abrahamsen
2018-04-08 19:01 ` Eric Abrahamsen
2018-04-08 23:59 ` Eric Abrahamsen
2018-04-09 14:12 ` Michael Heerdegen
2018-04-09 16:36 ` Eric Abrahamsen
2018-04-09 19:59 ` Michael Heerdegen
2018-04-09 20:18 ` Eric Abrahamsen
2018-04-10 12:15 ` Michael Heerdegen
2018-04-10 16:27 ` Eric Abrahamsen
2018-04-10 20:12 ` Michael Heerdegen
2018-04-10 22:29 ` Eric Abrahamsen
2018-04-11 17:05 ` Michael Heerdegen
[not found] ` <mailman.11665.1522827199.27995.help-gnu-emacs@gnu.org>
2018-04-04 12:43 ` Emanuel Berg
2018-04-06 17:53 ` Eric Abrahamsen
2018-07-24 3:10 ` Robert Girault
[not found] ` <mailman.11664.1522825278.27995.help-gnu-emacs@gnu.org>
2018-04-04 12:51 ` Emanuel Berg
2018-04-04 14:33 ` Michael Heerdegen
[not found] ` <mailman.11689.1522852442.27995.help-gnu-emacs@gnu.org>
2018-04-04 14:48 ` Emanuel Berg
2018-04-03 8:27 Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873708dxb5.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).