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.devel Subject: Re: Colorful line numbers Date: Fri, 22 Jul 2022 18:38:40 +0300 Message-ID: <83k085jgxr.fsf@gnu.org> References: <87leslpow2.fsf@gmail.com> <83ilnpl8e0.fsf@gnu.org> <874jz9peq0.fsf@gmail.com> <837d45l6ge.fsf@gnu.org> <87zgh1nyo6.fsf@gmail.com> <831qudl1k3.fsf@gnu.org> <87v8rpntiv.fsf@gmail.com> <83sfmtjjy8.fsf@gnu.org> <87fsitnpxd.fsf@gmail.com> 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="6941"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 22 17:40:02 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oEul0-0001Z9-2l for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 17:40:02 +0200 Original-Received: from localhost ([::1]:47184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEuky-0004WB-Ms for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Jul 2022 11:40:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEujo-0002x5-KX for emacs-devel@gnu.org; Fri, 22 Jul 2022 11:38:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEujo-0004GM-Bm; Fri, 22 Jul 2022 11:38:48 -0400 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=LxSbcaEZ2Dn7F46b2c5nF6I88CieF6OnVyg/2tqoOmo=; b=BKHXOOXckG6rpovIG7ls uNwkrNF69ExU4dPxWR0aAtYZH/RPZrbosyy4f4mOg3PnsmpihMBmRByudyxuY+hNIaoTVTfCdBZxP FSpW1ncxoAazhg1Sh7aIe4Q0m/Zbxe9B/C+wJwFI6FPKbWA5/CKwZ/BFKrky66xwS+rCiYEJSY7fJ a3Shdmgk2Ab7BIbKlfQiElCE27xYQfO2DNy3OvkqstlclFYJ4Jo+FKpF6nQB1G8VYGpE1cR61Jl1C hp06593pdourlE4sQo+2PWXbnaMSeP1htEb1rxhlHCpddC3cOEXbJJ3+jbBVioC57tFOjT13qD+CE +u04UFT6jlKvoA==; Original-Received: from [87.69.77.57] (port=3975 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEujk-0006he-JO; Fri, 22 Jul 2022 11:38:48 -0400 In-Reply-To: <87fsitnpxd.fsf@gmail.com> (message from =?utf-8?B?Sm/Do28g?= =?utf-8?B?VMOhdm9yYQ==?= on Fri, 22 Jul 2022 16:10:54 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292456 Archived-At: > From: João Távora > Cc: emacs-devel@gnu.org > Date: Fri, 22 Jul 2022 16:10:54 +0100 > > > You mean, the Lisp program will scan the entire buffer text and update > > the properties upon each and every change to buffer text? Like in > > some post-command-hook or something? > > In some hook yes, but not "post-command-hook" and not on each and every > change. And I don't think the "entire buffer text" has to be scanned. How else would you know where such re-scanning is needed? An Emacs command could change buffer text in several places and in different ways, and you must ensure all the characters of a line have the correct properties.