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: "Final" version of tty child frames Date: Wed, 23 Oct 2024 10:12:08 +0200 Message-ID: References: <87cyjrjz74.fsf@163.com> <87zfmvpkki.fsf@163.com> <87v7xjpjoi.fsf@163.com> <86wmhzdzt4.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="14493"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: tumashu@163.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 23 10:13:14 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 1t3WUU-0003cI-Q1 for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Oct 2024 10:13:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3WTX-0002OK-RG; Wed, 23 Oct 2024 04:12:15 -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 1t3WTW-0002Nw-0R for emacs-devel@gnu.org; Wed, 23 Oct 2024 04:12:14 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3WTU-0003cW-Ij; Wed, 23 Oct 2024 04:12:13 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-43167ff0f91so45813965e9.1; Wed, 23 Oct 2024 01:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729671130; x=1730275930; 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=ZqQh9oN8dGT4G+YX2ft20NFtRD3yun+2e1GKEuADFNY=; b=bXT33KswqZ3iLzNqR85mTGNs2i6G/2M0IacnvXwXg2Jhy1kkGomdfymeQH9AMwbHjk qZ0iQPrJ0M7j/x75NUCNXsMMSNYZXWr5q6Si/2bjPW+J5PcPcNuXhIMlmuF+iYUMxn9A VlBGM7/V/mBacfkPX9gn/fSypwVUh77jSL4EyLNmZjGPPjkDaTszwgKGU8oFZvpCO+92 SjxvT3iQRsMSxbJBRRo82QSWDBTqJ6Hz5iMbn9+pmYAFSGegM7N7QhgJPazx8AMi7Osu hJeqXY3Q9uMxcr+EsSt96SrgT0gEFjNe1mYkkYSZirRUneZ9QurYY46nelDUlTkO3lQw 4A/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729671130; x=1730275930; 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=ZqQh9oN8dGT4G+YX2ft20NFtRD3yun+2e1GKEuADFNY=; b=oCP1gn0KGtBIKvW1X0OmWHwxrIIG3otRVGr3opyDhxgqaI0P9u8W5GIj7tbc/dwI3j UZUJH0/kJ4CKpxEfkdgQbNOYYIAVHO4banM30ZFWxi68Dbd3ggKbrjqujEGkfaol0Cwe 67+XnBoYVHNn/OwWY/hyzSf9OG2Fpug0QEFPpn14rq6IK1vXWD0xFSevv8wUgb49XPrq eZoFLDJcsCG1ZrOPMBU7r7AT3bl7NBXozqDb/jjPIGINgFEuTPKN2Qymrf2n9yqoAQ0E 4bYgYRZv7u3Z3r4RkGe6eaGls1NCJ8iWTtO6zbcUw8rRi/P943Ppl8W/Shhvheo73jXU 9DnA== X-Forwarded-Encrypted: i=1; AJvYcCXJdqRSdyu+o53reIqQnMRlLgSiC8vIwobMGErzEl+J6n2x0QEoLD2x7bokjWLnOOAuRsbxQKhW1Dfmrg==@gnu.org X-Gm-Message-State: AOJu0Yw/AJhKy/1aOZN0fl5S6GbDcFzwb/SgNlydMW0hfMnZzkCqfusd /DP6Y0oZh8i9Lq868SLHQwKpGYQ+f6iuDHOhOCOQHPxmP5ErraT+fgmXeQ== X-Google-Smtp-Source: AGHT+IHVmHsSVbAtrSwS5Dj00s+iaMPKb6clgI4eStai2oJOuMNpDEumc8tecG+AkCoifcCwdyY1Gw== X-Received: by 2002:a05:600c:1c06:b0:42c:b74c:d8c3 with SMTP id 5b1f17b1804b1-431841b26f7mr16218885e9.32.1729671129293; Wed, 23 Oct 2024 01:12:09 -0700 (PDT) Original-Received: from pro2 (pd9e36c3f.dip0.t-ipconnect.de. [217.227.108.63]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43186c1e4c6sm9182555e9.42.2024.10.23.01.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 01:12:08 -0700 (PDT) In-Reply-To: <86wmhzdzt4.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 23 Oct 2024 10:49:11 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x32b.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:324776 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: Emacs Devel >> Date: Wed, 23 Oct 2024 07:00:03 +0200 >>=20 >> Another question is if there is something lurking with R2L? I have no >> idea what terminals do in that case, but I'd guess Eli knows :-). > > Terminals should do nothing, and if your terminal emulator has a "bidi > reordering" feature, you should disable it, because Emacs does > everything by itself, and needs the terminal to be "dumb" in this > aspect. > > Basically, we produce a glyph row where all the glyphs are flushed to > the right window edge, and there's empty space on the left of each > screen line to make it a full-width screen line. The low-level write > code that writes to the terminal then works normally, writing glyphs > left to right. Thanks, that's good to know for sure. > > The current branch hits an assertion violation when showing RTL text > in a child window. (Showing RTL text in the parent window works > fine.) Here's the recipe: > > emacs -Q -nw > Evaluate in *scratch: > > (defun my-make-child () > (interactive) > (make-frame `((parent-frame . ,(selected-frame)) > (background-color . "gray10") > (foreground-color . "white") > (internal-border-width . 1) > (top . 15) > (left . 40) > (width . 80) > (height . 25)))) > > M-x my-make-child RET > C-x 5 o > C-x C-f etc/tutorials/TUTORIAL.he RET I'll have a look, a bit later.