From unknown Sun Jun 22 00:00:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10183 <10183@debbugs.gnu.org> To: bug#10183 <10183@debbugs.gnu.org> Subject: Status: small bidi problems in the org mode and in the mini buffer Reply-To: bug#10183 <10183@debbugs.gnu.org> Date: Sun, 22 Jun 2025 07:00:30 +0000 retitle 10183 small bidi problems in the org mode and in the mini buffer reassign 10183 emacs submitter 10183 nabil-82 severity 10183 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 01 13:10:27 2011 Received: (at submit) by debbugs.gnu.org; 1 Dec 2011 18:10:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWB5W-00008G-4X for submit@debbugs.gnu.org; Thu, 01 Dec 2011 13:10:27 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWAT5-0006tU-Qa for submit@debbugs.gnu.org; Thu, 01 Dec 2011 12:30:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWASt-0008VY-Bt for submit@debbugs.gnu.org; Thu, 01 Dec 2011 12:30:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:32922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWASt-0008VU-9w for submit@debbugs.gnu.org; Thu, 01 Dec 2011 12:30:31 -0500 Received: from eggs.gnu.org ([140.186.70.92]:40828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWASn-0004bO-Pt for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 12:30:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWASi-0008Ss-0i for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 12:30:25 -0500 Received: from sam.nabble.com ([216.139.236.26]:39036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWASh-0008Sj-Qr for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 12:30:19 -0500 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RWASg-0004vO-JA for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 09:30:18 -0800 Message-ID: <32897118.post@talk.nabble.com> Date: Thu, 1 Dec 2011 09:30:18 -0800 (PST) From: nabil-82 To: Bug-gnu-emacs@gnu.org Subject: small bidi problems in the org mode and in the mini buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: sjanjal@web.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 01 Dec 2011 13:10:24 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) 2 problems in the org mode: -- 1 - By an RTL-Text the three points of a folded heading appear on the right of the heading (before the star(s)!) - not as expected on the right (at end of the heading) . 2 - When a folded LTR-heading is followed by a RTL-headline. The first one appears on right side (not on the left side) if it is folded. But after typing TAB (to unfold it) it jumps to the left side (the correct side). -- These two problems I didn't have by the older version 24.0.90..=20 The third problem is an old one: -- 3 - In an "RTL-buffer": When I'm searching MY_RTL_TEXT I get in the minibuffer: I-search [MY_RTL_TEXT :[ XX Not: I-search [XX] : MY_RTL_TEXT (XX is the symbol of the rtl-language as example =D8=B9 for arabic) It's a bit confusing when you have to make replacements. --=20 View this message in context: http://old.nabble.com/small-bidi-problems-in-= the-org-mode-and-in-the-mini-buffer-tp32897118p32897118.html Sent from the Emacs - Bugs mailing list archive at Nabble.com. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 01 14:16:23 2011 Received: (at 10183) by debbugs.gnu.org; 1 Dec 2011 19:16:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWC7K-0001iR-Pm for submit@debbugs.gnu.org; Thu, 01 Dec 2011 14:16:23 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWC7H-0001iI-Qt for 10183@debbugs.gnu.org; Thu, 01 Dec 2011 14:16:21 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LVJ00K00GOGS900@a-mtaout23.012.net.il> for 10183@debbugs.gnu.org; Thu, 01 Dec 2011 21:16:07 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.117.62]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVJ00KWGHITFZ80@a-mtaout23.012.net.il>; Thu, 01 Dec 2011 21:16:06 +0200 (IST) Date: Thu, 01 Dec 2011 21:14:59 +0200 From: Eli Zaretskii Subject: Re: bug#10183: small bidi problems in the org mode and in the mini buffer In-reply-to: <32897118.post@talk.nabble.com> To: nabil-82 Message-id: <83k46g3xzg.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <32897118.post@talk.nabble.com> X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 10183 Cc: 10183@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) > Date: Thu, 1 Dec 2011 09:30:18 -0800 (PST) > From: nabil-82 >=20 > 1 - By an RTL-Text the three points of a folded heading appear on t= he right > of the heading (before the star(s)!) - not as expected on the right= (at end > of the heading) . I seem to be unable to reproduce this. Please show an example of an Org file where this happens. > 2 - When a folded LTR-heading is followed by a RTL-headline. The fi= rst one > appears on right side (not on the left side) if it is folded. But a= fter > typing TAB (to unfold it) it jumps to the left side (the correct si= de). Again, I seem to be unable to reproduce. Please show an example file= . > 3 - In an "RTL-buffer": When I'm searching MY_RTL_TEXT I get in the > minibuffer: >=20 > I-search [MY_RTL_TEXT :[ XX >=20 > Not: > I-search [XX] : MY_RTL_TEXT > (XX is the symbol of the rtl-language as example =D8=B9 for arabic= ) I don't understand: the stock I-search invoked by C-s does not show the search string in brackets. Did you use some optional feature? I= f so, please show how to reproduce this starting with "emacs -Q". From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 01 14:27:21 2011 Received: (at 10183) by debbugs.gnu.org; 1 Dec 2011 19:27:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWCHw-0001y4-KY for submit@debbugs.gnu.org; Thu, 01 Dec 2011 14:27:20 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWCHu-0001xv-BS for 10183@debbugs.gnu.org; Thu, 01 Dec 2011 14:27:19 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LVJ00M00HVNER00@a-mtaout22.012.net.il> for 10183@debbugs.gnu.org; Thu, 01 Dec 2011 21:27:01 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.117.62]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVJ00K6NI10U7M0@a-mtaout22.012.net.il>; Thu, 01 Dec 2011 21:27:01 +0200 (IST) Date: Thu, 01 Dec 2011 21:25:54 +0200 From: Eli Zaretskii Subject: Re: bug#10183: small bidi problems in the org mode and in the mini buffer In-reply-to: <83k46g3xzg.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: sjanjal@web.de Message-id: <83ipm03xh9.fsf@gnu.org> References: <32897118.post@talk.nabble.com> <83k46g3xzg.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 10183 Cc: 10183@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Thu, 01 Dec 2011 21:14:59 +0200 > From: Eli Zaretskii > Cc: 10183@debbugs.gnu.org > > > Date: Thu, 1 Dec 2011 09:30:18 -0800 (PST) > > From: nabil-82 > > > > 1 - By an RTL-Text the three points of a folded heading appear on the right > > of the heading (before the star(s)!) - not as expected on the right (at end > > of the heading) . > > I seem to be unable to reproduce this. Please show an example of an > Org file where this happens. > > > 2 - When a folded LTR-heading is followed by a RTL-headline. The first one > > appears on right side (not on the left side) if it is folded. But after > > typing TAB (to unfold it) it jumps to the left side (the correct side). > > Again, I seem to be unable to reproduce. Please show an example file. One more question: are you using the version of Org Mode that comes with Emacs? Or are you using some other version installed separately? From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 01 17:14:11 2011 Received: (at submit) by debbugs.gnu.org; 1 Dec 2011 22:14:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWEtP-0005rA-Gn for submit@debbugs.gnu.org; Thu, 01 Dec 2011 17:14:11 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWEtN-0005r3-7i for submit@debbugs.gnu.org; Thu, 01 Dec 2011 17:14:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWEtA-0002WS-Lt for submit@debbugs.gnu.org; Thu, 01 Dec 2011 17:13:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:59204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWEtA-0002WO-KV for submit@debbugs.gnu.org; Thu, 01 Dec 2011 17:13:56 -0500 Received: from eggs.gnu.org ([140.186.70.92]:39617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWEt9-0003jm-Mb for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 17:13:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWEt7-0002Vx-Fj for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 17:13:55 -0500 Received: from sam.nabble.com ([216.139.236.26]:34963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWEt7-0002Vl-6B for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 17:13:53 -0500 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RWEt6-0007tg-Pq for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 14:13:52 -0800 Message-ID: <32898740.post@talk.nabble.com> Date: Thu, 1 Dec 2011 14:13:52 -0800 (PST) From: nabil-82 To: Bug-gnu-emacs@gnu.org Subject: Re: bug#10183: small bidi problems in the org mode and in the mini buffer In-Reply-To: <83ipm03xh9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: sjanjal@web.de References: <32897118.post@talk.nabble.com> <83k46g3xzg.fsf@gnu.org> <83ipm03xh9.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) | The org Problems | -------------------- (I'm using here the "hebrew" input method for rtl-text) Let's take o1.org, in the ("SHOW ALL")- form =20 --- o1.org --- * =D7=90 =D7=90 e * e --- o1.org --- (the logical order is: * - space - Alef - newline -=20 Alef - newline -=20 newline -=20 * - space - e - newline -=20 e - newline ) So, everything is fine. But if both items are folded: a) I see this by starting with "emacs": --- o1.org --- =D7=90 *... * e... --- o1.org --- So, we have problems: The first heading is not on the right and the three points are not on the left. By typing TAB in the first heading it jumps to correct side (the righ= t side and the points disappear). I expect this - and I get it by 24.0.90: --- o1.org --- ...=D7=90 * * e... --- o1.org --- - I've just tested it with emacs -Q: org doesn't know there at all that the line in arabic or hebrew starts from right. It writes the words correctly but doesn't realize that it is an rtl-paragraph. So, I see this by starting with "emacs -Q" --- o1.org --- * =D7=90... * e... --- o1.org --- |the search problem | --------------------- Let's say we have the file h.txt with just one hebrew or arabic character. --- h.txt --- =D7=90 --- h.txt --- If you type C-s you will get in the minibuffer --- minibuffer --- I-search [Ayin]: --- minibuffer --- If you type there Alef you will get --- minibuffer --- I-search [Alef :[Ayin --- minibuffer --- and not --- minibuffer --- I-search [Ayin]: Alef --- minibuffer --- I hope the problems are so clear? --=20 View this message in context: http://old.nabble.com/small-bidi-problems-in-= the-org-mode-and-in-the-mini-buffer-tp32897118p32898740.html Sent from the Emacs - Bugs mailing list archive at Nabble.com. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 02 01:27:51 2011 Received: (at submit) by debbugs.gnu.org; 2 Dec 2011 06:27:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWMb6-0000VD-S1 for submit@debbugs.gnu.org; Fri, 02 Dec 2011 01:27:50 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWMb4-0000V3-5Z for submit@debbugs.gnu.org; Fri, 02 Dec 2011 01:27:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWMaq-0007CQ-6M for submit@debbugs.gnu.org; Fri, 02 Dec 2011 01:27:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:42323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWMaq-0007CM-1N for submit@debbugs.gnu.org; Fri, 02 Dec 2011 01:27:32 -0500 Received: from eggs.gnu.org ([140.186.70.92]:33564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWMap-0004eL-39 for Bug-gnu-emacs@gnu.org; Fri, 02 Dec 2011 01:27:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWMan-0007Bg-P9 for Bug-gnu-emacs@gnu.org; Fri, 02 Dec 2011 01:27:31 -0500 Received: from sam.nabble.com ([216.139.236.26]:43095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWMan-0007BD-LQ for Bug-gnu-emacs@gnu.org; Fri, 02 Dec 2011 01:27:29 -0500 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RWMal-0004Lk-Sr for Bug-gnu-emacs@gnu.org; Thu, 01 Dec 2011 22:27:27 -0800 Message-ID: <32900561.post@talk.nabble.com> Date: Thu, 1 Dec 2011 22:27:27 -0800 (PST) From: nabil-82 To: Bug-gnu-emacs@gnu.org Subject: Re: bug#10183: small bidi problems in the org mode and in the mini buffer In-Reply-To: <83ipm03xh9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sjanjal@web.de References: <32897118.post@talk.nabble.com> <83k46g3xzg.fsf@gnu.org> <83ipm03xh9.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Eli Zaretskii wrote: > >> Date: Thu, 01 Dec 2011 21:14:59 +0200 >> From: Eli Zaretskii >> Cc: 10183@debbugs.gnu.org >> >> > Date: Thu, 1 Dec 2011 09:30:18 -0800 (PST) >> > From: nabil-82 >> > >> > 1 - By an RTL-Text the three points of a folded heading appear on the >> right >> > of the heading (before the star(s)!) - not as expected on the right (at >> end >> > of the heading) . >> >> I seem to be unable to reproduce this. Please show an example of an >> Org file where this happens. >> >> > 2 - When a folded LTR-heading is followed by a RTL-headline. The first >> one >> > appears on right side (not on the left side) if it is folded. But after >> > typing TAB (to unfold it) it jumps to the left side (the correct side). >> >> Again, I seem to be unable to reproduce. Please show an example file. > > One more question: are you using the version of Org Mode that comes > with Emacs? Or are you using some other version installed separately? > > > > > I've forgotten: The Problems of my last long email ( Dec 01, 2011; 11:13pm with the files o1.org and k.txt) were produced with the version that comes with emacs. -- View this message in context: http://old.nabble.com/small-bidi-problems-in-the-org-mode-and-in-the-mini-buffer-tp32897118p32900561.html Sent from the Emacs - Bugs mailing list archive at Nabble.com. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 02 05:44:13 2011 Received: (at 10183) by debbugs.gnu.org; 2 Dec 2011 10:44:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWQbF-0007LM-5W for submit@debbugs.gnu.org; Fri, 02 Dec 2011 05:44:13 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWQbB-0007LA-Jr for 10183@debbugs.gnu.org; Fri, 02 Dec 2011 05:44:11 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LVK00700OAQFY00@a-mtaout22.012.net.il> for 10183@debbugs.gnu.org; Fri, 02 Dec 2011 12:43:54 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.120.75]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVK005BSOH52XX0@a-mtaout22.012.net.il>; Fri, 02 Dec 2011 12:43:54 +0200 (IST) Date: Fri, 02 Dec 2011 12:42:48 +0200 From: Eli Zaretskii Subject: Re: bug#10183: small bidi problems in the org mode and in the mini buffer In-reply-to: <32897118.post@talk.nabble.com> To: nabil-82 Message-id: <83hb1jcl07.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <32897118.post@talk.nabble.com> X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 10183 Cc: 10183@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Date: Thu, 1 Dec 2011 09:30:18 -0800 (PST) > From: nabil-82 >=20 > -- > 3 - In an "RTL-buffer": When I'm searching MY_RTL_TEXT I get in the > minibuffer: >=20 > I-search [MY_RTL_TEXT :[ XX >=20 > Not: > I-search [XX] : MY_RTL_TEXT > (XX is the symbol of the rtl-language as example =D8=B9 for arabic= ) > It's a bit confusing when you have to make replacements. I understand that "[XX]" is the mnemonic of the current input method. If so, this problem is fixed in revision 106577 on the trunk. The patch is below (note that isearch.el is preloaded into Emacs, so you will have to rebuild it for this fix to take effect). Thanks. =3D=3D=3D modified file 'lisp/ChangeLog' --- lisp/ChangeLog=092011-12-02 10:19:49 +0000 +++ lisp/ChangeLog=092011-12-02 10:35:17 +0000 @@ -1,3 +1,8 @@ +2011-12-02 Eli Zaretskii + +=09* isearch.el (isearch-message-prefix): Run the input method part +=09of the prompt through bidi-string-mark-left-to-right. (Bug#10183= ) + 2011-12-02 Juri Linkov =20 =09* isearch.el (isearch-occur): Use `word-search-regexp' for =3D=3D=3D modified file 'lisp/isearch.el' --- lisp/isearch.el=092011-12-02 10:19:49 +0000 +++ lisp/isearch.el=092011-12-02 10:37:53 +0000 @@ -2225,7 +2225,11 @@ If there is no completion possible, say=20 =09=09 (if nonincremental "search" "I-search") =09=09 (if isearch-forward "" " backward") =09=09 (if current-input-method -=09=09 (concat " [" current-input-method-title "]: ") +=09=09 ;; Input methods for RTL languages use RTL +=09=09 ;; characters for their title, and that messes +=09=09 ;; up the display of search text after the prompt. +=09=09 (bidi-string-mark-left-to-right +=09=09=09(concat " [" current-input-method-title "]: ")) =09=09 ": ") =09=09 ))) (propertize (concat (upcase (substring m 0 1)) (substring m 1)) From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 02 13:20:18 2011 Received: (at submit) by debbugs.gnu.org; 2 Dec 2011 18:20:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWXib-0004se-TD for submit@debbugs.gnu.org; Fri, 02 Dec 2011 13:20:18 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWXiZ-0004sW-3f for submit@debbugs.gnu.org; Fri, 02 Dec 2011 13:20:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWXiH-0000mQ-Ui for submit@debbugs.gnu.org; Fri, 02 Dec 2011 13:19:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:40811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWXiH-0000mM-TH for submit@debbugs.gnu.org; Fri, 02 Dec 2011 13:19:57 -0500 Received: from eggs.gnu.org ([140.186.70.92]:38707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWXiG-0006uc-Vb for Bug-gnu-emacs@gnu.org; Fri, 02 Dec 2011 13:19:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWXiF-0000mC-32 for Bug-gnu-emacs@gnu.org; Fri, 02 Dec 2011 13:19:56 -0500 Received: from sam.nabble.com ([216.139.236.26]:50291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWXiE-0000m4-SO for Bug-gnu-emacs@gnu.org; Fri, 02 Dec 2011 13:19:55 -0500 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RWXi8-0005Ix-DT for Bug-gnu-emacs@gnu.org; Fri, 02 Dec 2011 10:19:48 -0800 Message-ID: <32904166.post@talk.nabble.com> Date: Fri, 2 Dec 2011 10:19:48 -0800 (PST) From: nabil-82 To: Bug-gnu-emacs@gnu.org Subject: Re: bug#10183: small bidi problems in the org mode and in the mini buffer In-Reply-To: <83hb1jcl07.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sjanjal@web.de References: <32897118.post@talk.nabble.com> <83hb1jcl07.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Eli Zaretskii wrote: > > I understand that "[XX]" is the mnemonic of the current input method. > > If so, this problem is fixed in revision 106577 on the trunk. The > patch is below (note that isearch.el is preloaded into Emacs, so you > will have to rebuild it for this fix to take effect). > > Thanks. > > > === modified file 'lisp/ChangeLog' > --- lisp/ChangeLog 2011-12-02 10:19:49 +0000 > +++ lisp/ChangeLog 2011-12-02 10:35:17 +0000 > @@ -1,3 +1,8 @@ > +2011-12-02 Eli Zaretskii > + > + * isearch.el (isearch-message-prefix): Run the input method part > + of the prompt through bidi-string-mark-left-to-right. (Bug#10183) > + > 2011-12-02 Juri Linkov > > * isearch.el (isearch-occur): Use `word-search-regexp' for > > === modified file 'lisp/isearch.el' > --- lisp/isearch.el 2011-12-02 10:19:49 +0000 > +++ lisp/isearch.el 2011-12-02 10:37:53 +0000 > @@ -2225,7 +2225,11 @@ If there is no completion possible, say > (if nonincremental "search" "I-search") > (if isearch-forward "" " backward") > (if current-input-method > - (concat " [" current-input-method-title "]: ") > + ;; Input methods for RTL languages use RTL > + ;; characters for their title, and that messes > + ;; up the display of search text after the prompt. > + (bidi-string-mark-left-to-right > + (concat " [" current-input-method-title "]: ")) > ": ") > ))) > (propertize (concat (upcase (substring m 0 1)) (substring m 1)) > > > > > > > Thanks. This problem is solved. -- View this message in context: http://old.nabble.com/small-bidi-problems-in-the-org-mode-and-in-the-mini-buffer-tp32897118p32904166.html Sent from the Emacs - Bugs mailing list archive at Nabble.com. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 03 03:13:55 2011 Received: (at 10183-done) by debbugs.gnu.org; 3 Dec 2011 08:13:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWkjK-0001Cx-UV for submit@debbugs.gnu.org; Sat, 03 Dec 2011 03:13:55 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWkjI-0001Co-1F for 10183-done@debbugs.gnu.org; Sat, 03 Dec 2011 03:13:53 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LVM00I00C1MFZ00@a-mtaout20.012.net.il> for 10183-done@debbugs.gnu.org; Sat, 03 Dec 2011 10:13:31 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.123.99]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVM00HURC6IEJF0@a-mtaout20.012.net.il>; Sat, 03 Dec 2011 10:13:31 +0200 (IST) Date: Sat, 03 Dec 2011 10:12:26 +0200 From: Eli Zaretskii Subject: Re: bug#10183: small bidi problems in the org mode and in the mini buffer In-reply-to: <32898740.post@talk.nabble.com> To: nabil-82 Message-id: <831usmcbv9.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <32897118.post@talk.nabble.com> <83k46g3xzg.fsf@gnu.org> <83ipm03xh9.fsf@gnu.org> <32898740.post@talk.nabble.com> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 10183-done Cc: 10183-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Thu, 1 Dec 2011 14:13:52 -0800 (PST) > From: nabil-82 >=20 > Let's take o1.org, in the ("SHOW ALL")- form =20 > --- o1.org --- > * =D7=90 > =D7=90 >=20 > e * > e > --- o1.org --- >=20 > (the logical order is: > * - space - Alef - newline -=20 > Alef - newline -=20 > newline -=20 > * - space - e - newline -=20 > e - newline ) >=20 > So, everything is fine. But if both items are folded: >=20 > a) I see this by starting with "emacs": > --- o1.org --- > =D7=90 *... > * e... > --- o1.org --- > So, we have problems: > The first heading is not on the right and the three points are not = on the > left. By typing TAB in the first heading it jumps to correct side (= the right > side and the points disappear). This bug should be fixed in revision 106587 on the trunk. The patch appears near the end of this message. This completes the solution of the problems described in the original report, so I'm closing the bug. In the future, please file separate bug reports about unrelated problems. > I expect this - and I get it by 24.0.90: >=20 > --- o1.org --- > ...=D7=90 * > * e... > --- o1.org --- I introduced a display optimization between 24.0.90 and 24.0.91, whic= h made Org Mode much faster, but it also introduced this bug, now fixed= . > - I've just tested it with emacs -Q: > org doesn't know there at all that the line in arabic or hebrew sta= rts from > right. It writes the words correctly but doesn't realize that it is= an > rtl-paragraph. By default, Org Mode forces left-to-right paragraph direction. (I guess you have bidi-paragraph-direction reset to nil somewhere.) Thi= s is done on purpose: Org buffers can look and behave in confusing ways when the paragraph direction of the heading lines is sometimes LTR an= d sometimes RTL. Some of the more advanced Org features may not live happily with this. So I recommend sticking to the default LTR paragraph direction in Org buffers. =3D=3D=3D modified file 'src/ChangeLog' --- src/ChangeLog=092011-12-02 10:19:49 +0000 +++ src/ChangeLog=092011-12-03 07:59:23 +0000 @@ -1,3 +1,9 @@ +2011-12-03 Eli Zaretskii + +=09* xdisp.c (handle_invisible_prop): If the invisible text ends jus= t +=09before a newline, prepare the bidi iterator for consuming the +=09newline, and keep the current paragraph direction. (Bug#10183) + 2011-12-02 Juri Linkov =20 =09* search.c (Fword_search_regexp): New Lisp function created from =3D=3D=3D modified file 'src/xdisp.c' --- src/xdisp.c=092011-11-27 04:43:11 +0000 +++ src/xdisp.c=092011-12-03 07:59:23 +0000 @@ -4093,26 +4093,37 @@ handle_invisible_prop (struct it *it) =09 if (it->bidi_p && newpos < ZV) =09 { =09 EMACS_INT bpos =3D CHAR_TO_BYTE (newpos); - -=09 if (FETCH_BYTE (bpos) =3D=3D '\n' -=09=09 || (newpos > BEGV && FETCH_BYTE (bpos - 1) =3D=3D '\n')) +=09 int on_newline =3D FETCH_BYTE (bpos) =3D=3D '\n'; +=09 int after_newline =3D +=09=09newpos <=3D BEGV || FETCH_BYTE (bpos - 1) =3D=3D '\n'; + +=09 /* If the invisible text ends on a newline or on a +=09=09 character after a newline, we can avoid the costly, +=09=09 character by character, bidi iteration to NEWPOS, and +=09=09 instead simply reseat the iterator there. That's +=09=09 because all bidi reordering information is tossed at +=09=09 the newline. This is a big win for modes that hide +=09=09 complete lines, like Outline, Org, etc. */ +=09 if (on_newline || after_newline) =09=09{ -=09=09 /* If the invisible text ends on a newline or the -=09=09 character after a newline, we can avoid the -=09=09 costly, character by character, bidi iteration to -=09=09 newpos, and instead simply reseat the iterator -=09=09 there. That's because all bidi reordering -=09=09 information is tossed at the newline. This is a -=09=09 big win for modes that hide complete lines, like -=09=09 Outline, Org, etc. (Implementation note: the -=09=09 call to reseat_1 is necessary, because it signals -=09=09 to the bidi iterator that it needs to reinit its -=09=09 internal information when the next element for -=09=09 display is requested. */ =09=09 struct text_pos tpos; +=09=09 bidi_dir_t pdir =3D it->bidi_it.paragraph_dir; =20 =09=09 SET_TEXT_POS (tpos, newpos, bpos); =09=09 reseat_1 (it, tpos, 0); +=09=09 /* If we reseat on a newline, we need to prep the +=09=09 bidi iterator for advancing to the next character +=09=09 after the newline, keeping the current paragraph +=09=09 direction (so that PRODUCE_GLYPHS does TRT wrt +=09=09 prepending/appending glyphs to a glyph row). */ +=09=09 if (on_newline) +=09=09 { +=09=09 it->bidi_it.first_elt =3D 0; +=09=09 it->bidi_it.paragraph_dir =3D pdir; +=09=09 it->bidi_it.ch =3D '\n'; +=09=09 it->bidi_it.nchars =3D 1; +=09=09 it->bidi_it.ch_len =3D 1; +=09=09 } =09=09} =09 else=09/* Must use the slow method. */ =09=09{ @@ -4121,11 +4132,11 @@ handle_invisible_prop (struct it *it) =09=09 non-base embedding level. Therefore, we need to =09=09 skip invisible text using the bidi iterator, =09=09 starting at IT's current position, until we find -=09=09 ourselves outside the invisible text. Skipping -=09=09 invisible text _after_ bidi iteration avoids -=09=09 affecting the visual order of the displayed text -=09=09 when invisible properties are added or -=09=09 removed. */ +=09=09 ourselves outside of the invisible text. +=09=09 Skipping invisible text _after_ bidi iteration +=09=09 avoids affecting the visual order of the +=09=09 displayed text when invisible properties are +=09=09 added or removed. */ =09=09 if (it->bidi_it.first_elt && it->bidi_it.charpos < ZV) =09=09 { =09=09 /* If we were `reseat'ed to a new paragraph, From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 04 03:35:39 2011 Received: (at submit) by debbugs.gnu.org; 4 Dec 2011 08:35:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RX7Xv-0003a1-5m for submit@debbugs.gnu.org; Sun, 04 Dec 2011 03:35:39 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RX7Xt-0003Zv-A3 for submit@debbugs.gnu.org; Sun, 04 Dec 2011 03:35:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RX7XS-0006xB-F7 for submit@debbugs.gnu.org; Sun, 04 Dec 2011 03:35:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:46744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RX7XS-0006x7-Cl for submit@debbugs.gnu.org; Sun, 04 Dec 2011 03:35:10 -0500 Received: from eggs.gnu.org ([140.186.70.92]:33744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RX7XR-0003Jh-7R for Bug-gnu-emacs@gnu.org; Sun, 04 Dec 2011 03:35:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RX7XQ-0006wN-2L for Bug-gnu-emacs@gnu.org; Sun, 04 Dec 2011 03:35:09 -0500 Received: from sam.nabble.com ([216.139.236.26]:50632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RX7XP-0006vz-Ux for Bug-gnu-emacs@gnu.org; Sun, 04 Dec 2011 03:35:08 -0500 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RX7XO-0003NM-Qu for Bug-gnu-emacs@gnu.org; Sun, 04 Dec 2011 00:35:06 -0800 Message-ID: <32911148.post@talk.nabble.com> Date: Sun, 4 Dec 2011 00:35:06 -0800 (PST) From: nabil-82 To: Bug-gnu-emacs@gnu.org Subject: Re: bug#10183: small bidi problems in the org mode and in the mini buffer In-Reply-To: <831usmcbv9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sjanjal@web.de References: <32897118.post@talk.nabble.com> <83k46g3xzg.fsf@gnu.org> <83ipm03xh9.fsf@gnu.org> <32898740.post@talk.nabble.com> <831usmcbv9.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Thanks! It has worked. -- View this message in context: http://old.nabble.com/small-bidi-problems-in-the-org-mode-and-in-the-mini-buffer-tp32897118p32911148.html Sent from the Emacs - Bugs mailing list archive at Nabble.com. From unknown Sun Jun 22 00:00:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 01 Jan 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator