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: Adding refactoring capabilities to Emacs Date: Fri, 29 Sep 2023 14:10:14 +0300 Message-ID: <8334yx1bhl.fsf@gnu.org> References: <83fs4f36wi.fsf@gnu.org> <8408fa63-af93-ab36-8524-fa12de7918ea@gutov.dev> <87pm25qck5.fsf@posteo.net> <0b0c60ec-46e7-19b2-4ade-7bc32cf457bf@gutov.dev> <92ee8b00-bde5-b425-f374-3817a9cb46ee@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17617"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, ams@gnu.org, joaotavora@gmail.com, philipk@posteo.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 29 13:11:53 2023 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 1qmBPV-0004GM-3g for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Sep 2023 13:11:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmBOO-0005Ht-VY; Fri, 29 Sep 2023 07:10:44 -0400 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 1qmBON-00059d-0f for emacs-devel@gnu.org; Fri, 29 Sep 2023 07:10:43 -0400 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 1qmBOM-0005FC-5b; Fri, 29 Sep 2023 07:10:42 -0400 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=va7MeNcF08ud3Wk5aVB7lrhHL7wG6R/ThuY8ShSxLeo=; b=p5Zu8eVRWDVu 8R9iR9JAa+TIwZskoGBOXeGTQ1KlSOlKtLUyXe7TuKnoCTBQWB41zXuMjvsl7T8aFquRI6hsIaGE+ EUo5Br01l7rkfKzDoExUiMK05vieyWUzced7+phhoQLgqS26adEtKjB3D/Fm2qylYpDyo01cY47zg jTUGqIvPABKfkWofvtqd3rzKrUQKxTNvJqlecvvdd9w28B5wKYZHLgsiqlW7lOLPbXFUnBHy/F2Cf 3IO8Xb6JejJDv1qh5EcJiLYamHFIRrxDTAWeY0mJLI/tMZXFVnJUReoYcaE8WGhSw6cEguZ3rtVXv U+IZTlYlwRknoFYxP76Oyg==; In-Reply-To: (message from Yuri Khan on Tue, 26 Sep 2023 23:31:18 +0700) 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:311148 Archived-At: > From: Yuri Khan > Date: Tue, 26 Sep 2023 23:31:18 +0700 > Cc: "Alfred M. Szmidt" , joaotavora@gmail.com, philipk@posteo.net, > monnier@iro.umontreal.ca, eliz@gnu.org, emacs-devel@gnu.org > > On Tue, 26 Sept 2023 at 23:04, Dmitry Gutov wrote: > > > If we could do something for consistency for terminal users (e.g. render > > xpms with pseudographics or somesuch), we should. > > Could do better than that. Could display actual graphics using the > protocol implemented in several terminal emulators. > > https://sw.kovidgoyal.net/kitty/graphics-protocol/ Incorporating this into Emacs should be possible, but would need a thorough surgery of the TTY part of the display engine, which currently assumes that each "display element" on TTY frames is one "pixel" wide and 1 "pixel" high. (It is also not clear to me from a cursory reading of the spec how to figure out how many text lines and text columns will a given image need to be displayed unclipped. This is important for the layout to work correctly. Since Emacs generally doesn't know the pixel resolution of the terminal screen, it cannot easily compute that, and probably needs some help from the terminal emulator/driver, but I saw no commands for such a query. I probably missed something.)