From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105429: New function `string-mark-left-to-right' for handling LRMs. Date: Fri, 12 Aug 2011 11:47:00 -0400 Message-ID: <8762m28wej.fsf@stupidchicken.com> References: <83ei0sy7jk.fsf@gnu.org> <87aabfojr7.fsf@stupidchicken.com> <8362m3xfgz.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313164036 7953 80.91.229.12 (12 Aug 2011 15:47:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2011 15:47:16 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 12 17:47:08 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 1Qrtwx-0000lW-Up for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2011 17:47:08 +0200 Original-Received: from localhost ([::1]:42420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qrtww-0002OG-Tk for ged-emacs-devel@m.gmane.org; Fri, 12 Aug 2011 11:47:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qrtwu-0002NK-Nz for emacs-devel@gnu.org; Fri, 12 Aug 2011 11:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qrtwt-00071e-Qi for emacs-devel@gnu.org; Fri, 12 Aug 2011 11:47:04 -0400 Original-Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]:60392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qrtws-00071N-GE; Fri, 12 Aug 2011 11:47:02 -0400 Original-Received: from furball (dhcp-128-36-14-148.central.yale.edu [128.36.14.148]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p7CFl1xU026249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 12 Aug 2011 11:47:01 -0400 In-Reply-To: <8362m3xfgz.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 12 Aug 2011 10:21:16 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.144 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:143157 Archived-At: Eli Zaretskii writes: > Btw, is there a way to regex-search for a character by its bidi > category? That would make the code more elegant, and probably quite > faster as well. I don't think so, and anyway such a regex-search would still have to go through the functions of mule-cmds.el. A better optimization might be to provide the equivalents of `next-property-change' etc. for char code properties. In practice, testing indicates string-mark-left-to-right has acceptable speed for its present uses in buffer menu and tabulated list mode. Unless a real problem shows up (e.g. when we apply the fix to Gnus), let's revisit this issue later. >> (aref str n) 'bidi-class) '(R AL)) > ^^^^^^^ > Make that '(R AL RLO), since the RLO character overrides the > bidirectional properties of all the following characters with R. OK, committed along with doc changes. >> then the buffer is displayed as 1>[some Arabic text]>, both in the >> mode-line and in the buffer menu. > > I didn't mean the display of the buffer name itself; that is a > separate issue, as discussed here: Was there any resolution on that thread?