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: "Final" version of tty child frames Date: Mon, 06 Jan 2025 15:35:02 +0200 Message-ID: <86sepw5am1.fsf@gnu.org> References: <86wmi0g0x6.fsf@gnu.org> <11a86987cce9fe0a257c3fa58703dc33@finder.org> <86wmgl6jzv.fsf@gnu.org> <092cb755eee3a9b5e06d15c0b07e90b1@finder.org> <276414b03c24964aaeb9e43e8dba5e77@finder.org> <86jzb9ahc6.fsf@gnu.org> <5e97881b17d2874e776ef3ca3ac2dfaf@finder.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36541"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Jared Finder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 06 14:36:14 2025 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 1tUnH8-0009Ev-Ct for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Jan 2025 14:36:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUnGA-00047c-5N; Mon, 06 Jan 2025 08:35:10 -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 1tUnG9-00046f-IS for emacs-devel@gnu.org; Mon, 06 Jan 2025 08:35:09 -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 1tUnG8-0000wq-Jx; Mon, 06 Jan 2025 08:35:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rgf3Z4lkUadVBSx7aviYph0b2sRTCOYrrvk88U93mu8=; b=W6U6dAwl0O+L D3KmTiMc7dapwQbbBGg6xXtUEUH9A19+PzJCQvnp7tJSQ0Ya3g9RoI9M1u/QMBH2cBrf5yXMNBaLH bdaO5HZJQsSYGKmj3jvEfFgeaMa75mZc99o9BNIlJGMS6uMXWKNW7fJDIq3xihlHALnVEJpQr4H7l xN7nBwrRxmOdYGrEivOagTYVNA86NRwHxTvLQdkP5yUrkJNzZSd2v7XC69twbO7XQKIYdZThBTRy5 3tOELqO0K33y86dW7feezgyLdFbGdBktHtVAKoXZoEdVudW/s3X4JzQV9GGKeO/hkcuCIkzpIYPfL nTC28/wQv4o44RYLLS4H8w==; In-Reply-To: <5e97881b17d2874e776ef3ca3ac2dfaf@finder.org> (message from Jared Finder on Sun, 05 Jan 2025 16:18:24 -0800) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327736 Archived-At: > Date: Sun, 05 Jan 2025 16:18:24 -0800 > From: Jared Finder > Cc: rudalics@gmx.at, gerd.moellmann@gmail.com, emacs-devel@gnu.org > > On 2025-01-04 22:46, Eli Zaretskii wrote: > > > > If you mean the text cursor, then it is positioned by calling cmgoto, > > which is called from tty_cursor_to and tty_raw_cursor_to. > > > > Frankly, I don't understand how the mouse could affect the cursor > > positioning. Do you mean the cursor position is wrong when you click > > the mouse? > > Emacs understanding of point ends up correct when I click the mouse, but > the cursor is incorrect. This only applies to some lines. I get > similar issues when using arrow keys for moving the point around as > well. I do not see the same behavior in an xterm. This predates my > change. It only happens when tty child frames are visible with > TERM=linux, as far as I can tell. Maybe some code moves the cursor after setting it according to the click? E.g., to redraw some part of the window? We must move the cursor before drawing anything on a TTY. I hope the functions Gerd and myself mentioned will help you find the culprit.