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: Thu, 21 Dec 2023 14:39:47 +0100 Message-ID: References: <878r919qfh.fsf@localhost> <83wmtgpuyf.fsf@gnu.org> <871qboprh3.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> 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="15000"; 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 Thu Dec 21 14:41:17 2023 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 1rGJIa-0003gZ-Ps for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Dec 2023 14:41:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGJIL-0004By-Ns; Thu, 21 Dec 2023 08:41: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 1rGJIJ-0004BG-1y for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2023 08:40: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 1rGJII-0006FF-Dq for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2023 08:40:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGJIM-0003Xz-2m for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2023 08:41: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: Thu, 21 Dec 2023 13:41: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.170316600313541 (code B ref 66117); Thu, 21 Dec 2023 13:41:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 21 Dec 2023 13:40:03 +0000 Original-Received: from localhost ([127.0.0.1]:42678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGJHP-0003WK-5P for submit@debbugs.gnu.org; Thu, 21 Dec 2023 08:40:03 -0500 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:53438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGJHM-0003Vh-OT for 66117@debbugs.gnu.org; Thu, 21 Dec 2023 08:40:01 -0500 Original-Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40c2db2ee28so9936605e9.2 for <66117@debbugs.gnu.org>; Thu, 21 Dec 2023 05:39:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703165990; x=1703770790; 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=LB3Yx8ISGOYG/hJbgkpsytk61P3ODjK+KfNmsBg30jI=; b=LfyPjupax7H9C2mGJctJMXKO6pWNWqoDkrZD/KO3xjqB6K6zImuQ3fm5Y5JpqeuxJ3 JtZfY0ewQjLlTkTENOhX8Dd7DegnZeHxdk4YPKmJsDt82eOUebWRqayD4KXshhlRgzeq xSIkc9LUQy/3RbxJ9oluGsmYNtS3rN/ElPxNZ7U4BwCIfmI6p4q1evIStI7Fgu+f6vfv yJyNWYt3COdhxTWnduzObgbaMNZQZBMueNVezJtwQ2ohcczyc7abNYU3ZGqMNcDeq316 dEo7PngIdfnL6j5aLIzu0RGq3eMSKPLYMuBYvogJdXInit3KwlFelrnQEsw8l7S8dRIQ vJrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703165990; x=1703770790; 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=LB3Yx8ISGOYG/hJbgkpsytk61P3ODjK+KfNmsBg30jI=; b=OEeD9lk/+Yi+Iq/uStQEu2nE6UHbpNGm0/PVXnG+tV476fW2Bgco8FuL7K6YliI0MT EXXLFLG6o8KC3NHzAsSdki8IybziEjxlHHb1r3/Hm5xwonia4k9RD7tbaFFRJCzNMunu k35D0UqHfQLX7IZQW24yG3suer1WE0nV42WrfkXG8yCLOodEYZdhtC+PT6ASZn+Guynt 6JphjmxCRarVJlUYHLhR2cxvW0Y6Jl343FXYIm0al17f7CEN1NwN8uNNjwb+lIzMGMj+ mv7/CborUEymcDkGlXrrFIh+kaAvP+PhGW+ZR+N2J1rbdOjsZUgPwC8kR2ZSCHebshZm of9Q== X-Gm-Message-State: AOJu0YyHZ9FyRDnreOBuX8ji35Qa5fWDB5EdIRu/7lt6P1aWj+f68StF L0ioONrUfUbmgwO+b9lgNCq1tUenL98= X-Google-Smtp-Source: AGHT+IFzndkPfrTxwMy85KN0AUcBmO93p6oiFTbpQlZ9drYkzhTkujEnqk82ieYaKU/wkAgY6Z2XpQ== X-Received: by 2002:a05:600c:4da4:b0:40d:3a4b:1158 with SMTP id v36-20020a05600c4da400b0040d3a4b1158mr863499wmp.6.1703165990067; Thu, 21 Dec 2023 05:39:50 -0800 (PST) Original-Received: from Pro.fritz.box (p4fe3a123.dip0.t-ipconnect.de. [79.227.161.35]) by smtp.gmail.com with ESMTPSA id hy25-20020a1709068a7900b00a2327e826ccsm951031ejc.201.2023.12.21.05.39.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 05:39:49 -0800 (PST) In-Reply-To: <877cl7n0ux.fsf@localhost> (Ihor Radchenko's message of "Thu, 21 Dec 2023 13:25:58 +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:276631 Archived-At: Ihor Radchenko writes: > Stefan Monnier writes: > >>> (let ((test/foo2 t)) >>> (default-value 'test/foo2)) ;; -> t ??? >> >> Yup. > > Hmm.. Then, what about > > (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 valu= es for this variable. > (should (eq 'bar let-tests-buffer-local-var)) > (with-temp-buffer > (should (eq 'bar (default-value 'let-tests-buffer-local-var))) > (should (eq 'bar let-tests-buffer-local-var)))))