From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57266: Maintaining the base_line_number cache Date: Mon, 22 Aug 2022 15:57:06 -0400 Message-ID: References: <831qteccli.fsf@gnu.org> <834jy4bhqp.fsf@gnu.org> <83y1vga0l5.fsf@gnu.org> <83edx89rl4.fsf@gnu.org> <83a67w9ldh.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32846"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57266@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 22 21:58:19 2022 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 1oQDYu-0008FM-3Z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 21:58:16 +0200 Original-Received: from localhost ([::1]:49938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQDYs-0006Fl-Q0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 15:58:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQDYh-0006FG-0p for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 15:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQDYg-0008PO-OA for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 15:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQDYg-0000ek-7L for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2022 15:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2022 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57266 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 57266-submit@debbugs.gnu.org id=B57266.16611982392457 (code B ref 57266); Mon, 22 Aug 2022 19:58:02 +0000 Original-Received: (at 57266) by debbugs.gnu.org; 22 Aug 2022 19:57:19 +0000 Original-Received: from localhost ([127.0.0.1]:41822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQDXz-0000dZ-7Z for submit@debbugs.gnu.org; Mon, 22 Aug 2022 15:57:19 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQDXv-0000dK-RQ for 57266@debbugs.gnu.org; Mon, 22 Aug 2022 15:57:18 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 418CD80470; Mon, 22 Aug 2022 15:57:10 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D480A80723; Mon, 22 Aug 2022 15:57:08 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1661198228; bh=SWOCGvrF4Em0Qq1O/xQCutlpSN28zoqhQrdN1bZ1QzU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=CsIFM3C3mDI5TEe3jTTfgAJZAz9Z1ljb/521NrYm9gHUJSApdLkbfctlxc6hEgxc+ yK+ElN2kRPJmvAsQ0KV6JFvD6kOANmPodUKWBewedbAbov1+Gnekgk6RM2zonuF4D5 rCFU9LJEqiI63O4Cnr5/M6z7lzgydoUsMGrX0KbIy6LW8SwbhUBZEWoONTVu/Ocy++ uIxgjs22Ei5y0V9yokqfI0wPNoddw6cAv9rgYWfgk4+X/U7lhEJvy990kHdBfQ1S9R FrAEco6G3TxC7eNjcgPpJDQNqGBJeBvGkt/QzBOvYz6qBPEA0cWf5HZfqbyDyLZloV NC8zS2MEnz45g== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BD5151202E2; Mon, 22 Aug 2022 15:57:08 -0400 (EDT) In-Reply-To: <83a67w9ldh.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Aug 2022 21:35:54 +0300") 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" Xref: news.gmane.io gmane.emacs.bugs:240467 Archived-At: > Sorry, I had (and still have from time to time) enough fallout from > similar experiments of yours around Emacs 25, which also aimed at > improving the code (by removing various reasons to perform more > thorough redisplay). I'd rather not repeat that. I guess you're talking about the `->redisplay` bits. FWIW, the main motivation for those was not maintenance but: - speed (in my daily use I often have a hundred frames and reducing the cases where the redisplay has to refresh them all made a significant difference to the overall responsiveness of Emacs). - the addition of `pre-redisplay-functions` so that highlighting of a rectangular region could be implemented in ELisp (and at the same occasion, remove the ad-hoc handling of the `region` highlighting from the C code). Stefan