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 12:48:52 +0100 Message-ID: References: <878r919qfh.fsf@localhost> <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> <87le983rya.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="32415"; 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 12:50:23 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 1rKdHq-0008FF-P1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Jan 2024 12:50:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKdHW-0008Is-8P; Tue, 02 Jan 2024 06:50: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 1rKdHU-0008IW-QH for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 06:50: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 1rKdHU-0006nU-BS for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 06:50:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKdHW-0001Io-AA for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2024 06:50: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 11:50: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.17041961534933 (code B ref 66117); Tue, 02 Jan 2024 11:50:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 2 Jan 2024 11:49:13 +0000 Original-Received: from localhost ([127.0.0.1]:49524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKdGi-0001HU-Md for submit@debbugs.gnu.org; Tue, 02 Jan 2024 06:49:13 -0500 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:49556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKdGZ-0001Gs-ID for 66117@debbugs.gnu.org; Tue, 02 Jan 2024 06:49:11 -0500 Original-Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50e7b9cca2fso6451545e87.3 for <66117@debbugs.gnu.org>; Tue, 02 Jan 2024 03:49:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704196135; x=1704800935; 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=ob7ZsgKp97q74GBCkBD40aypl+9N9U/uogulNJk1VaM=; b=TAo9HNP7UyoUXofVPv7mx1QodnpYwFl/tq236i6Ecb4jRXW9ZuM/mdI3TcCkw5P/+l K9eLax5S5OGF2/aRJLaXJm2MHbwmaaqv8D/wGnbC0LkkqijrTO5y/jJJnF6nqOmcKag9 DbfLW/nFUHH34D2BrUOGK54cR77ZprpwFa0NO7xdJRlblxm3apAaI0uMPf10a6smwG2y PmwM+1M0nopbPJpNbNBMLEyPZ8tVc+92GZHYVUukgihvylCBzYU7UjxSlEofu4n8sa8/ qnsmk/NmHF2rQ5LpAdY8jdpJ1qvyT0ykB1svuL3Fbld+p/qDTKh1JR5caHCpiy4BA8Gj WNbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704196135; x=1704800935; 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=ob7ZsgKp97q74GBCkBD40aypl+9N9U/uogulNJk1VaM=; b=BNP7HknzzTgDXyGJCAKSekg56/6fChMG4Okm2VytyQfQzMESpYc32isNWZAYgd3g0B RqgNAOnAvICIVJz4dfZ5luvCEns1b075MMRCmbvH16lomqvlQPKcbhYhV9Kys+9GBFnb 6uIi8ES3x5to3g46+NvSsUjbG+r4le6wUusRPmpUMWb6LI+1MwZgGimenxjLdOu6VpfX at4Pn1NYdOX/4apu8GCVFz3W/glgbnrxk7yT4+WqIACcYLvfiwfNsDGeOxjDhkN04o5f 3zNloPQZTa8RUQpolBLAjCk2RpRU2z9S7Pf4v0Dbh4YWWEEstzdGyiDNIUjYuATkJlrH HgUA== X-Gm-Message-State: AOJu0Yz3kpX2BNqQWz84troQyDr3H8zjeA7csyRekyTef6Xfad91C39B C7J5xpA7Ws5d9AfJja7m0KVS3q4ncMM= X-Google-Smtp-Source: AGHT+IGIDsUiSKbqsvZk+fDjCgMDn5T9994XEYmMfp6u6AE1LE/Jj6cMJlLQ0Q/Q1nXWQbrWDyi2Tg== X-Received: by 2002:a05:6512:b0d:b0:50e:87d2:e2c9 with SMTP id w13-20020a0565120b0d00b0050e87d2e2c9mr6380637lfu.92.1704196134795; Tue, 02 Jan 2024 03:48:54 -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-20020a056402390100b0055515b40464sm5100300edb.81.2024.01.02.03.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 03:48:54 -0800 (PST) In-Reply-To: <87le983rya.fsf@localhost> (Ihor Radchenko's message of "Tue, 02 Jan 2024 11:17: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:277227 Archived-At: Ihor Radchenko writes: > 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. I tend to agree :-). > Doesn't your statement contradict the earlier one: > > >>>> doc string that reads "that do not have their own values...", whi= ch > >>>> means that what default-value returns depends whether or not SYMB= OL 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. I assume you mean the example from above? This one: >>> (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 valu= es 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...