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 05:43:30 +0100 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> <8734vg6b62.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="36348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dmitry@gutov.dev, Eli Zaretskii , mattias.engdegard@gmail.com, Stefan Monnier , 66117@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 02 05:44:22 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 1rKWdZ-0009Gs-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Jan 2024 05:44:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKWdG-0007zJ-8e; Mon, 01 Jan 2024 23:44: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 1rKWdE-0007yn-DX for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2024 23:44: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 1rKWdE-0006bz-5F for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2024 23:44:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKWdG-0007My-77 for bug-gnu-emacs@gnu.org; Mon, 01 Jan 2024 23:44:02 -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 04:44: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.170417062328297 (code B ref 66117); Tue, 02 Jan 2024 04:44:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 2 Jan 2024 04:43:43 +0000 Original-Received: from localhost ([127.0.0.1]:49178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKWcw-0007ML-Sy for submit@debbugs.gnu.org; Mon, 01 Jan 2024 23:43:43 -0500 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:54738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKWcu-0007M7-FX for 66117@debbugs.gnu.org; Mon, 01 Jan 2024 23:43:41 -0500 Original-Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a2830574764so47809566b.1 for <66117@debbugs.gnu.org>; Mon, 01 Jan 2024 20:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704170612; x=1704775412; 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=zKQieu9vhvdZ0MLAIngwmfoBXu9qiwR40mE8ux/eC3w=; b=HlaEc0/kFWTE0yAvDvl2W91ZAqionAsCo95oOHPzVk9fXh4u8YicO5LY6hbCsLQ65R n3T9Aieu3dH2Cogja8zGBMwI9oDng2vfz3TU6RpTE0ZoAGJEN6FlUtdtnBvaLYhE+qQQ Rj3aH/tpKAPnPgKJ1CsNRBK7EwuIpV2DFI6Dj19N6l/RR3dh2OcRAq7ZXPSOHxdLuJhf 247sGZHP8dsIAVCC8glb+DXCMM4K89BdAWodER104yOEDbqjpfxw9ums153QPi1un4LH 1vyNLotoc+3qIGgW9MdZ6aO2r6EM9NbNHmU4PzpS2IPafSIn5Qz49lFuN12Ya62/mAG1 07Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704170612; x=1704775412; 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=zKQieu9vhvdZ0MLAIngwmfoBXu9qiwR40mE8ux/eC3w=; b=T+VjrU7ALlN+i80Ld7PIyYuDZTeWphkUibX3W/fB9s3ZApv2U3Oz5Mc+ibOFbWDY3B TGG28+qX6vClZ4MGub6m0mgvoqgAboP3a9mzKOHIBf8/xZ3o5Or+XNwLMdX20z/8lxdd y/y/OHIZ3zzV6C/7PEu4Rmwt4Qap8Itkn8zxXprXVX977opjd6oxApoeTcPuC9SCoEtm CvuK5IYJCM5sZVaumUs9ubeYEhmPO7rElKQoYhujQsU7wFtowQJGFsmMAGJQQaaBhzrO Mon/eVcggQXaZ7Qexg9noPZEhBZBznigcWFantSoV3mxWBz5kmhvZn8Dv2Z2Ry794HZE 9isg== X-Gm-Message-State: AOJu0YycVsKEkuwg20D1OYH9oMUpVohQLJhQR+VC+SDY3FF9oDhjR7Yg /fz3ldDowx0ikhbbTwQDTfenl+rG2jU= X-Google-Smtp-Source: AGHT+IGKPTLcVSJhhLCfPs+WVlzoMqQGXXVtYrsf8r3O3Q4alCVboCitRu+wITQs7R/0ChKqYffk6w== X-Received: by 2002:a17:906:1f46:b0:a27:5a9b:5ad8 with SMTP id d6-20020a1709061f4600b00a275a9b5ad8mr3839880ejk.18.1704170611768; Mon, 01 Jan 2024 20:43:31 -0800 (PST) Original-Received: from Pro.fritz.box (pd9e36b7e.dip0.t-ipconnect.de. [217.227.107.126]) by smtp.gmail.com with ESMTPSA id au16-20020a170907093000b00a27a25afaf2sm3430327ejc.98.2024.01.01.20.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 20:43:31 -0800 (PST) In-Reply-To: <8734vg6b62.fsf@localhost> (Ihor Radchenko's message of "Mon, 01 Jan 2024 20:39:17 +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:277214 Archived-At: Ihor Radchenko writes: > Gerd M=C3=B6llmann writes: > >>>>> (defvar-local let-tests-buffer-local-var 'value) >>>>> (with-temp-buffer >>>>> (setq-local let-tests-buffer-local-var 'baz) >>>>> (let ((let-tests-buffer-local-var 'bar)) >>>>> ;; This is failing. >>>>> (should (eq 'bar (default-value 'let-tests-buffer-local-var))) >>>> >>>> C-h f default-value explains this: >>>> >>>> Return SYMBOL=E2=80=99s default value. >>>> This is the value that is seen in buffers that do not have their own= values >>>> for this variable. >>> >>> Are you saying that `let' never changes `default-value' output? >> >> Not really. I tried to explain why default-value, in this case, returns >> what it returns. > > I am sorry, but I do not see how the docstring explains what is > happening there. Because it is not clear what `let' does with the > default value. Sorry for not being clear. What I wanted to hint at is the part of the doc string that reads "that do not have their own values...", which means that what default-value returns depends whether or not SYMBOL got its own value in the buffer, and that depends on the presence of lets, and so on. It's (too) complicated, but it is what it is :-/.