From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bidi,gmane.emacs.devel Subject: Bidirectional display in GUI sessions Date: Tue, 20 Apr 2010 16:53:57 +0300 Message-ID: <8339yq5ix6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1271772060 23533 80.91.229.12 (20 Apr 2010 14:01:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2010 14:01:00 +0000 (UTC) Cc: emacs-bidi@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Tue Apr 20 16:00:58 2010 connect(): No such file or directory Return-path: Envelope-to: gnu-emacs-bidi@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 1O4E0X-0003DD-DC for gnu-emacs-bidi@m.gmane.org; Tue, 20 Apr 2010 16:00:57 +0200 Original-Received: from localhost ([127.0.0.1]:45068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4E0W-000131-T5 for gnu-emacs-bidi@m.gmane.org; Tue, 20 Apr 2010 10:00:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4Dve-0007F2-NO for emacs-bidi@gnu.org; Tue, 20 Apr 2010 09:55:54 -0400 Original-Received: from [140.186.70.92] (port=55935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4DvZ-0007Cr-Rk for emacs-bidi@gnu.org; Tue, 20 Apr 2010 09:55:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4DvY-00089R-2g for emacs-bidi@gnu.org; Tue, 20 Apr 2010 09:55:49 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:56144) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4DvX-000893-Rz; Tue, 20 Apr 2010 09:55:48 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L1600400H9A6W00@a-mtaout22.012.net.il>; Tue, 20 Apr 2010 16:53:51 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.237.174]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L16000SFH9QIQC0@a-mtaout22.012.net.il>; Tue, 20 Apr 2010 16:53:51 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-bidi@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of Emacs support for multi-directional text." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Errors-To: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bidi:557 gmane.emacs.devel:123915 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). I could only test this on MS-Windows; I have no easy access for development on an X-based machine. Fortunately, with the exception o= f 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. 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... Last, but certainly not least: Thanks to Gerd M=C3=B6llmann for his k= ind 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.