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: Tue, 25 Dec 2012 21:03:22 +0200 Message-ID: <83fw2unedh.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1356462274 4748 80.91.229.3 (25 Dec 2012 19:04:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Dec 2012 19:04:34 +0000 (UTC) Cc: 13277@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 25 20:04: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 1TnZnv-0005cG-EY for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Dec 2012 20:04:43 +0100 Original-Received: from localhost ([::1]:40186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnZng-0001MJ-P7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Dec 2012 14:04:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnZne-0001MD-Eg for bug-gnu-emacs@gnu.org; Tue, 25 Dec 2012 14:04:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TnZnd-0004LC-CK for bug-gnu-emacs@gnu.org; Tue, 25 Dec 2012 14:04:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnZnd-0004L3-8g for bug-gnu-emacs@gnu.org; Tue, 25 Dec 2012 14:04:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TnZoE-0006F2-3B for bug-gnu-emacs@gnu.org; Tue, 25 Dec 2012 14:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Dec 2012 19:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13277 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13277-submit@debbugs.gnu.org id=B13277.135646227823962 (code B ref 13277); Tue, 25 Dec 2012 19:05:02 +0000 Original-Received: (at 13277) by debbugs.gnu.org; 25 Dec 2012 19:04:38 +0000 Original-Received: from localhost ([127.0.0.1]:59596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TnZnq-0006ER-Gn for submit@debbugs.gnu.org; Tue, 25 Dec 2012 14:04:38 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:46470) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TnZnn-0006EH-DI for 13277@debbugs.gnu.org; Tue, 25 Dec 2012 14:04:36 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MFL00600OVJPG00@a-mtaout20.012.net.il> for 13277@debbugs.gnu.org; Tue, 25 Dec 2012 21:03:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MFL006XUOXNG8C0@a-mtaout20.012.net.il>; Tue, 25 Dec 2012 21:03:23 +0200 (IST) In-reply-to: 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:69042 Archived-At: > 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.) I will look into fixing this soon. Thanks for reporting this.