[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: |
Eli Zaretskii |
Subject: |
Re: bidi-display-reordering is now non-nil by default |
Date: |
Tue, 23 Aug 2011 11:40:04 +0300 |
> From: Stefan Monnier <address@hidden>
> Cc: address@hidden
> Date: Mon, 22 Aug 2011 15:37:30 -0400
>
> >> + (put-text-property (point)
> >> + (progn
> >> + (insert (bidi-string-mark-left-to-right
> >> str))
> >> + (point))
> >> 'mouse-face 'highlight)
>
> The mouse-face property is used to delimit the text, but the above code
> ends up marking not just STR but STR+LRM, which is not desirable
> (e.g. choose-completion will end up choosing STR+LRM rather than jus STR).
I couldn't imagine the mouse-face is used for anything besides the
highlight. Sounds like a kludge to me.
Anyway, if we will go the bidi-string-mark-left-to-right route, it
would be easy to fix this minor problem by putting the mouse-face on
the string before running it through bidi-string-mark-left-to-right.
- Re: bidi-display-reordering is now non-nil by default, (continued)
- Re: bidi-display-reordering is now non-nil by default, Stefan Monnier, 2011/08/22
- Re: bidi-display-reordering is now non-nil by default, Štěpán Němec, 2011/08/23
- use of `mouse-face' to delimit text zones [was: bidi-display-reordering is now non-nil by default], Drew Adams, 2011/08/23
- Re: use of `mouse-face' to delimit text zones [was: bidi-display-reordering is now non-nil by default], Eli Zaretskii, 2011/08/23
- Re: use of `mouse-face' to delimit text zones [was: bidi-display-reordering is now non-nil by default], Stefan Monnier, 2011/08/23
- Re: use of `mouse-face' to delimit text zones, Eli Zaretskii, 2011/08/23
- Re: use of `mouse-face' to delimit text zones, Štěpán Němec, 2011/08/23
- Re: use of `mouse-face' to delimit text zones, Stefan Monnier, 2011/08/23
- Re: bidi-display-reordering is now non-nil by default, Stefan Monnier, 2011/08/23
- Re: bidi-display-reordering is now non-nil by default, Štěpán Němec, 2011/08/23
- Re: bidi-display-reordering is now non-nil by default,
Eli Zaretskii <=
- Re: bidi-display-reordering is now non-nil by default, Chong Yidong, 2011/08/15
- Re: bidi-display-reordering is now non-nil by default, Eli Zaretskii, 2011/08/15
- Re: bidi-display-reordering is now non-nil by default, Stefan Monnier, 2011/08/15
- Re: bidi-display-reordering is now non-nil by default, Chong Yidong, 2011/08/15
- Re: bidi-display-reordering is now non-nil by default, Eli Zaretskii, 2011/08/16
- Re: bidi-display-reordering is now non-nil by default, David Kastrup, 2011/08/16
- Re: bidi-display-reordering is now non-nil by default, Eli Zaretskii, 2011/08/16
- Re: bidi-display-reordering is now non-nil by default, David Kastrup, 2011/08/16
- Re: bidi-display-reordering is now non-nil by default, Eli Zaretskii, 2011/08/16
- Re: bidi-display-reordering is now non-nil by default, Andreas Schwab, 2011/08/16