From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: Implementing child frames on terminal Date: Tue, 12 Jul 2022 14:35:31 +0600 Message-ID: <87h73m20fg.fsf@disroot.org> References: <87czfxu7be.fsf@disroot.org> <874k19tya1.fsf@disroot.org> <83h759lb6f.fsf@gnu.org> <87tu99s860.fsf@disroot.org> <838rqklurd.fsf@gnu.org> <87tu7n10hr.fsf@disroot.org> <87h73mykv6.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org, ibluefocus@outlook.com To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 12 10:59:02 2022 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 1oBBjS-0008yg-0x for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Jul 2022 10:59:02 +0200 Original-Received: from localhost ([::1]:36918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBBjQ-0000Rf-RH for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Jul 2022 04:59:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBBNV-0007Rh-VB for emacs-devel@gnu.org; Tue, 12 Jul 2022 04:36:23 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:52202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBBNR-00087J-SM; Tue, 12 Jul 2022 04:36:21 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 93B2640DF2; Tue, 12 Jul 2022 10:36:13 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zvt2aldPU84o; Tue, 12 Jul 2022 10:36:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1657614972; bh=vhlDJjlqkvK4hSzxEmlekv4Rz8gNjItmxKHOKfjE8RA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=cbqxLH9bRFclz+RC20XcFG1z8++/p+Va7Kvg9nY6iENUZdigKahbZl2+WqI9zOxvx PI3c3Sc/y5Izo2OCmepNaMUsGU4vvNxMUjcRSXhfhKDHmoV3UMe8jqMFVB+CPsArHU k6bhWrt2BN1vA+kwXY2iRQRc1Bm3SWc5sjp14en6jyNcr53sHw8nx3bkxpHlHXuiSm gb/wC7gyxM//hs/VFIDbGyIQ91Qrf1xfBjgNBLrb6cRQdI4e7xx2wtxselWqn4E6IE zsKt7OmvAphC1CWUNwqUmRPDHGKrr/W2abeSjZLqSL8I9RyHJMQxQCtRh1YVavnXJ0 VFj2t+NRcedcA== In-Reply-To: <87h73mykv6.fsf@yahoo.com> Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:292068 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Po Lu writes: > Akib Azmain Turja writes: > >> Your idea is good, but until the child frame crosses the edges of it's >> parent. Then it'll cause a segmentation fault (the best case) or >> continue without any symptom and corrupt your files or something else >> silently (the worst case). > > Fixing that (assuming you clip the contents of the child frame to the > parent) sounds easier than what you propose further on here: > >> I think we should somehow render the child frame glyph matrix before >> processing it's parents. Then we can copy the it's glyph matrix to it's >> parent's one. And, in case the child frame doesn't cross parent's >> edges, we can use a floating window (as you suggested) as an >> optimization (although I don't think we need this optimization, since >> terminal don't usually have many characters). Really? It looks like it would require to modify whole redisplay logic to make sure whether a glyph is inside edges and write to it only if it is. That sounds more tedious to me. However, maybe it's easier to do but I don't know how to. =2D-=20 Akib Azmain Turja This message is signed by me with my GnuPG key. It's fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmLNMlMACgkQVTX89U2I YWs14hAAtKshS6cxnW5hfMNBW/09ZPIiN7pLo6UaUZjoaoI2eLniMOlZdvvXz2UT DsL0Yr/UcKSpId+gkrWTzZR/juK8A4fK7v6CH6VPxLZpVnnV+MUoEe/oJ/kdaqYB owk/aCBtkxXCz8s0n/mmUGBvZLXgK8Bb69EhCln4bQn1WjEvb1X0AkZQdEA0ON+X 7Uf12Xjlsfmxojj50rwtXwhzFKbDiYcaiSD1l1s+1xcZEQEMxNz78nqNCCbzT42K NaqZTc4R8oiMk5NRD3u7ZCIYsBvjM79iqegtHBEaorvchHnavJuvz1DZ+BD1n8cv I/SGBN85uwW72WG4U98NbnAnSVVGtr++DEqaqxz6OBoNJOCG7pVBqwlG3zHIWlm7 euoj/SFIvrMn6jcQ2Uh2IoJbmXco/QX+eO8sVb2xq+mXzFo/kgzjuG7zde/mGEv1 cSONCzjSEwqKAAl56XYcKnAj4YTyCse6VjdRORCI7mSe3fptnCEddQZUEE2CsDmk j4E0Acu6LV/2uyqFgWEhIaiJ3sJr37gYgsOeWKDqLed0YfN1jgGz6LUbT1UQGfAD 2czYJf9iKWQfXQqpGFGT3YXGSqEytoMvwTNUM05hXjYGNBQ9lCKUkHQk7t7dUYdv A7E+gZB+K8oZT9yKOeH72j1n6r/NX7H2MevsyiMC4AHil+fVkfE= =pvr6 -----END PGP SIGNATURE----- --=-=-=--