From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62606: [PATCH] function to align mode-line elements to right Date: Fri, 09 Jun 2023 19:17:25 +0300 Message-ID: <83edmk1uga.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20458"; mail-complaints-to="usenet@ciao.gmane.io" Cc: hugo@heagren.com, 62606@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 09 18:18:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1q7eoY-00052v-Ii for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Jun 2023 18:18:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7eoO-0002t0-50; Fri, 09 Jun 2023 12:18:04 -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 1q7eoM-0002sr-W1 for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 12:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7eoM-0001Su-Mw for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 12:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7eoM-0000rN-5N for bug-gnu-emacs@gnu.org; Fri, 09 Jun 2023 12:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Jun 2023 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62606 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62606-submit@debbugs.gnu.org id=B62606.16863274453258 (code B ref 62606); Fri, 09 Jun 2023 16:18:02 +0000 Original-Received: (at 62606) by debbugs.gnu.org; 9 Jun 2023 16:17:25 +0000 Original-Received: from localhost ([127.0.0.1]:60214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7enl-0000qU-DX for submit@debbugs.gnu.org; Fri, 09 Jun 2023 12:17:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7enj-0000qH-C5 for 62606@debbugs.gnu.org; Fri, 09 Jun 2023 12:17:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7enc-0001MY-Kl; Fri, 09 Jun 2023 12:17:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qmVvdsMCmTfhav3IYVDrzbiTVhR707nDaX24fF5SwHU=; b=msadvWROWRZV Ud+S/5EQZn1+k1VFyBLeMxozm0ib/GYghzPEEZ/Gt7PyNBWHyPlSNK9itL3ECgaSayLsnanAR+OOd /dC5STHLlJxbFtpC5nx8PoCMMo6/XIW+KNL1Elhe2XjajzveDDiPHDL57qCTnxHZN3NXfw/NvGocO mIYnmFbxTI6kQVHOYkd9X7QQQJ41LXsQFd8DrAtMs4MEk+HLZLjNUU9c7MSnzh0EYFm4NlihcqO03 YYma33Vj378RvrvS/6sTGQMLVdEOyr4rA8+riIRiLqYxxPmIifJgZZS+BIdzE+zJb8a/bzycBEqvJ sRKYI0sspyxqCYsO44keRw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7enc-0002KO-0t; Fri, 09 Jun 2023 12:17:16 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263176 Archived-At: > Cc: 62606@debbugs.gnu.org > Date: Fri, 09 Jun 2023 12:03:02 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > [ And now I wonder: can Emacs have R2L modelines? If so, what should > happen in those? ] We don't support that. From display_mode_line: /* FIXME: This should be controlled by a user option. But supporting such an option is not trivial, since the mode line is made up of many separate strings. */ it.paragraph_embedding = L2R; and a more complete rationale in redisplay_tool_bar: /* FIXME: This should be controlled by a user option. But it doesn't make sense to have an R2L tool bar if the menu bar cannot be drawn also R2L, and making the menu bar R2L is tricky due toolkit-specific code that implements it. If an R2L tool bar is ever supported, display_tool_bar_line should also be augmented to call unproduce_glyphs like display_line and display_string do. */ Bottom line: Emacs doesn't support making the UI right-to-left. IMNSHO in IME, supporting that would be a lot of work for very little benefit.