[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bidi-display-reordering is now non-nil by default
From: |
David Kastrup |
Subject: |
Re: bidi-display-reordering is now non-nil by default |
Date: |
Tue, 02 Aug 2011 09:20:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> From: Lars Ingebrigtsen <address@hidden>
>> 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
- Re: bidi-display-reordering is now non-nil by default, Chong Yidong, 2011/08/01
- Re: bidi-display-reordering is now non-nil by default, Lars Magne Ingebrigtsen, 2011/08/02
- Re: bidi-display-reordering is now non-nil by default, Eli Zaretskii, 2011/08/02
- Re: bidi-display-reordering is now non-nil by default, Lars Magne Ingebrigtsen, 2011/08/02
- Re: bidi-display-reordering is now non-nil by default, Eli Zaretskii, 2011/08/02
- Re: bidi-display-reordering is now non-nil by default, محسن بنان, 2011/08/02
- Re: bidi-display-reordering is now non-nil by default, James Cloos, 2011/08/03
- Re: bidi-display-reordering is now non-nil by default, Mohsen BANAN, 2011/08/03