GNU bug report logs -
#58338
29.0.50; mapatoms called on more elements than in obarray?
Previous Next
Reported by: Philip Kaludercic <philipk <at> posteo.net>
Date: Thu, 6 Oct 2022 16:17:02 UTC
Severity: normal
Found in version 29.0.50
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Philip Kaludercic <philipk <at> posteo.net> writes:
> Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
>> It's all history. Obarray existed since the Big Bang. Don't use it.
>
> OK, then I'll close the report. But if I am not supposed to use the
> obarrays, what would you recommend if I want to count the number of
> known symbols?
I guess you have to use mapatoms, then.
> (Context: I am trying to detect all variables defined
> in a package,
Use do-symbols and alike. Oh wait, that won't work, we don't have
packages. Did I already mention that CL packages would be really nice
to have... :-).
> and since that takes a while I wrapped the `mapatoms' call in
> a progress reporter, that needs a maximal value).
You could also do it like Apple and Microsoft do: start displaying N%
with increasing N for the first minutes, until we reach 99%, and then
leave it at that until finished. We could even offer that as a general
functionality, say with-apple-progress :-).
Or just display something that shows that it's still alive. -, \, |, /,
for example. Or the number of things processed so far.
This bug report was last modified 2 years and 225 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.