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: rmsbolt.el [Was: Colorful line numbers] Date: Sat, 23 Jul 2022 09:13:20 +0300 Message-ID: <835yjojr0f.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> <83k085jgxr.fsf@gnu.org> 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="31309"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jaygkamat@gmail.com, 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 Sat Jul 23 08:16:34 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 1oF8RF-00082C-Rf for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 08:16:34 +0200 Original-Received: from localhost ([::1]:48944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oF8RE-0006DZ-Bi for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jul 2022 02:16:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF8OC-0004jp-Ev for emacs-devel@gnu.org; Sat, 23 Jul 2022 02:13:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF8OC-0001Yn-55; Sat, 23 Jul 2022 02:13:24 -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=vCX22jPT2jrTud7Rro47hNp5EzzejAMngMmlccBYD/U=; b=pq+BFkpavN2LiktMkrQd 3hNBaNcFNgnj91r3d5POczwe+QTXWhea9RB6VLqKPD8xxdRvPigejO8KWncqd9lJ5vY06FHNsfqLz +kAVGZs3fYxl3nhkXLi1Bss/LQefdkIs2zI13tdCFvlt97pgQEFRr+pF5n3cSBmwL6edydcm3RkgW 6K8BqPsk41xwFhDYi7cJDZIG7pO8AZC/j9NTSzRiE3fkf4GAokN1O+fY08pHmJmPW/J2S7bDOacXo kAzPRJl50kbg22OwFXvqVuwxOo4zA1t98LDU9p1l9r+GU1wa8xxYAKMvYivMYjnjr7rZrUbAq2e8r vUMjuRB2euuCqw==; Original-Received: from [87.69.77.57] (port=2251 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 1oF8OB-0001m8-Ia; Sat, 23 Jul 2022 02:13:23 -0400 In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Fri, 22 Jul 2022 17:30:46 +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:292499 Archived-At: > From: João Távora > Date: Fri, 22 Jul 2022 17:30:46 +0100 > Cc: emacs-devel > > Aaanyway, I think I'm happy with the current implementation that _doesn't_ > use line numbers at all. I think this discussion has been productive (to some > degree). If I ever need this again (or someone else, like Dmitry), I'll be sure > to ping here again. OK. Let me just say, for the future, that basing this on text properties is IMO not the best idea. I think a better idea is to have some buffer-local (or window-local) variable whose value is an appropriate data structure that specifies faces for ranges of line numbers. Of course that value will need to be updated at suitable times, which in itself is not a trivial task.