From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bidi-display-reordering is now non-nil by default Date: Wed, 24 Aug 2011 12:02:14 +0300 Message-ID: <83wre3gp2h.fsf@gnu.org> References: <4E48D309.6050503@acdlabs.ru> <83hb5jujjs.fsf@gnu.org> <874o1j10zv.fsf@fencepost.gnu.org> <8362lyvcli.fsf@gnu.org> <83k4aasnm9.fsf@gnu.org> <838vqmx9tj.fsf@gnu.org> <83ei0cimdl.fsf@gnu.org> <831uwchrvw.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1314176565 25806 80.91.229.12 (24 Aug 2011 09:02:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Aug 2011 09:02:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 24 11:02:41 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qw9M8-0001AF-6m for ged-emacs-devel@m.gmane.org; Wed, 24 Aug 2011 11:02:40 +0200 Original-Received: from localhost ([::1]:41798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qw9M7-0002Id-N5 for ged-emacs-devel@m.gmane.org; Wed, 24 Aug 2011 05:02:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qw9M4-0002IU-PQ for emacs-devel@gnu.org; Wed, 24 Aug 2011 05:02:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qw9M3-0004pI-NY for emacs-devel@gnu.org; Wed, 24 Aug 2011 05:02:36 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:59504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qw9M3-0004oj-B0 for emacs-devel@gnu.org; Wed, 24 Aug 2011 05:02:35 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LQF00100CDRHK00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Wed, 24 Aug 2011 12:02:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.219.41]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQF000EUD3N4UA0@a-mtaout20.012.net.il>; Wed, 24 Aug 2011 12:02:12 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143562 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Tue, 23 Aug 2011 15:17:29 -0400 > > Switch to buffer: a{data.tex,foo.ada,*scratch*} > > so maybe the {,,,} list should use bidi-string-mark-left-to-right before > the comma. They should probably run each completion candidate through bidi-string-mark-left-to-right, yes. I say "probably" because there's a separate but related issue with buffer and file names that include R2L characters and end in weak or neutral characters: those weak or neutrals will be displayed to the left of the R2L characters, as in "DCBA!" (instead of the more plausible "!DCBA"), and appending the LRM will not cure that. So perhaps we should have a more comprehensive plan for handling these issues before we start sprinkling bidi-string-mark-left-to-right all over the place. It is also possible we should add a more general bidi-string-mark-dwim function, which uses either LRM or RLM depending on the paragraph direction, to avoid additional changes later, when the UI will be localizable.