From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs 24's forward-char vs right-char behavior Date: Wed, 25 Apr 2012 11:50:53 +0300 Message-ID: <83aa20fb4i.fsf@gnu.org> References: <379c8837-79c2-4692-8103-0bfa473f221e@wp13g2000pbb.googlegroups.com> <6251ec09-a82e-4843-9b52-1074dc20eaf1@a8g2000pbe.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1335343857 29262 80.91.229.3 (25 Apr 2012 08:50:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2012 08:50:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 25 10:50:56 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SMxw8-00081R-2E for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 10:50:56 +0200 Original-Received: from localhost ([::1]:45328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMxw7-0001gz-Dz for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 04:50:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMxw2-0001gu-0m for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 04:50:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMxvx-0001zs-Bd for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 04:50:49 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:36469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMxvx-0001zS-3G for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 04:50:45 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M31008001RGSC00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 11:50:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.249.186]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M31008S91WCN350@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 11:50:36 +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.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84628 Archived-At: > From: Joost Kremers > Date: 25 Apr 2012 08:32:36 GMT >=20 > i have no idea how difficult it would be to make right/left-char al= ways > move to the right/left even in cases of mixed paragraphs, but i sus= pect it > wouldn't be easy to get it right. i'd involve checking if right/lef= t-char > happens to move over a direction switch and if so, searching > forward/backward to find the buffer position where the direction sw= itches > again and jump there. Yes, it's not easy at all. Especially if you think about such complications as moving cursor with the Shift key pressed, which mark= s the region you move across. With the visual cursor motion, the inten= t of the user wrt which buffer positions should be included in the region is ambiguous. > the difference is with paragraphs that are completely l2r or r2l. c= &p the > following into an empty emacs buffer (or put blank lines before and= after): > =D9=83=D8=A7=D9=86=D8=AA =D8=A7=D9=84=D8=AE=D8=A8=D8=A7=D8=B2=D8= =A9 =D8=AA=D8=AE=D8=A8=D8=B2 =D8=A3=D9=81=D8=B6=D9=84 =D8=AE=D8=A8= =D8=B2 =D9=81=D9=8A =D8=A7=D9=84=D9=85=D8=AF=D9=8A=D9=86=D8=A9 =D9= =88=D9=84=D8=B0=D9=84=D9=83 =D8=A3=D8=AD=D8=A8=D9=87=D8=A7 =D8=A7= =D9=84=D8=AC=D9=85=D9=8A=D8=B9. =D9=83=D8=A7=D9=86=D8=AA =D8=AA=D8= =AE=D8=B1=D8=AC > =D8=A7=D9=84=D8=AE=D8=A8=D8=B2 =D8=A7=D9=84=D8=B7=D8=A7=D8=B2=D8= =AC =D9=85=D9=86 =D9=81=D8=B1=D9=86=D9=87=D8=A7 =D8=A7=D9=84=D9=83= =D8=A8=D9=8A=D8=B1 =D9=83=D9=84 =D8=B5=D8=A8=D8=A7=D8=AD. =D9=83=D8= =A7=D9=86=D8=AA =D8=B1=D8=A7=D8=A6=D8=AD=D8=AA=D9=87 =D8=AA=D8=B9= =D9=85=D9=8F =D9=81=D9=8A =D8=AC=D9=85=D9=8A=D8=B9 =D8=A3=D9=86=D8= =AD=D8=A7=D8=A1 > =D8=A7=D9=84=D8=B4=D8=A7=D8=B1=D8=B9. > the text will be right-aligned, as it's an all-arabic paragraph. More accurately, a paragraph is considered right-to-left if its first strong directional character (after skipping punctuation, digits, etc.) is R2L.