From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68075: 30.0.50; New special form `handler-bind` Date: Mon, 01 Jan 2024 10:37:01 -0500 Message-ID: References: <835y0i92kb.fsf@gnu.org> <83le9c3z6k.fsf@gnu.org> <83wmsu17x6.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13917"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68075@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 01 16:38:24 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 1rKKMx-0003TQ-HC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Jan 2024 16:38:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKKMd-0001y2-9S; Mon, 01 Jan 2024 10:38:03 -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 1rKKMb-0001xp-AP for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2024 10:38:01 -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 1rKKMb-0002f1-09 for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2024 10:38:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKKMc-00038O-Ct for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2024 10:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jan 2024 15:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68075 X-GNU-PR-Package: emacs Original-Received: via spool by 68075-submit@debbugs.gnu.org id=B68075.170412344212000 (code B ref 68075); Mon, 01 Jan 2024 15:38:02 +0000 Original-Received: (at 68075) by debbugs.gnu.org; 1 Jan 2024 15:37:22 +0000 Original-Received: from localhost ([127.0.0.1]:48636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKKLx-00037U-SU for submit@debbugs.gnu.org; Mon, 01 Jan 2024 10:37:22 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:60324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKKLw-00037G-13 for 68075@debbugs.gnu.org; Mon, 01 Jan 2024 10:37:20 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9A3F244165C; Mon, 1 Jan 2024 10:37:12 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1704123431; bh=XWDNxzjk9Q+II/KbMAAHyo4VdYytsW+AAV4yjz2a0wo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=eRY7/VUL87NeVYfLGO6Xo5bd5xdvjij68DkEQ9Der70gxE2TYHuBe7UhzGiWVQeYu 6uKnhnD+LTFCNZ5KjBLNoE4kDA0gikKnSP9PFauVPGuUgQf/B1LqWaFI8WbNgGcNVD p0G1vqv6+mTX3pwkRQXoU/NAmkAggrkCwiV1GK74Sl7N1LRPmLFVqEFUtmvzpHVKuK WG2MlKf96G2yAwGgYPhrmijoxGOiRZULZW8nS96lsPnl8zdxR9eJxyWfc0k7OLAU6j C00hsFu1ao8jdUpe41pv6DCBRIZ8uMi/+EtjJXP5qKuBewDbr8t4n+HPMGGN1WBRUz ySGNIb0CpTj5w== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 36B12441651; Mon, 1 Jan 2024 10:37:11 -0500 (EST) Original-Received: from alfajor (unknown [207.96.224.130]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D4134120BBF; Mon, 1 Jan 2024 10:37:10 -0500 (EST) In-Reply-To: <83wmsu17x6.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 31 Dec 2023 21:36:05 +0200") 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:277176 Archived-At: >> Could you give an example piece of code where this "confusing >> terminology" makes you unsure how things would work? > That's the quoted part of your patch at the beginning of this message. > It uses the word "dynamic" twice and "dynamic bindings" once. So, IIUC, reading that text makes you feel unsure, but you don't really know what you're unsure of? Not sure how to fix that. Should I just add a line that says that statically scoped variables are not affected? It feels kinda of odd/redundant to say that since by definition they're not "dynamic" (and also, any other behavior in this respect would be *very* weird since the handlers are clearly function *values* and thus could just as well be written/computed right *before* the `handler-bind`). More importantly I get the impression that it will still leave a lingering feeling that you're unsure about what other things could be affected (and how) or about what it means to be affected. For this reason it would help if you could try and characterize more precisely what you find confusing. Stefan