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#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers Date: Tue, 02 Jan 2024 21:13:23 -0500 Message-ID: References: <878r919qfh.fsf@localhost> <87y1dwobey.fsf@localhost> <878r5v20gu.fsf@localhost> <83bkapl5zh.fsf@gnu.org> <83zfy9jkoh.fsf@gnu.org> <878r5tglwp.fsf@localhost> <83ttohjet0.fsf@gnu.org> <83sf41jed7.fsf@gnu.org> <87y1dtyu4y.fsf@localhost> <83plz5jdgj.fsf@gnu.org> <87v88xyt2a.fsf@localhost> <83o7epjaon.fsf@gnu.org> <87edfipbpf.fsf@localhost> <877cl7n0ux.fsf@localhost> <878r5953ux.fsf@localhost> <87ttnw3sqx.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 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="33086"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , dmitry@gutov.dev, Eli Zaretskii , mattias.engdegard@gmail.com, 66117@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 03 03:14:21 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 1rKqlw-0008KT-6w for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jan 2024 03:14:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKqle-0003YR-67; Tue, 02 Jan 2024 21:14:02 -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 1rKqlc-0003YI-Cy for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 21:14:00 -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 1rKqlc-0007uq-4v for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 21:14:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKqle-0004K8-EF for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 21:14: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: Wed, 03 Jan 2024 02:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66117 X-GNU-PR-Package: emacs Original-Received: via spool by 66117-submit@debbugs.gnu.org id=B66117.170424801916583 (code B ref 66117); Wed, 03 Jan 2024 02:14:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 3 Jan 2024 02:13:39 +0000 Original-Received: from localhost ([127.0.0.1]:51677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKqlG-0004JP-Ja for submit@debbugs.gnu.org; Tue, 02 Jan 2024 21:13:38 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKqlC-0004J7-F1 for 66117@debbugs.gnu.org; Tue, 02 Jan 2024 21:13:37 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F16FD84553; Tue, 2 Jan 2024 21:13:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1704248004; bh=iWn8qfih5ioTTXDWGHK0V+P1UGTSZgQHbg+bD/KwkGU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=mWPCgEIGe9bUAgY8cLqbhMwBbXPLWt2TxKdLOateCnCg+z0nNSIQ6TB+dfUul0GX8 4tTuk8O0NQ6PQsfmHCoX1acJrMIRM1aZK+JV/1nYDZuODpEwkXYCXGueDONBNUwLqN PBo1y3QMaKHw9J5nq4kPtyFy74uBZfmH0d4ZOV2sV3wH5nDNJmWK2DRiEXpvcTk64a aT2yGjn9LFoK37YPvpiKCg3OuMfSNPv3jrK0pc4UmhHN5QSBAMfg3hgjLdtrdc0Za4 ugKz/s2eHp2SKMJrjHh2fFryQ4K42OOqHMr0aDuk6EIGwhtdifwaRBckcwDkBSdj1O VWRWZ3jiyF3ug== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C2E0580409; Tue, 2 Jan 2024 21:13:24 -0500 (EST) Original-Received: from pastel (65-110-221-238.cpe.pppoe.ca [65.110.221.238]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 884DC12118A; Tue, 2 Jan 2024 21:13:24 -0500 (EST) In-Reply-To: <87ttnw3sqx.fsf@localhost> (Ihor Radchenko's message of "Tue, 02 Jan 2024 11:00:06 +0000") 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:277263 Archived-At: >> Indeed, see the doc that Eli quoted 10 posts "ago": >> >> [...] ELisp manual, which describes the effect of >> make-variable-buffer-local: >> >> A peculiar wrinkle of this feature is that binding the variable >> (with =E2=80=98let=E2=80=99 or other binding constructs) does no= t create >> a buffer-local binding for it. Only setting the variable (with >> =E2=80=98set=E2=80=99 or =E2=80=98setq=E2=80=99), while the vari= able does not have a =E2=80=98let=E2=80=99-style >> binding that was made in the current buffer, does so. >> >> IOW, `let` changes the binding that is "current": if the variable is >> buffer-local in the current buffer it changes that buffer-local value >> and otherwise it changes the global value. >> [ This for "automatically buffer-local variables". ] > > What you say is indeed what I observe, but I do not see how it follows > from the quoted manual text. It follows from the first sentence: A peculiar wrinkle of this feature is that binding the variable (with =E2=80=98let=E2=80=99 or other binding constructs) does not create a buffer-local binding for it. > When I read the above part of the manual, I see a warning about using > `set'/`setq' inside `let' that binds the same variable. That's in the second sentence. > I think that the caveat about binding buffer-local variables should be > documented. Actually, let-binding works the same for all vars: it affects only the binding that's currently active. Stefan