From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko 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 11:17:17 +0000 Message-ID: <87le983rya.fsf@localhost> References: <878r919qfh.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> <87wmss3t31.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="9716"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, Eli Zaretskii , mattias.engdegard@gmail.com, Stefan Monnier , 66117@debbugs.gnu.org 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 Tue Jan 02 12:15: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 1rKcjx-0002Mg-U5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Jan 2024 12:15:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKcje-0005eQ-Fa; Tue, 02 Jan 2024 06:15: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 1rKcjc-0005dx-Qn for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 06:15: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 1rKcjc-0000p7-IX for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 06:15:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKcje-0000on-Hy for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 06:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jan 2024 11:15: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.17041940573070 (code B ref 66117); Tue, 02 Jan 2024 11:15:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 2 Jan 2024 11:14:17 +0000 Original-Received: from localhost ([127.0.0.1]:49503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKciu-0000nR-OG for submit@debbugs.gnu.org; Tue, 02 Jan 2024 06:14:17 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:53237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKcis-0000n7-PB for 66117@debbugs.gnu.org; Tue, 02 Jan 2024 06:14:15 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C44EE240106 for <66117@debbugs.gnu.org>; Tue, 2 Jan 2024 12:14:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704194046; bh=MDjuJF90Hr+ttHTT6Dm0wxLE5QaLIHCdyhmdIxKX1eM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=W7Z+fEq2da7Wx5sIlab2S7Mj6ln0UrPRM4jB4V7aepfQ+afFnL0yHSX5XIHa2KydD UGqzGU2+RVhpADBFsfE5izo3XJ27hml/2H1fL/dQeYaO9HOFuyH/NXa6dJKITPkqx6 S1rYBjYys5BnYym1OWDRtJKhWv6QCVjjHrSk8NjVznpz1CVYFXwQuusPqrWRFZzaVS 55JV0sVUR60RvA8Q3XU1MZmmnXhbb6on14p6hSlIU+F/ed1uXXSA/jQO+p227kCghp ov+/r0zO+kmA9EGYbLrF5hwwKHvCVKnUAVwSPkjzezQB6vT82apNZ7meTYQC989rhZ by058qLjA7B2Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T49GP6TKwz6tw1; Tue, 2 Jan 2024 12:14:05 +0100 (CET) In-Reply-To: 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:277226 Archived-At: Gerd M=C3=B6llmann writes: >> (defvar-local yant/test 'default-value) >> (with-temp-buffer >> (setq yant/test 'local-value) >> (default-value 'yant/test)) ; =3D> 'default-value > > Maybe the documentation could be changed to be clearer, but I'm afraid I > don't know how, because I think it describes 100% what is happening: the > setq creates a buffer-local binding in the temp buffer, and > default-value returns the value that is used in the case that a buffer > does _not_ have its own value, which is the value set in the > defvar-local... We clearly have some misunderstanding. Doesn't your statement contradict the earlier one: >>>> 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 In my example, SYMBOL does get its own value in the buffer, but `default-value' still returns 'default-value. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at