From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bidi-display-reordering is now non-nil by default Date: Mon, 22 Aug 2011 15:37:30 -0400 Message-ID: References: <4E48D309.6050503@acdlabs.ru> <83hb5jujjs.fsf@gnu.org> <874o1j10zv.fsf@fencepost.gnu.org> <8362lyvcli.fsf@gnu.org> <83k4aasnm9.fsf@gnu.org> <838vqmx9tj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314041877 11518 80.91.229.12 (22 Aug 2011 19:37:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2011 19:37:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 22 21:37:53 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 1QvaJl-0000V6-2Y for ged-emacs-devel@m.gmane.org; Mon, 22 Aug 2011 21:37:53 +0200 Original-Received: from localhost ([::1]:39270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvaJk-0006hs-AZ for ged-emacs-devel@m.gmane.org; Mon, 22 Aug 2011 15:37:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvaJh-0006gk-Dq for emacs-devel@gnu.org; Mon, 22 Aug 2011 15:37:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvaJg-0000v2-AA for emacs-devel@gnu.org; Mon, 22 Aug 2011 15:37:49 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:25417 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvaJa-0000td-7e; Mon, 22 Aug 2011 15:37:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAIyvUk5Ld+HZ/2dsb2JhbABBqBR4gUABAQVWIxALNBIUGA0kvSmGSASfcYQ2 X-IronPort-AV: E=Sophos;i="4.68,264,1312171200"; d="scan'208";a="132224552" Original-Received: from 75-119-225-217.dsl.teksavvy.com (HELO ceviche.home) ([75.119.225.217]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 22 Aug 2011 15:37:31 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 90A336610A; Mon, 22 Aug 2011 15:37:30 -0400 (EDT) In-Reply-To: <838vqmx9tj.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Aug 2011 09:02:48 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:143515 Archived-At: >> + (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). Stefan