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 10:37:37 +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> 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="32472"; 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 10:38:44 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 1sl2aC-0008It-QV for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Sep 2024 10:38:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl2ZF-00050m-11; Mon, 02 Sep 2024 04:37:45 -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 1sl2ZD-00050W-ET for emacs-devel@gnu.org; Mon, 02 Sep 2024 04:37:43 -0400 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sl2ZB-0003vE-L3; Mon, 02 Sep 2024 04:37:43 -0400 Original-Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a7aa086b077so336062066b.0; Mon, 02 Sep 2024 01:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725266259; x=1725871059; 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=nqfJsM9/TaEWFku17OXWFPTyswkW8qDq2jGGqw34Cco=; b=Zj4JJ8u9dBsYximWDOphavI8ny27Zac3CdP2shzcAMVNyJHzAZBHgXkWC1PwCBYeMu ZZ82OrAoFw0hyU3VHvko8jITmdHg6crPQ+ksRLBfJbLyw2mtJXd+S3TdawgQrboN23hW JfubzDl+laXTHL2xHyOFlpmcNGmS6EEbvrpFYNolAI5/PKHUhqDMT0H3NAkIyV70HyTB FWbYN0gcmQMp32IHr/8i+e0Y6+1ZF7vas6WRZlqTjgUUs9PO3gSimK6l5A95P/C1WyCY iWTEe4XDFEN6Qa+z3Kz1i9NgM3TtJ1XS6lU8mWknhqWOtZW3081vxD+SaTzMTj3AdqtC XU+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725266259; x=1725871059; 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=nqfJsM9/TaEWFku17OXWFPTyswkW8qDq2jGGqw34Cco=; b=ApS7mLT4n39KlWHI+pYxL+CO1y/2UletbKveb7fBJzuOG6PRKPTxwquBDGpMQc2Y01 Cf1oPRhLMgY4xcdkPFe2SjaTL4BCqcFGOACAww+8ZgbGzSPdhVHNEuLBJcC91W1owa50 GQgooayTdEYopoad71EUUH/vUqPMBj0pPjuR2jHfR8wDFV6P0oLtYTfst88548zrMxbs eA6H+5aCTVOsNhfpsGFP/oHA554kQB7d8xwbqSjge5fiKrpomBVZMSbqapMmGy0IE3oN 9uP9tSkhQ4ftyI4kct+77NL8B9kPOHhHNbndBX1FDMpZxHinsCOypakMnghsrd6HAcsM feNw== X-Forwarded-Encrypted: i=1; AJvYcCVqrKGQ9yIWYxLzQatno1IGW+uQPIeHslgA6MvR0ycK03TFzCx2jBPnBFdcWEs0GhoaBnIHchELkob/Rg==@gnu.org X-Gm-Message-State: AOJu0Yzi0iCjBn4Ai4VwuIzrHK6p0lvXaIiDX8Ikl8yZYWZxvpwxDRbg TmTVyPd8r08iUtZ9y1ZwruGOvvc3uX0h/oIQ00vyVCUeBYIyDSGS6kIs4Q== X-Google-Smtp-Source: AGHT+IFXTqAf5ImE6fB9+6Lf5vsELt1rrzaFY6XkkFvDnfKnY8zrbwLx6SZLZIvEhlc+zPNm+0ZzPw== X-Received: by 2002:a17:907:3f84:b0:a86:7924:11bd with SMTP id a640c23a62f3a-a89faf0fef1mr247317666b.41.1725266258901; Mon, 02 Sep 2024 01:37:38 -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-a89891968b0sm528521566b.107.2024.09.02.01.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 01:37:38 -0700 (PDT) In-Reply-To: <86cylobvse.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 31 Aug 2024 17:40:17 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62f.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:323267 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: rudalics@gmx.at, emacs-devel@gnu.org >> Date: Sat, 31 Aug 2024 16:00:22 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> The simplest such function is of course the identity function, which >> >> means child and root share the same face cache. With the consequence >> >> that changing named faces on the child modifies faces of the root. Not >> >> nice, but simple. >> >>=20 >> >> As I said, I'm not sure about this. I could also think of redefining = the >> >> concept of face id to something containing the frame or cache holding >> >> the face's definition. Which could be done in more than one way. And = so >> >> on, but it's certainly some work. >> >>=20 >> >> What do people think? >> > >> > FWIW, I don't see why this would be a serious limitation. After all, >> > by default we define the faces identically on all frames, and Lisp >> > programs that want to have different faces on different frames need to >> > actively opt in. Most don't. >>=20 >> Thanks. >>=20 >> I think I'm mostly concerned of the seemingly harmless background-color >> frame parm, and what else there is which change the default face on a >> frame. I could imagine that one would want to do that for child frames. >> Like a frame for completion candidates, for example. > > We should document that this doesn't work on TTY displays, and let > applications deal with that. > >> Hm. I think I'll leave that as is for now, i.e. simply share the >> face cache with the root. It could be changed later, and it's pretty >> independent of the rest, I'd say. At least as far as I can see now. > > Right. Just please don't forget documenting it. Just wanted to mention that I had an idea yesterday how to solve that problem without making broad changes outside of the tty code. The idea is to write a function that maps an (x, y) position in a matrix the frame holding the realized face at that position. One ugly difference less between ttys and GUI.