From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: bidi-display-reordering is now non-nil by default Date: Tue, 02 Aug 2011 09:20:24 +0200 Organization: Organization?!? Message-ID: <87hb6046vb.fsf@fencepost.gnu.org> References: <83fwlqe2xy.fsf@gnu.org> <20110731.005516.149395323.wl@gnu.org> <20110731.082721.451360942.wl@gnu.org> <87d3gp3zkd.fsf@stupidchicken.com> <83oc09auwt.fsf@gnu.org> <87aabskh1u.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312269655 29551 80.91.229.12 (2 Aug 2011 07:20:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 07:20:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 02 09:20:49 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 1Qo9HU-0001NA-BV for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 09:20:48 +0200 Original-Received: from localhost ([::1]:41190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo9HT-0001jT-Dn for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 03:20:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo9HN-0001j9-MI for emacs-devel@gnu.org; Tue, 02 Aug 2011 03:20:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qo9HJ-0001hV-Fz for emacs-devel@gnu.org; Tue, 02 Aug 2011 03:20:41 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:34455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo9HJ-0001hR-6k for emacs-devel@gnu.org; Tue, 02 Aug 2011 03:20:37 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qo9HI-0001Kl-FK for emacs-devel@gnu.org; Tue, 02 Aug 2011 09:20:36 +0200 Original-Received: from p508edf02.dip.t-dialin.net ([80.142.223.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Aug 2011 09:20:36 +0200 Original-Received: from dak by p508edf02.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Aug 2011 09:20:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508edf02.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:enh4zgx1baLbsuUYdyEZe3OrFZo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:142678 Archived-At: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Date: Mon, 01 Aug 2011 22:33:49 +0200 >> >> Would it possibly, perhaps, make sense to switch off the bidi paragraph >> detection stuff if (get major-mode 'mode-class) eq 'special? > > What do you mean by "switch off"? do you mean force paragraphs to be > always left-to-right? > >> These modes aren't meant for editing (generally), so perhaps that >> might solve some problems. > > It should be possible, but: > > . To say something intelligent about this, I'd need someone "in the > know" to explain what `special-mode' really means. I actually > thought about this a day or two ago, but was unable to make up my > mind due to lack of detailed documentation. The ELisp manual says > this about these modes: > > * If this mode is appropriate only for specially-prepared text, then > the major mode command symbol should have a property named > `mode-class' with value `special', put on as follows: > > (put 'funny-mode 'mode-class 'special) > > This tells Emacs that new buffers created while the current buffer > is in Funny mode should not inherit Funny mode, in case the > default value of `major-mode' is `nil'. Modes such as Dired, > Rmail, and Buffer List use this feature. > > Huh? "New buffers created while the current buffer is in Funny > mode"? "Should not inherit Funny mode"? "In case the default > value is non-nil"? I cannot make heads or tails out of this > description, and saying that a few modes use this feature really > doesn't help to understand it. "Funny mode" is a place holder, something like $mode. Anyway, the key point is "specially-prepared", meaning that the skeleton of the text is provided by the mode itself. Given that the standard user interface of Emacs is English, left-to-right mode as a default seems reasonable. Should the specially prepared text be R2L (namely a user interface _not_ in English, or customizable), the mode writer would be aware of it. -- David Kastrup