From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Side Windows Date: Wed, 05 Oct 2016 13:35:17 +0300 Message-ID: <83r37vkrru.fsf@gnu.org> References: <57E39F4C.7010208@gmx.at> <83wpi3c8op.fsf@gnu.org> <57E6CE9F.603@gmx.at> <83k2e1ayk0.fsf@gnu.org> <57F4BC4A.1050009@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1475663782 21736 195.159.176.226 (5 Oct 2016 10:36:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2016 10:36:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 05 12:36:18 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brjYf-00052M-NK for ged-emacs-devel@m.gmane.org; Wed, 05 Oct 2016 12:36:17 +0200 Original-Received: from localhost ([::1]:47858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brjYe-0003Km-8w for ged-emacs-devel@m.gmane.org; Wed, 05 Oct 2016 06:36:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brjXy-0003KS-H1 for emacs-devel@gnu.org; Wed, 05 Oct 2016 06:35:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brjXt-0003MM-TM for emacs-devel@gnu.org; Wed, 05 Oct 2016 06:35:34 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brjXt-0003Lx-Pz; Wed, 05 Oct 2016 06:35:29 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4851 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1brjXq-0008BI-9m; Wed, 05 Oct 2016 06:35:28 -0400 In-reply-to: <57F4BC4A.1050009@gmx.at> (message from martin rudalics on Wed, 05 Oct 2016 10:39:38 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207999 Archived-At: > Date: Wed, 05 Oct 2016 10:39:38 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > >> Personally, I think that such layout decisions should be made before the > >> first side window is created. > > > > That might be impossible in the general case, because the same window > > arrangement could be used for displaying buffers of different > > directions. One example is an email client that shows messages in the > > main window. > > I now committed my changes. The option to change the direction of side > windows is called `window-sides-reversed' and allows to change the > direction permanently or have it depend on the frame's main window. Thank you! > >> I doubt that you change the menubar layout whenever you switch > >> `bidi-paragraph-direction'. > > > > Some applications out there actually do that. Emacs doesn't, but only > > because I deliberately decided it wasn't TRT (there's a FIXME comment > > about that in the sources). Menu bars are different, because they are > > not really associated with any particular window, they are associated > > with a frame. > > Well, the situation with side windows is not that much different. It could be similar or different, depending on the application. > You could change the menubar layout whenever the selected > (non-minibuffer) window or all windows on a frame show right-to-left > text. That causes an annoying direction switches. When I worked on bidi, I decided to postpone changing the directionality of the menu bar and tool bar until such time as we have infrastructure to display their labels in languages other than English. IMO, having the menu/tool bar displayed R2L only makes sense when the labels are in R2L script. > > I think we should at least allow for such a behavior as an option. > > Please test the new option. As a side effect I also added a completely > new command ‘window-swap-states’ which could be of general use. Thanks, I will, but it might take some time until I get to that. Too many things on my plate right now.