From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.bidi Subject: Re: Bidirectional display in GUI sessions Date: Tue, 20 Apr 2010 12:19:00 -0400 Message-ID: References: <8339yq5ix6.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1271780403 26956 80.91.229.12 (20 Apr 2010 16:20:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2010 16:20:03 +0000 (UTC) Cc: emacs-bidi@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 20 18:20:02 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O4GB6-0008UZ-19 for ged-emacs-devel@m.gmane.org; Tue, 20 Apr 2010 18:20:00 +0200 Original-Received: from localhost ([127.0.0.1]:37615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4GB5-00025b-AX for ged-emacs-devel@m.gmane.org; Tue, 20 Apr 2010 12:19:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4GAU-0001sp-V7 for emacs-devel@gnu.org; Tue, 20 Apr 2010 12:19:23 -0400 Original-Received: from [140.186.70.92] (port=55622 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4GAT-0001sX-Nt for emacs-devel@gnu.org; Tue, 20 Apr 2010 12:19:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4GAS-0001zO-JA for emacs-devel@gnu.org; Tue, 20 Apr 2010 12:19:21 -0400 Original-Received: from tomts16-srv.bellnexxia.net ([209.226.175.4]:57293) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4GAN-0001vu-E5; Tue, 20 Apr 2010 12:19:15 -0400 Original-Received: from toip4.srvr.bell.ca ([209.226.175.87]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20100420161901.OKMY5228.tomts16-srv.bellnexxia.net@toip4.srvr.bell.ca>; Tue, 20 Apr 2010 12:19:01 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEALtqzUtGN5OL/2dsb2JhbACcAHK9XYUPBA Original-Received: from bas1-montreal42-1178047371.dsl.bell.ca (HELO ceviche.home) ([70.55.147.139]) by toip4.srvr.bell.ca with ESMTP; 20 Apr 2010 12:33:39 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id E669A660D2; Tue, 20 Apr 2010 12:19:00 -0400 (EDT) In-Reply-To: <8339yq5ix6.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 20 Apr 2010 16:53:57 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123920 gmane.emacs.bidi:558 Archived-At: > I have committed to the Emacs development trunk revno 99950, which > adds implementation of bidirectional display in GUI sessions (as well > as a few fixes for display of R2L lines on TTYs). Thanks. > I could only test this on MS-Windows; I have no easy access for > development on an X-based machine. Sad to hear. Is there something we could do to fix this problem? > Fortunately, with the exception of one function, all the code is in > terminal-independent parts of Emacs display engine, so it should work > (or break ;-) the same on any type of display. Famout last words. > I hope I didn't break anything in non-bidi sessions. All the changes > are conditioned on variables that are not set unless you set > bidi-display-reordering non-nil. But I was wrong about this in the > past... BTW, I'm now running with (setq-default bidi-display-reordering t) and I recommend everyone do the same to help find bugs in that code. > Last, but certainly not least: Thanks to Gerd M=F6llmann for his kind > guidance and advice which was instrumental in making this happen. > Without his help, I would never have found such a simple and elegant > solution for implementing this feature, being quite ignorant about > internals of the Emacs GUI display. Would it be possible to document the design/insight of this solution somewhere? I.e. distill what you learned from Gerd, so it might help other people get a deeper understanding of the workings and design of the redisplay code. Stefan