From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Beck Newsgroups: gmane.emacs.bugs Subject: bug#9219: 24.0.50; bidi switches to R-to-L when I don't want it to Date: Mon, 01 Aug 2011 21:59:50 +0200 Message-ID: <87ei14vr61.fsf@sophokles.streitblatt.de> References: <87r555vtmr.fsf@sophokles.streitblatt.de> <83ipqhaqnt.fsf@gnu.org> 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 1312228914 16740 80.91.229.12 (1 Aug 2011 20:01:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Aug 2011 20:01:54 +0000 (UTC) Cc: 9219@debbugs.gnu.org, Florian Beck To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 01 22:01:46 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1QnygL-0005LH-KU for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Aug 2011 22:01:45 +0200 Original-Received: from localhost ([::1]:41431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnygL-0000Mi-7q for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Aug 2011 16:01:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnygG-0000M0-2h for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2011 16:01:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QnygE-0006Py-MI for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2011 16:01:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QnygE-0006PE-Ki for bug-gnu-emacs@gnu.org; Mon, 01 Aug 2011 16:01:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qnygb-0004up-Qp; Mon, 01 Aug 2011 16:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Florian Beck Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Aug 2011 20:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9219-submit@debbugs.gnu.org id=B9219.131222889418860 (code B ref 9219); Mon, 01 Aug 2011 20:02:01 +0000 Original-Received: (at 9219) by debbugs.gnu.org; 1 Aug 2011 20:01:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QnygA-0004u8-BW for submit@debbugs.gnu.org; Mon, 01 Aug 2011 16:01:34 -0400 Original-Received: from mo-p05-ob.rzone.de ([81.169.146.182]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qnyg7-0004u0-TV for 9219@debbugs.gnu.org; Mon, 01 Aug 2011 16:01:33 -0400 X-RZG-AUTH: :KmALZ0mpdbGonPxw7gDkop508XQjelhLxGYn4B74/iddlkME3ssvHN/NVn+dtQ6oeN6QE6KR+Yw= X-RZG-CLASS-ID: mo05 Original-Received: from flo-laptop (p54993F82.dip.t-dialin.net [84.153.63.130]) by smtp.strato.de (klopstock mo46) (RZmta 26.2) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id D01044n71Hn9VF ; Mon, 1 Aug 2011 21:59:52 +0200 (MEST) In-Reply-To: <83ipqhaqnt.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 01 Aug 2011 22:16:22 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 01 Aug 2011 16:02:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49769 Archived-At: Eli Zaretskii writes: >> From: Florian Beck >> Date: Mon, 01 Aug 2011 21:06:36 +0200 >>=20 >> Occasinally I use =D7=90 (x5d0) at the beginning of a paragraph (as a ma= rker >> for some quite but not completly unrelated thought, cf. Agamben). >>=20 >> This makes emacs display the buffer aligned to the right (correctly, as >> for the docstring of `bidi-paragraph-direction'), which is not what I wa= nt. > > What _do_ you want? As in a left-to-right paragraph. A more common example would be someone writing an english article and starting not only a sentence but a paragraph with a hebrew (or arabic or thaana) term. Rare? Sure, but perfectly reasonably. >> There are various workarounds (setting above variable, disabling bidi >> reordering, using =E2=84=B5 (ALEF SYMBOL x2135) or giving up that marking >> scheme) > > There's one other method: Precede the =D7=90 with a special character LRM > (C-x 8 RET LEFT-TO-RIGHT MARK RET). This will make the paragraph > left-to-right, but only that one paragraph. It's in the manual. Does > this do what you want, by any chance? This works, thanks. BTW, I'm reporting my experience with running bidi enabled emacs on my text files. I found the section in the manual easily enough. But if I wouldn't read emacs-devel, I'd have no idea what was going on. > >> but there should be a way to indicate the direction of a specific >> paragraph, shouldn't there? > > If by "indicate" you mean tell Emacs that this single paragraph has a > certain direction, then using LRM resp RLM is that way. Yes. But there is one more thing: Let A be a alef, M the marker and | the c= ursor. Say I have a paragraph displayed as |A blah blah Now I insert the left-to-right mark. This results in: AM blah blah which seems =E2=80=A6 weird. The marker is not part of the word, so it shou= ld be to the left in l-to-r paragraphs. --=20 Florian Beck