From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Pip Cet <pipcet@protonmail.com>
Cc: 71774-done@debbugs.gnu.org
Subject: bug#71774: 31.0.50; Hash table weakness broken?
Date: Wed, 26 Jun 2024 11:08:27 +0200 [thread overview]
Message-ID: <0485afd0-9022-41d0-aaee-9ad080f7aace@gmx.at> (raw)
In-Reply-To: <eKJPoMx3sWbmmkBxb8MLNXcmmUQlc5Rf-ENAoFHYX1iNgtHgS-sV84Jf8g5jlYQ-g_2dKFw5hAayKhGEcfxyXGuXSitRODdhcRdYFgs7IFE=@protonmail.com>
>> Which "values" would you set to nil?
>
> The global variable "values", which the REPL uses to store evaluated values.
>
>> What precisely did you do?
>
> Here's my *scratch* buffer in emacs -Q:
>
>
> (defvar table (make-hash-table :weakness t))
>
> (puthash t (split-window) table)
>
> (delete-other-windows)
>
> (garbage-collect)
>
> (gethash t table)
>
> (setq values nil)
>
> (garbage-collect)
>
> (gethash t table)
>
>
> What I did is go through this buffer line by line, using C-x C-e after each line. The first gethash produces the window, the second returns nil.
You're right. So here the scenario
(defvar table (make-hash-table :weakness t))
(progn
(puthash t (split-window) table)
(delete-other-windows))
(garbage-collect)
(gethash t table)
gets me nil too. So to make such tests work one has to tinker with
that obsolete variable 'values'. Worrisome.
Closing this bug and many thanks, martin
next prev parent reply other threads:[~2024-06-26 9:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-25 13:57 bug#71774: 31.0.50; Hash table weakness broken? martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-25 15:02 ` Eli Zaretskii
2024-06-25 17:19 ` Mattias Engdegård
2024-06-26 8:38 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-26 9:39 ` Mattias Engdegård
2024-06-25 15:25 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-26 8:37 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-26 8:46 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-26 9:08 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-06-26 9:12 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-26 13:23 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-26 13:53 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-26 14:11 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-27 7:19 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-27 18:42 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-27 23:42 ` Stefan Kangas
2024-06-28 12:59 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-28 5:29 ` Eli Zaretskii
2024-06-26 14:13 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0485afd0-9022-41d0-aaee-9ad080f7aace@gmx.at \
--to=bug-gnu-emacs@gnu.org \
--cc=71774-done@debbugs.gnu.org \
--cc=pipcet@protonmail.com \
--cc=rudalics@gmx.at \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.