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 13:07:47 +0100 Message-ID: References: <878r919qfh.fsf@localhost> <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> <87le983rya.fsf@localhost> <875y0caqg0.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="12161"; 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 13:09:25 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 1rKdaH-0002ze-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Jan 2024 13:09:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKdZw-0005Ce-Jf; Tue, 02 Jan 2024 07:09:04 -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 1rKdZs-0005C9-0U for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 07:09: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 1rKdZr-0001wX-Oe for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 07:08:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKdZu-0004SY-3Z for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 07:09: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 12:09: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.170419728317046 (code B ref 66117); Tue, 02 Jan 2024 12:09:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 2 Jan 2024 12:08:03 +0000 Original-Received: from localhost ([127.0.0.1]:49541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKdYw-0004Qs-Mp for submit@debbugs.gnu.org; Tue, 02 Jan 2024 07:08:03 -0500 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:52286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKdYr-0004QJ-W1 for 66117@debbugs.gnu.org; Tue, 02 Jan 2024 07:08:01 -0500 Original-Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50e7aed09adso7186978e87.0 for <66117@debbugs.gnu.org>; Tue, 02 Jan 2024 04:07:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704197269; x=1704802069; 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=QsBapjYcxJ3sI4X4qgMygt9lFfMm0lvFBpRhI79pyI8=; b=acFv80hrjem8ozT/zwgG1cL1l+5sFlPGJKQAnNVnLF9xB9MZ2uvqVPhJ45mCpNSACE 6ZLWPPfgVfu5mHn6Gf410t3QP0MBEEf8fpndkKF5XE1FznKiUrsC+tpnBErlvSJ9jNC+ wJkbsxnvWnUvd0pPebbaOY143cbF9HbMw7meE9epMaayYejQZC5NqGSV4C/e7GRscQ2w Q5UI4IjtW6AsTIV6Oq0r+NkgaE9TbmadGvBK0JBySqnwBtdnWfYIM3e9zQSuC3JBtFmb hXXkSWuBKpYiv2Fhp7FrWD3kIaxZMR2GLhOVIhc+S7ptm7bf6ajXE5OvUopXtAkYRSK5 ZjOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704197269; x=1704802069; 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=QsBapjYcxJ3sI4X4qgMygt9lFfMm0lvFBpRhI79pyI8=; b=p17k8CJ1ano+t0ZPH3Q8ZWz9GT81zYpRGPPoQjZgp1bd10KceLiMo6jOtUMCbEC9Nm Ha6swv1HZ53o5xK6IbmjaU+BjxunGC27TOi4x8AbM1tO/QjFBg7N2c9QgLYL2C6pzESr QL4VN1J7KI6L/IiXPDvgOGSTWQRpkfGWDAYJThmxcmE9KXMKc5QGH4uaDilF6tzI7zly bpgY0HcwwJj242RNGgreHKxavNwZ/MtnXmn9kKAQUSNb+kpFgZKHHydTbAEPalAtdMrz Sg461EavKwiwMd+kMNooDtj0qFvhvbpm2i4OHjxsl5luZ4zlhhTcTDJpZWLnhl1v54DO ZPMg== X-Gm-Message-State: AOJu0Yy5sRgI2eJojA0pQ7J2PIZAxLYl0pPrmMddBFoLLQti6E9+6ZXQ kXmTKragdzaxMmHp3QkHLBn0HQI1Mh8= X-Google-Smtp-Source: AGHT+IGCrFfszhsUdUJzhFaAAJG/QldVaCiFqhSduow+GuY0r9oone1dcUsHjrODSBcv738udytk5Q== X-Received: by 2002:a05:6512:3a91:b0:50e:8106:9e86 with SMTP id q17-20020a0565123a9100b0050e81069e86mr6270887lfu.43.1704197269353; Tue, 02 Jan 2024 04:07:49 -0800 (PST) Original-Received: from Pro.fritz.box (pd9e36b7e.dip0.t-ipconnect.de. [217.227.107.126]) by smtp.gmail.com with ESMTPSA id jj17-20020a170907985100b00a269ca865afsm11669944ejc.224.2024.01.02.04.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 04:07:48 -0800 (PST) In-Reply-To: <875y0caqg0.fsf@localhost> (Ihor Radchenko's message of "Tue, 02 Jan 2024 12:07:59 +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:277231 Archived-At: Ihor Radchenko writes: > Gerd M=C3=B6llmann writes: > >>> In my example, SYMBOL does get its own value in the buffer, but >>> `default-value' still returns 'default-value. >> >> I assume you mean the example from above? This one: > > Yes. > >>>>> (defvar-local yant/test 'default-value) >>>>> (with-temp-buffer >>>>> (setq yant/test 'local-value) >>>>> (default-value 'yant/test)) ; =3D> 'default-value >> >> If so, the "gets its own ... _but_ default-value still returns..." hints >> at the misunderstanding, maybe. It should be something like "because it >> gets its own..., default-value returns...". >> >> Maybe one could reformulate the doc string of default-value like this? >> >> Return SYMBOL=E2=80=99s default value. >> This is the value that is seen in buffers that do not have their own v= alues >> for this variable. >> >> =3D> >> >> Return SYMBOL=E2=80=99s default value. >> This is the value that would be seen in the buffer if it didn't have >> its own value. >> >> Although I find the original clearer... > > Both versions are actually clear for me. What was not clear for me is > how the docstring explains my `let' example. Sorry, I've lost track what the let example is.=20