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: Drawing UI elements behind text Date: Sun, 10 Nov 2024 21:22:32 +0200 Message-ID: <867c9alwqv.fsf@gnu.org> References: <641230ac-2dbc-42ac-a57e-acda77fe9296@imayhem.com> <51478cef-3d2b-07bc-797d-ae80ab6e20d2@gmail.com> <86a5e7kjyn.fsf@gnu.org> <74058eb5-2d50-4111-5d43-4d05387efd6a@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1812"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpardo@imayhem.com, emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 10 20:23:34 2024 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 1tADX3-0000I0-8Y for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Nov 2024 20:23:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tADWN-0000NL-2T; Sun, 10 Nov 2024 14:22:52 -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 1tADWJ-0000N2-SC for emacs-devel@gnu.org; Sun, 10 Nov 2024 14:22:47 -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 1tADWJ-0003Pg-9d; Sun, 10 Nov 2024 14:22:47 -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=EToEoQ1wWjlNXeeASEDB1THWQ3afyyQF+gfBuF1Wx4s=; b=nKkQdzo5cDVj jOAklELZjzrLCUl6Kp9PQcebufNStu1MoGqkN4IkXM4gu+uttI3h+DPxG6W2ylx6N1zHicP61cN1F XiKiNjisAVPIbQtj73f/SxdnONWZWqf/SWS86L3swF5y8pyUD8fdx+eYYfgPLKapyouh+G0RmzpKQ QHpSd8fz7/70j+oyEJqC2WEy19igNn8sMLjWjgJ0TCqhpDZ4mD2yf0/9WYjO1Fgbznh8cKsnRAai5 R4qmDytx+j3eorAW5aTWF00gsa+RKNcoq6b8qfa8VsKJzItqkmQRhAA0wz22yqu7N0YPgFAMrI2md iylyH0INmZQeUgpVqrNGHA==; In-Reply-To: <74058eb5-2d50-4111-5d43-4d05387efd6a@gmail.com> (message from Jim Porter on Sun, 10 Nov 2024 11:06:13 -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:325385 Archived-At: > Date: Sun, 10 Nov 2024 11:06:13 -0800 > Cc: cpardo@imayhem.com, emacs-devel@gnu.org > From: Jim Porter > > On 11/10/2024 10:44 AM, Eli Zaretskii wrote: > > Given the right Lisp API (which is not easy to come up with, AFAIR), > > this can be done today, because Emacs already knows how to show only a > > part of an image on a screen line. So we need a way to tell Emacs > > "split this image's display between these N lines". > > I've thought about this before. Doing it via sliced images scares me a > bit since it would require extreme care to make sure everything lines up > correctly. For example, what if the text has mixed font sizes resulting > in different heights for some lines? Once the display engine knows at what X coordinate the image slice should start, it can stop laying out other display elements and switch to the slice when that X coordinate is reached. > Or what about applying text scaling? How is this different from what we do today when text-scaling happens in a buffer where images are displayed together with text? > I suppose if we deemed this feature important, we could probably address > all of those, but I'm not sure it's worth the effort. What alternative do we have? Showing the images alongside text without letting the images scroll with the text (vertically and horizontally) will not fly. How do you scroll the images with the text except by displaying them as part of the "normal" display layout?