From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#68668: 30.0.50; Invalid hash table test: tab-bar--auto-width-hash-test Date: Wed, 31 Jan 2024 15:17:33 +0100 Message-ID: <96DABAA1-E447-4627-AF4D-81D78B7DA81B@gmail.com> References: <8734uovhj6.fsf@gmail.com> <87a5onhhik.fsf@posteo.de> <86o7d32ep3.fsf@gnu.org> <87v87a7qbd.fsf@pub.pink> <8C5539AC-A3F9-4EE9-BFD5-FE5D9F760801@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16698"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mekeor Melire , john muhl , 68668@debbugs.gnu.org, Eli Zaretskii , Andrea Corallo , Stefan Monnier To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 31 15:18:12 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rVBPm-00045I-NN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Jan 2024 15:18:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVBPX-0006QH-8T; Wed, 31 Jan 2024 09:17:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVBPV-0006Pn-P1 for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 09:17:53 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVBPV-00033w-GN for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 09:17:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVBPe-00031Y-Gj for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 09:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jan 2024 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68668 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 68668-submit@debbugs.gnu.org id=B68668.170671067511610 (code B ref 68668); Wed, 31 Jan 2024 14:18:02 +0000 Original-Received: (at 68668) by debbugs.gnu.org; 31 Jan 2024 14:17:55 +0000 Original-Received: from localhost ([127.0.0.1]:37752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVBPW-00031C-UG for submit@debbugs.gnu.org; Wed, 31 Jan 2024 09:17:55 -0500 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:48136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVBPT-00030v-0h for 68668@debbugs.gnu.org; Wed, 31 Jan 2024 09:17:52 -0500 Original-Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2cf595d5b4aso45992601fa.0 for <68668@debbugs.gnu.org>; Wed, 31 Jan 2024 06:17:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706710655; x=1707315455; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=/o5HsrwXETORNbLbPuHvjesNA5vOlBdwvmyvk1+Kjtw=; b=bvfJftDGKoQDSGq4Z17Ksyi4PE/LmZQ1tflfclZvP48lMGKPSiT1v77MOWVYVyRqOm WOh6QgXIWRAJ3S2dzRgV9VsU3IrCHZXPSHHKnerlSEJVdV7DIOqYttME3j5dsaigyifB OrR7HU/y6emcIVf0hMXsyv9SkO/eR/jhy2tXhXJjZz09N7NIhJGs2k8rhj8PoCdjg4Mi qSvp0e5hKhHiZz+v278qYsof1kiHczlomasQpahzgb+FOiz1moWUcW4jS/VQ8wYk+F9s MBazkT4LKzJpV5A5kBVK6MNwaYH+CL+O5xVnqVNiIm8oqumUMCwcRxiwzw8PCZovKtUx IryQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706710655; x=1707315455; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/o5HsrwXETORNbLbPuHvjesNA5vOlBdwvmyvk1+Kjtw=; b=Kxn5uJetp0wJTbAfVZyJfRcEM6zwzyX3W5UXq0H2ig9UbUzJ+rWXDtFLxtih49pF+m IR162PZeAxxQopBk604Fbx/Zwj/DcT6rDKrktzM9AO6WYN8jBtRPdqcLthVxzHEmukyP VELpNCZlLqXEKIM4QptzGhvWvyGDYxl4yXvyv/a9cgIGT5Pht3OQjulQvl4IlXJVMwLt hM2x0usDpc0PbvOPPTxg77C1LUDtxJbAbm7FVZ0Lb5+i+i4KRzIJTCmzC/TMPqXYvkgi 7DH1+OTZb1jCg2Ho9aIKSSxQFWWAbkeZox3vuV2jrCIVauSWdVU/4nQQ6xx+m+lkSJti 5H5w== X-Gm-Message-State: AOJu0YzrcPXlEZQeHvt+fadgxg0zLFVc/yqodb/n+6W44Sp7FX+C5I5C I6Cfs606rkMebmh6FN+TJ0xnJUZt0jpH+86Gr6d3NNBkn4Qv4IvT X-Google-Smtp-Source: AGHT+IGg3TBOgacmhzPPn20n3sax2lzNLdByxjI6dmyXNgkEgZBDuyJ1CAyHCCDwIEdErfuueK9eZA== X-Received: by 2002:a2e:7d10:0:b0:2cf:425b:59ee with SMTP id y16-20020a2e7d10000000b002cf425b59eemr1345629ljc.24.1706710654901; Wed, 31 Jan 2024 06:17:34 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWBw8CnTdPaTE6vF+3xUoqarJ9lcv7nme+O30/7H7qhuxTjIXhODlZfdn+o6HVGkIdpeaMQkYeXN2EvB1vx7Ub2kvheKlBzcf7AghA5GJBA73NvGk2m/RmLTE+ZpiRaroP2N5KLqDMv7cn8JPXM7r1FXmjbaMhiC4hk6n1Y0/M9qQzAqQ/VkHpSlj9/Xg== Original-Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id n3-20020a2e7203000000b002cf2ba426ccsm1916336ljc.68.2024.01.31.06.17.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jan 2024 06:17:34 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279227 Archived-At: 31 jan. 2024 kl. 14.34 skrev Gerd M=C3=B6llmann = : > But that also means that we end up with two sorts of hash-tables that > behave differently, without us being able to tell them apart, because > hash-table-test returns 'mytest for both. This is how elisp hash tables worked in Emacs 29; I didn't change that = part, I think. > I think I'd prefer if that > were not the case, and the redefinition would apply to both. If an old > hash-table then behaves stragely, I know what's up, and can empty it, = if > it isn't still empty in the first place. I'm not really happy with that sort of spooky action at a distance = because it makes it too easy not only to introduce mysterious behaviour = but also violate invariants that the C implementation relies upon for = the management of an internal data structure. That said, it is true that Lisp permits retroactive dynamism in several = places even with the current design: the test and hash functions can = both be redefined, and of course all code in Lisp is potentially impure = and can change behaviour when its environment changes. I still believe the current semantics cause fewer user headaches on = balance. In any case, it probably should be documented in the = `define-hash-table-test` doc string. But you do raise an interesting point, thank you!