From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Q: child frames on ttys Date: Mon, 02 Sep 2024 15:54:53 +0200 Message-ID: References: <86ikvz302s.fsf@gnu.org> <132fd5ff-bcdf-4d93-acab-186e52f80d9a@gmx.at> <86jzfye0hf.fsf@gnu.org> <86ikvgc3gz.fsf@gnu.org> <86cylobvse.fsf@gnu.org> <86y14a8eut.fsf@gnu.org> <86frqi8ahf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16221"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 02 15:55:49 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 1sl7X3-00045x-G6 for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Sep 2024 15:55:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl7WH-0005Xq-OC; Mon, 02 Sep 2024 09:55:01 -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 1sl7WF-0005XR-DW for emacs-devel@gnu.org; Mon, 02 Sep 2024 09:54:59 -0400 Original-Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sl7WD-0001kl-Pa; Mon, 02 Sep 2024 09:54:59 -0400 Original-Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a7a81bd549eso357845366b.3; Mon, 02 Sep 2024 06:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725285295; x=1725890095; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ej7fjKNVMYeV7w+04FWbfBcXimMvKDIEk4bYA5145EQ=; b=kxEUHi9FC1lWneKvQnBv5BGak2YJU1dccbBApZLxEP4hyoDeN3MuJkVRsANyaw4TMt 6/gKAR89aMXx6mwcmOa6MSGQo2v6s2h+dSK3L7fVvDlUoIOEouxCm5TRcBhZiyQ0hULk 0cRm9UeKAPFUPi5gS4E9HVzVpP3GU++PMAP5Pr9b1JEDJ+xhWHwhdhtNbH0RpZth76er SntjBaBLC08dAkZHyy95OX/1iVeHIaCg7pcQKKsr7hiWu9hB0QCdGHexH3XgJMvdQrOq ejYfp5w3aBuiGFeQDDrHAi2PYvp9DDfqoLg0SCPd6uusL8pNzdMcvil0BWxVHge1BONO qhcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725285295; x=1725890095; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ej7fjKNVMYeV7w+04FWbfBcXimMvKDIEk4bYA5145EQ=; b=k+KYBBgNZesgQIR7exgJP8Q0uCrdqVXG9Ho+DertJmaE2OcIywHTfFWBRoUH531KH/ aA8itJG3jKEhG1yY2FZ0rLiKDydHTYK4P3OWLDY9KPJeRuljNKhkO4zL6SMLtV/5yuzH KCaxni/DhJh2BQRkIykr0i7A2maeZHafGin4tl10/+/zQxrx+TTLTUxkEYGwXrNj/RFu kxcGQxUvFdWpHJncsmiVt4uaQVL8Z6PELDf7igdeAH9fPjEiqyuJF/DnSEyLUol0b5WH 4mu8eXWRNEsEaYrqaZE8XpuVDN3tX1QE+T++nLS+8tgFgV67Jmnyf+ihTAnkZyBCp7kw UI8A== X-Forwarded-Encrypted: i=1; AJvYcCUwop5kdNDWD73IDkoKurzVnDP4VdxqyDw+MCdrfvZ9xcAysoq79MxxXCc5JTSmUx8Rspbtj2wrTwOrWQ==@gnu.org X-Gm-Message-State: AOJu0YwQWF7KTmx0Qq0UJ76Iz+zTF5L1A9niL1d+E1XRkE3tCkXzP/SC 64AID0YjxMgakPLjtITkx8YpTCV4I1bmY0RD3NWGhChIMmQYj+ifc2n7Rw== X-Google-Smtp-Source: AGHT+IEWwGBjoOf9Ibt7hi+b1OAI2+UNW51H5SposGDW7PxTVPbN1x7JlrWKIGDLrhOSAdkV08lE9g== X-Received: by 2002:a17:907:3f9a:b0:a86:ae1f:c758 with SMTP id a640c23a62f3a-a8a1d56fcfcmr14981166b.58.1725285294915; Mon, 02 Sep 2024 06:54:54 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a928.dip0.t-ipconnect.de. [79.227.169.40]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8988feb0e5sm570651266b.12.2024.09.02.06.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 06:54:54 -0700 (PDT) In-Reply-To: <86frqi8ahf.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 02 Sep 2024 16:13:16 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62c.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:323291 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: rudalics@gmx.at, emacs-devel@gnu.org >> Date: Mon, 02 Sep 2024 14:46:11 +0200 >>=20 >> The new plan is to record these rectangles as a list of (child-frame >> rectangle). Probably not Lisp lists, don't know. > > Why not simply record the pointer to 'struct frame" inside the glyph > structure, to indicate which frame it came from? Then you can call > FACE_FROM_ID like we do now, because that macro already accepts the > frame pointer. We could have a convention that NULL as the frame > pointer means the root frame or something. Yes, that would be an alternative. I'm not feeling comfortable with it for a mixture of reasons - glyph::frame wouldn't be useful for anything but tty child frames - it makes struct glyph larger - it's a less localized - the info is already available, I only need to record it Let's see. If it's too slow (I doubt it), one could try that or something similar.