From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#9229: 24.0.50; Bidi problem with `cursor' property Date: Wed, 03 Aug 2011 22:03:51 +0200 Message-ID: <87liva5kk8.fsf@gnu.org> References: <87sjpi600v.fsf@gnu.org> <83ei12a2n2.fsf@gnu.org> <837h6upaur.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 1312401876 17850 80.91.229.12 (3 Aug 2011 20:04:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2011 20:04:36 +0000 (UTC) Cc: 9229@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 03 22:04:32 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 1Qohg7-0006Xr-RU for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Aug 2011 22:04:31 +0200 Original-Received: from localhost ([::1]:52784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qohg7-0001kh-BO for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Aug 2011 16:04:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qohg4-0001kQ-My for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2011 16:04:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qohg3-0003MP-6m for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2011 16:04:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qohg3-0003ML-3w for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2011 16:04:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qohgc-0005Yp-3D; Wed, 03 Aug 2011 16:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Aug 2011 20:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9229-submit@debbugs.gnu.org id=B9229.131240188621354 (code B ref 9229); Wed, 03 Aug 2011 20:05:02 +0000 Original-Received: (at 9229) by debbugs.gnu.org; 3 Aug 2011 20:04:46 +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 1QohgM-0005YN-Dn for submit@debbugs.gnu.org; Wed, 03 Aug 2011 16:04:46 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QohgK-0005YD-8Z for 9229@debbugs.gnu.org; Wed, 03 Aug 2011 16:04:45 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 15B7EE9880 for <9229@debbugs.gnu.org>; Wed, 3 Aug 2011 22:04:08 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.202.196] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AidoAJGpOU5V5MrEPGdsb2JhbABChEeER55SCwEBAQE3MoFAAQEEASMzIxALFAEFAgUhAgIPAQQYAQwKGhOHbAKvYZFEgSuEB4EQBKNh X-IronPort-AV: E=Sophos;i="4.67,312,1309730400"; d="scan'208";a="211439550" Original-Received: from c-c4cae455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.202.196]) by ipb1.telenor.se with ESMTP; 03 Aug 2011 22:03:54 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id A20C248446C; Wed, 3 Aug 2011 22:03:52 +0200 (CEST) In-Reply-To: <837h6upaur.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 03 Aug 2011 22:13:16 +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: Wed, 03 Aug 2011 16:05:02 -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:49886 Archived-At: Eli Zaretskii writes: >> Date: Wed, 03 Aug 2011 19:19:45 +0300 >> From: Eli Zaretskii >> Cc: 9229@debbugs.gnu.org >>=20 >> > From: Johan Bockg=C3=A5rd >> > Date: Wed, 03 Aug 2011 16:29:52 +0200 >> >=20 >> >=20 >> > (let ((o (make-overlay (point-max) (point-max))) >> > (s (make-string (+ 5 (window-width)) ?-))) >> > (put-text-property 0 1 'cursor t s) >> > (overlay-put o 'after-string s) >> > (goto-char (point-max))) >> >=20 >> > The cursor is expected to be displayed before the overlay, but is >> > displayed after it. >> >=20 >> > (This bug makes icomplete-mode very confusing to use.) > > Does the patch below give good results? If it solves this particular > problem, please try it in your regular use for a day or two, and see > if there are any adverse effects. If you don't spot any trouble, I > will install this on the trunk. Apparently, the patch only tries to fix the case where "the entire line is from display string", which doesn't solve the icomplete problem: emacs -Q M-x icomplete-mode RET M-x a