From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13277: 24.2.91; -nw display bug with overlay-arrow Date: Thu, 27 Dec 2012 19:32:33 +0200 Message-ID: <83sj6rmmdq.fsf@gnu.org> References: <83fw2unedh.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1356629613 9277 80.91.229.3 (27 Dec 2012 17:33:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2012 17:33:33 +0000 (UTC) Cc: 13277-done@debbugs.gnu.org To: schwab@linux-m68k.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 18:33:46 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ToHKp-0003ik-0C for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2012 18:33:35 +0100 Original-Received: from localhost ([::1]:60288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToHKa-0005Bk-7f for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2012 12:33:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToHKV-0005Be-Ni for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2012 12:33:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToHKU-0007j1-1X for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2012 12:33:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToHKT-0007iq-VQ for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2012 12:33:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ToHLF-0001IK-Ry for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2012 12:34:01 -0500 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Dec 2012 17:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 13277 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 13277@debbugs.gnu.org, eliz@gnu.org, schwab@linux-m68k.org Original-Received: via spool by 13277-done@debbugs.gnu.org id=D13277.13566296144932 (code D ref 13277); Thu, 27 Dec 2012 17:34:01 +0000 Original-Received: (at 13277-done) by debbugs.gnu.org; 27 Dec 2012 17:33:34 +0000 Original-Received: from localhost ([127.0.0.1]:33921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToHKo-0001HV-8w for submit@debbugs.gnu.org; Thu, 27 Dec 2012 12:33:34 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:58416) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToHKl-0001HK-Lz for 13277-done@debbugs.gnu.org; Thu, 27 Dec 2012 12:33:32 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MFP00M00A1K9M00@a-mtaout20.012.net.il> for 13277-done@debbugs.gnu.org; Thu, 27 Dec 2012 19:32:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFP00J3EA250V30@a-mtaout20.012.net.il>; Thu, 27 Dec 2012 19:32:29 +0200 (IST) In-reply-to: <83fw2unedh.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:69077 Archived-At: > Date: Tue, 25 Dec 2012 21:03:22 +0200 > From: Eli Zaretskii > Cc: 13277@debbugs.gnu.org > > > From: Andreas Schwab > > Date: Tue, 25 Dec 2012 19:13:44 +0100 > > > > This is a regression from emacs 23, already present in 24.1: > > > > $ cat bug.el > > (set (make-local-variable 'overlay-arrow-string) "=>") > > (set (make-local-variable 'overlay-arrow-position) (point-marker)) > > ;;(setq truncate-lines t) > > (insert-char ?- (window-width)) > > (goto-char (point-min)) > > $ emacs -nw -l ./bug.el > > > > The cursor is placed at the right margin. Either moving forward two > > characters or deleting one character (so that the line fits in the > > window) puts the cursor after the arrow, where it belongs. > > It's a consequence of the bidirectional display, under which we can no > longer assume that, if point is at position P, and that position is > not visible, the cursor should be put on the first visible glyph whose > position is >= P. (In this case, the first 2 characters are obscured > by the overlay arrow, and don't appear on the line.) Should be fixed in revision 111082 on the emacs-24 branch. (The fix is a simple one-liner, and is so obviously correct that it can only cause problems if it exposes another bug, so I think it's appropriate for the branch.)