From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Drawing UI elements behind text Date: Sun, 10 Nov 2024 11:06:13 -0800 Message-ID: <74058eb5-2d50-4111-5d43-4d05387efd6a@gmail.com> References: <641230ac-2dbc-42ac-a57e-acda77fe9296@imayhem.com> <51478cef-3d2b-07bc-797d-ae80ab6e20d2@gmail.com> <86a5e7kjyn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25033"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpardo@imayhem.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 10 20:07:06 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 1tADH7-0006Rn-TG for ged-emacs-devel@m.gmane-mx.org; Sun, 10 Nov 2024 20:07:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tADGO-0006j9-6U; Sun, 10 Nov 2024 14:06:20 -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 1tADGM-0006iz-Iv for emacs-devel@gnu.org; Sun, 10 Nov 2024 14:06:18 -0500 Original-Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tADGL-0001tj-0v; Sun, 10 Nov 2024 14:06:18 -0500 Original-Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-2114214c63eso31386175ad.3; Sun, 10 Nov 2024 11:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731265575; x=1731870375; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=B7S66HtXZiD2ftwZ6Q8Ocn7ovJ/DW3Q4mWj/4ijpYz4=; b=e411uJMSHDzGeNW8Kz8PQjcPANBCAuWTjJRoWqkEm/uoTGD8xdvbZxSF265/ULyq4L 1P6NfySy+e1oDRzHOci78TdApkJ7zRI+zvpHKMMVR0ap+UQHPsx7KLvxBEJrmU8CJ+q5 Br9cU1lRyiGWN5RDdJkfu3OWrzpAxp3lJG5ifkFcpsmbaQfw2NsYn47gCuPiPIzjflHV 4hx4ZTh8r+XNLYKKMY6KLT3lhu+CE7qbbG+bp7Ruj646XoGCrfDQGodVn66HDZ0I01vu ts1LmkwiEPDWQuq7HOqR/IKnW+H6IPtVzVTA+rJJhnFC55Pn7IOC0ccNPMu0VdlQtNdx fVCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731265575; x=1731870375; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B7S66HtXZiD2ftwZ6Q8Ocn7ovJ/DW3Q4mWj/4ijpYz4=; b=aquSya0Z7c2GUlBeyjz1h7bfFiksk0aRy65t+aqhbz1V9Nfur71re8HkyruKWrIjrn 4BmJRLpVFyuZ9ZS0+P6fYkFYuEC6Nda3pXqTKHig80OT20l212VI7gt2gc7hrg43Rwpl ciOMx7UHmWsoUXjJEjnLrhIPF5Y2MUYYRNFGboR3eLzcilFB/iXeDNW3T3R73lzsHaVn qLBcmMb4QTMmgkagXyvaaxWkwao1yYFnqvA3BB7jrAqlMeRdoMFAdZVW5fJaaPSLVpoP BNuHATS19ckA1Nu2x6JUmpThvBCmL5+rolysT0l8n9BN/Z/K/gxgLC5foLOh+Bgjjo4V Aa6g== X-Forwarded-Encrypted: i=1; AJvYcCXmvAefI8fRT2Z/CFt4jI10nUurAQTb4K7cUx892bB7XLroL4AHm/jr0LtASZURIdJjM7NrKa1ts1nRTA==@gnu.org X-Gm-Message-State: AOJu0YwOt6SUQdGR5rI80SqRN7uy7nClVAO4ATTCwqgN6x/7ZcxVXOaY GqOy/ZToEgW2nPXNevW6iVRozrquKtX/HPSJE7K00AYnPUOVq3CngIz7KA== X-Google-Smtp-Source: AGHT+IGu6JRMHnuqVchRuvzUPKGOtwMFDzuqiMnP+j0RnRATrG2075BR8pfv6Jjt8sWgDMqnM84zzQ== X-Received: by 2002:a17:902:d505:b0:20b:c1e4:2d5d with SMTP id d9443c01a7336-21183551a3dmr137922405ad.34.1731265574997; Sun, 10 Nov 2024 11:06:14 -0800 (PST) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-21177e69225sm62239995ad.227.2024.11.10.11.06.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Nov 2024 11:06:14 -0800 (PST) Content-Language: en-US In-Reply-To: <86a5e7kjyn.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:325384 Archived-At: 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? Or what about applying text scaling? 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. In fact, I'm not sure it would be worth using this new feature to help EWW out here either (though that's not to say the feature isn't worthwhile elsewhere). I just though I'd mention it as another case that's worth at least a cursory look.