From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= 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 14:28:51 +0100 Message-ID: References: <878r919qfh.fsf@localhost> <83plz5jdgj.fsf@gnu.org> <87v88xyt2a.fsf@localhost> <83o7epjaon.fsf@gnu.org> <87edfipbpf.fsf@localhost> <877cl7n0ux.fsf@localhost> <878r5953ux.fsf@localhost> <8734vg6b62.fsf@localhost> <87wmss3t31.fsf@localhost> <87le983rya.fsf@localhost> <875y0caqg0.fsf@localhost> <87zfxo9bj3.fsf@localhost> <87wmsranl9.fsf@localhost> 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="36390"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66117@debbugs.gnu.org, dmitry@gutov.dev, Eli Zaretskii , mattias.engdegard@gmail.com, Stefan Monnier To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 02 14:30:17 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 1rKeqW-0009H1-KC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Jan 2024 14:30:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKeqH-0002T0-Hr; Tue, 02 Jan 2024 08:30:01 -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 1rKeqF-0002SU-Vh for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 08:29:59 -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 1rKeqF-0000Zd-Mw for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 08:29:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKeqH-0002i0-Qv for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 08:30:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jan 2024 13:30:01 +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.170420214610313 (code B ref 66117); Tue, 02 Jan 2024 13:30:01 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 2 Jan 2024 13:29:06 +0000 Original-Received: from localhost ([127.0.0.1]:49615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKepO-0002gH-6z for submit@debbugs.gnu.org; Tue, 02 Jan 2024 08:29:06 -0500 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:47307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKepK-0002fl-Id for 66117@debbugs.gnu.org; Tue, 02 Jan 2024 08:29:05 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-556aac11e01so230543a12.2 for <66117@debbugs.gnu.org>; Tue, 02 Jan 2024 05:29:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704202134; x=1704806934; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vryeEXM0ecN4FaoHjwHJRuAz8DdPG9cgysAorcqrwxk=; b=iq2JWrC2ZA/7zrxI4qtBeJ5LLgbqxrUwqqj5ytQVr9L5xXK4rynMrwHN0jLBZoXQaj uLi0NvAXDmWiXqkFPVbh6PC7bBI8utiIFGWL4yDatcJI9f0D3TcuBEhS28fk31E7Gf4e 6R/6o8gMOTHcDLMTPNjX41fNh5xxVY6vTKSqsdTA6uyskXqxADCMIANAblph7T4S3YxV fvYOfowJeFVRw11dTSmlJfbRP1Yx/ZiYNspoNWPOPXSuBsi2Vvxlbqug+bFMm83JFXIp Fp3npPJnIo5Ef5Ayhu9koVsI90+k7aAIYGyiWZqV00DV5e+alZVkh4+27r07Dke2ZdGS D/Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704202134; x=1704806934; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=vryeEXM0ecN4FaoHjwHJRuAz8DdPG9cgysAorcqrwxk=; b=b49dONjWwGMmkPNRAZ/1qd02hq19CUX3VG1Pg7xZaMi6ZblM1bY2SJ6LqMb5OawHXx pK2qT3ME73DAGVuooqOA6Tzop4VTblCpjoO2m3zrEcs/ZqYFkDPuoJaEKD45ou5g37yL 1wz8HVp0X8axOknGPx7Si2h1ivJsw8n2B1pEwmGw4hH6cj49uZZhHb2OwvsC6gonYzQC fpbCRcaY31bqhJyL8vZXSECa5Lsb//rh7y+8e8RTQdvqxzp/7vr9sh6PUmp9Y2OC0l4G oawghgYUVz7hgZlBUoS4/tlqpV+tq/QvZ1E/1D82n7xsdbEdXwfQMGcjgRHC+hTvkamx kx4g== X-Gm-Message-State: AOJu0Yx6xgWegfavA/BkkkCeH0ND6VEAgGFiiwbnoRkB3E7CUd2BaC01 7Mz+KuRWtMeoQwjBYQeS+3+sS136MGA= X-Google-Smtp-Source: AGHT+IEMtdy6TkiUykoMRrLDOvOid7vWRyB1UYhAn5X1K/4I9KjbZgdPv0rQ4fU3OlTy9+Dqq7JTig== X-Received: by 2002:a50:d549:0:b0:54c:e719:64ae with SMTP id f9-20020a50d549000000b0054ce71964aemr6716927edj.94.1704202133757; Tue, 02 Jan 2024 05:28:53 -0800 (PST) Original-Received: from Pro.fritz.box (pd9e36b7e.dip0.t-ipconnect.de. [217.227.107.126]) by smtp.gmail.com with ESMTPSA id fe1-20020a056402390100b0055515b40464sm5203564edb.81.2024.01.02.05.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 05:28:53 -0800 (PST) In-Reply-To: <87wmsranl9.fsf@localhost> (Ihor Radchenko's message of "Tue, 02 Jan 2024 13:09:38 +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:277241 Archived-At: Ihor Radchenko writes: > Gerd M=C3=B6llmann writes: > >>> (with-temp-buffer >>> ;; (setq-local eval-tests/buffer-local-var 'local-value) >>> (let ((eval-tests/buffer-local-var 'let-value)) >>> ;; Let in a buffer with local binding does not change the >>> ;; default value for variable. >>> (should (eq 'let-value (default-value 'eval-tests/buffer-local-va= r))))) >> >> Here, temp has no local value, so the current value is the global one. >> Let changes the global (current) value, and default-value picks that up. >> >> In both cases, I don't know if that's mentioned explicitly in some doc >> string. It's the normal behavior of let with special variables (dynamic >> variables). The current value that is set changes depending on >> circumstances. > > AFAIK, this detail is not documented anywhere. elisp.info, 12.10.2 Dynamic Binding has a bit. (And, BTW, the doc string of let says it's a generalized variable? Is that right?)