From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to record the line number pixel width for each window. Date: Fri, 06 Dec 2019 20:42:52 +0200 Message-ID: <83zhg5fg7n.fsf@gnu.org> References: <83d0d1ho29.fsf@gnu.org> <7B62F071-E6BB-4768-BEBA-8ABFB3727D3C@lawlist.com> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="52606"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 06 19:45:47 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1idIbr-000DXb-JB for ged-emacs-devel@m.gmane.org; Fri, 06 Dec 2019 19:45:47 +0100 Original-Received: from localhost ([::1]:43818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idIbo-0002uh-B8 for ged-emacs-devel@m.gmane.org; Fri, 06 Dec 2019 13:45:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43904) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idIZ3-0000RS-GS for emacs-devel@gnu.org; Fri, 06 Dec 2019 13:42:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1idIZ3-0007so-1l; Fri, 06 Dec 2019 13:42:53 -0500 Original-Received: from [176.228.60.248] (port=1235 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1idIZ2-0005U0-Fs; Fri, 06 Dec 2019 13:42:52 -0500 In-reply-to: <7B62F071-E6BB-4768-BEBA-8ABFB3727D3C@lawlist.com> (message from Keith David Bershatsky on Fri, 6 Dec 2019 09:07:10 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243189 Archived-At: > Cc: "emacs-devel@gnu.org" > From: Keith David Bershatsky > Date: Fri, 6 Dec 2019 09:07:10 -0800 > > Thank you, Eli, for reading and responding to this thread. Once the redisplay cycle gets to the place where update_window is called, all simulations performed by moving IT have already concluded, and update_window is the launch-point for features 17684/22873. I would be comfortable using an existing instance of screen simulation and perform the essence of line_number_display_width without launching a new session with start_display. The goal is to be as efficient as possible when storing the values so that they are reliably accessible when update_window gets called. My general feeling is that update_window is not the place to do screen simulations (moving IT) and running a _new_ instance of start_display for each window is not efficient. > > Is there an existing instance of a running simulation for each window somewhere in xdisp.c where I could add the guts of line_number_display_width without launching a new start_display; and, if so, some pointers on where that might be located would be greatly appreciated? I'm sorry, I don't understand the question. What do you call "simulation" in this context?