bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#71774: 31.0.50; Hash table weakness broken?


From: Pip Cet
Subject: bug#71774: 31.0.50; Hash table weakness broken?
Date: Wed, 26 Jun 2024 08:46:04 +0000

On Wednesday, June 26th, 2024 at 08:37, martin rudalics via "Bug reports for 
GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:

> > Is it possible the problem is fixed by running (setq values nil)
> 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.

Pip





reply via email to

[Prev in Thread] Current Thread [Next in Thread]