From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: Re: Message Mode and bidi Date: Mon, 19 Feb 2024 22:50:50 +0100 Message-ID: <86bk8cw20e.fsf@p200300d627023a0ad1f3c3db8ccb4c50.dip0.t-ipconnect.de> References: <87v86ldzpw.fsf@aura.christopherculver.com> <867cj1qg4m.fsf@gnu.org> <8734to16tw.fsf@aura.christopherculver.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31892"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.8; emacs 29.2 Cc: Eli Zaretskii , emacs-devel@gnu.org To: Christopher Culver Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 19 22:58:32 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 1rcBeh-000847-CQ for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Feb 2024 22:58:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcBe2-0004we-0w; Mon, 19 Feb 2024 16:57:50 -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 1rcBdz-0004wO-U8 for emacs-devel@gnu.org; Mon, 19 Feb 2024 16:57:48 -0500 Original-Received: from wfout7-smtp.messagingengine.com ([64.147.123.150]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcBdy-0001kJ-2F; Mon, 19 Feb 2024 16:57:47 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.west.internal (Postfix) with ESMTP id 370151C0006E; Mon, 19 Feb 2024 16:57:42 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 19 Feb 2024 16:57:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1708379861; x=1708466261; bh=+oOxV3DNMw fYPNbic5zw23hJ/846O4joz/b7wpDx8yA=; b=P1CNk7mZrxDl+wunro4H33BjIM 393VcM0KYzOpO0CfHZyDvKN/uQzis2J1Xk1K7tmsI3h2EyRzEDUz3GpfHpQAhRO8 U8ZLtOQECwFrbTigMnvQ4IFZzqah9xhaMelwlaEY8xZLMwY4T+JGDgvAq1dHUz2I yKRqWKVwaKp5p/4ioPLh6Yi7KE1fcGLuYDsm332U+ogXmRlUcK0+sdmUP9gcyV0q CMtJ1cBwCfABBtIhCWL45bPc5/ua5STeC6sZyz4jlcsy9Oe1s0fXIdsWCC7crhrb 4X+bL8bwYkZmcy5I11WHzhi/ByEjzZ2s0kfyi8tuIy5vVozb0lKuGA/2qhYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708379861; x=1708466261; bh=+oOxV3DNMwfYPNbic5zw23hJ/846 O4joz/b7wpDx8yA=; b=KrCr7GojLgEwDV3pzs0rR4tnWAfC/I7io1ezrFOjR4do pXFJr2VDbCOjGpZ157GdfmaeTjLWza1MPOqbMdpQgoX4fDkaSQK8ARIAsRBOQmSF UyHyH7zh1Nr0JIiP9TQqHXcRPy/t88zcZdCNGEorpLGWsSsih0B/YC47+nIIdapy gcVwqxcZmxLTwA6UsU2a0fAX6KaK614V0jmKvlw/Gy7PoIpv1tAa72IgeSPu1nOs 1zjomKU1JOdxtLhvlxDpJUecOdEaWEm72boBovSfT8biZYTh9w7zGNn5LBeQ+0Ip XsLE5zLFQqMrwvX6BHmnCjjLBfAmOpsWKmkXHpZxgQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekgdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomheplfhoohhs thcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepgfeihfdutdetleejheevkeejtdffueehfffhffefteei teefhedtkedtiedtkeffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 19 Feb 2024 16:57:40 -0500 (EST) In-reply-to: <8734to16tw.fsf@aura.christopherculver.com> Received-SPF: pass client-ip=64.147.123.150; envelope-from=joostkremers@fastmail.fm; helo=wfout7-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316379 Archived-At: On Mon, Feb 19 2024, Christopher Culver via "Emacs development discussions." wrote: > Eli Zaretskii writes: >> I cannot reproduce this. What I see is that Message mode supports >> bidirectional text as expected, including what you describe in the >> previous paragraph regarding right-aligning the RTL text. So please >> tell more what you did by describing in detail the commands you typed. > > I have tried this with a completely virgin Emacs installation, but > Message Mode continues to show less than full support for bidi text. When you compose a new message, is there a line "--text follows this line--" separating the headers and the message text? In my case, there is (I use mu4e) and when I type Arabic text on the line below this text, I get the effect you mention. If I leave an empty line after "--text follows this line--", bidi works as expected. I believe this is due to the interaction of two things: 1. Emacs uses the first word of a paragraph to determine whether the paragraph is ltr or rtl; and 2. Emacs assumes that a paragraph is preceded by an empty line. So if you type rtl text on the line below the "--text follows this line--" separator, Emacs assumes the separator and the text you're typing belong to the same paragraph, and since the first word of this paragraph is from an ltr writing system, the paragraph is displayed ltr. -- Joost Kremers Life has its moments