From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66117: 30.0.50; `find-buffer-visiting' is slow when opening large number of buffers Date: Wed, 13 Dec 2023 17:22:42 +0200 Message-ID: <83bkaurut9.fsf@gnu.org> References: <878r919qfh.fsf@localhost> <87cyxqzmhh.fsf@localhost> <83zg0uzlgw.fsf@gnu.org> <87v8bhxzcu.fsf@localhost> <83y1gdxws8.fsf@gnu.org> <87jzrwm7ul.fsf@localhost> <87h6n0m781.fsf@localhost> <87v8935wik.fsf@localhost> <83msuftr0i.fsf@gnu.org> <87plzbxtxa.fsf@localhost> <87y1dzvvf0.fsf@localhost> <83plzas3pg.fsf@gnu.org> <87r0jqw8u9.fsf@localhost> <83jzpis08a.fsf@gnu.org> <87il52w744.fsf@localhost> <83fs06rz10.fsf@gnu.org> <87fs06w4ui.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34588"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, 66117@debbugs.gnu.org, mattias.engdegard@gmail.com, monnier@iro.umontreal.ca To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 13 16:24:29 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 1rDR64-0008mV-L3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Dec 2023 16:24:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDR5V-00023z-5K; Wed, 13 Dec 2023 10:23:53 -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 1rDR5P-0001zS-Di for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 10:23:48 -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 1rDR5O-0001ta-FI for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 10:23:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDR5e-0001E9-38 for bug-gnu-emacs@gnu.org; Wed, 13 Dec 2023 10:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Dec 2023 15:24: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.17024809964646 (code B ref 66117); Wed, 13 Dec 2023 15:24:02 +0000 Original-Received: (at 66117) by debbugs.gnu.org; 13 Dec 2023 15:23:16 +0000 Original-Received: from localhost ([127.0.0.1]:59541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDR4t-0001Cs-Fm for submit@debbugs.gnu.org; Wed, 13 Dec 2023 10:23:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDR4p-0001Cd-3m for 66117@debbugs.gnu.org; Wed, 13 Dec 2023 10:23:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rDR4S-0001cD-07; Wed, 13 Dec 2023 10:22:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=X7q0T8ox92o68ZUDBwTG0j4hrGOB2/vLNYZ3D5TpBhk=; b=U+g4j5+sJk0vtk9qKhqA 8K8MDb+LhKpmpAZne4ycF8UvJVmMLB0wmDHZ2AK8auc4PkhNjTBwlSdXDsktPAAhWiErLXB0GZmVa g+wlDn/0w5JCg0junoTVKD//wnEgQk0En7Sm1n+cXJPyctVdk0L6EQYbmaKBMjLHA2uhCn1YDRcbh o0SuGj4145TSlTyL61z4GiVUTrbk+yQQKlYJc3yMZGZMXJE1Fdwu/CF+tOVlVz5RUWsO61OGN526P DnQPJxyr9WACegMiKcPYyK0dCvuSUYzgQIbLMnHIsaFw4vW09dw4xKp1AHDqT01g43S5ogCjRu2rH v/d/2ZCFSXI9aw==; In-Reply-To: <87fs06w4ui.fsf@localhost> (message from Ihor Radchenko on Wed, 13 Dec 2023 14:32:21 +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:276142 Archived-At: > From: Ihor Radchenko > Cc: monnier@iro.umontreal.ca, dmitry@gutov.dev, 66117@debbugs.gnu.org, > Mattias EngdegÄrd > Date: Wed, 13 Dec 2023 14:32:21 +0000 > > > Btw, are you aware that many case-insensitive operations in Emacs > > depend also on the case table in effect, which can also be > > buffer-local? So case-insensitive operations in Lisp can be > > unexpectedly affected by stuff like the current buffer. One more > > reason to use them as little as possible. > > ... and syntax-table can be set in text properties; so not just affected > by current buffer - also by position in buffer. If you search the buffer text, then having syntax-table on that text is less surprising: after all, it only affects the text which has this property. But buffer-local case-table is much more subtle: it is in effect even if you match strings, not portions of buffer text, and only because some buffer _happens_ to be the current buffer when, say, string-match is called. > In the past, me and Mattias EngdegÄrd even discussed a possibility to > incorporate case-fold-search flag into regexps directly > (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63225#74) > That way, things would be less affected by the buffer-locals. Indeed.