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#9254: previous-line stays put, and next-line crashes Date: Sat, 06 Aug 2011 14:15:38 +0300 Message-ID: <83fwlex02t.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1312629563 3276 80.91.229.12 (6 Aug 2011 11:19:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2011 11:19:23 +0000 (UTC) Cc: 9254-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 06 13:19:19 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 1QpeuU-00013l-J5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2011 13:19:18 +0200 Original-Received: from localhost ([::1]:51339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpeuU-0007lw-3o for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2011 07:19:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpeuR-0007lf-Ak for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 07:19:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpeuQ-0008DI-4u for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 07:19:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpeuQ-0008DA-37 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 07:19:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QpevD-0002ru-Q1 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2011 07:20:03 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2011 11:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 9254 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 9254@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 9254-done@debbugs.gnu.org id=D9254.131262955710958 (code D ref 9254); Sat, 06 Aug 2011 11:20:02 +0000 Original-Received: (at 9254-done) by debbugs.gnu.org; 6 Aug 2011 11:19:17 +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 1QpeuT-0002qh-Fd for submit@debbugs.gnu.org; Sat, 06 Aug 2011 07:19:17 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QpeuR-0002qX-0I for 9254-done@debbugs.gnu.org; Sat, 06 Aug 2011 07:19:16 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LPI00I007A1ZX00@a-mtaout23.012.net.il> for 9254-done@debbugs.gnu.org; Sat, 06 Aug 2011 14:17:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.94.185]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LPI00IJA7DBR790@a-mtaout23.012.net.il>; Sat, 06 Aug 2011 14:17:37 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 06 Aug 2011 07:20:03 -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:49929 Archived-At: > From: Stefan Monnier > Date: Fri, 05 Aug 2011 11:10:45 -0400 >=20 > Not sure if the two are related They weren't. > % emacs -Q ~/tmp/foo.ll > [ accept the file-local settings ] > M-> > C-p C-p C-p >=20 > I notice 3 problems: > - After the first C-p the cursor is drawn on the second "\n" of the > "=B6\n\n" display property. In Emacs-23, the cursor was drawn on= the > "=B6". Not sure if it's longlines-mode which should add a `curso= r' > property, but at least that's a change in behavior w.r.t Emacs-23= . > - On the second (and third) C-p, the cursor fails to move. > AFAICT this bug was already present in Emacs-23. > - If I then hit C-n, I get a crash with the backtrace appended afte= r > my sig. I.e. bidi_cache_start is zero upon entry to bidi_pop_it. The crash was caused by a stupid thinko; fixed in revision 105413. I also fixed in that revision the first of the 3 problems, because th= e cursor position was different from Emacs 23 even with bidi-display-reordering set to nil. Hopefully, I didn't introduce an= y new bugs in cursor positioning by this change. As for the second problem you mention, please file a separate bug report, as anything that isn't a regression from Emacs 23 should be separate anyway, and in any case its priority on my todo is lower tha= n bidi-related problems. I'm closing this bug report. In general, yes, I think modes that use display strings should use th= e `cursor' property much more now, instead of relying on the display engine to figure this out. The bidi-aware display needs much more help in this regard because it cannot rely on monotonicity of character position changes with screen positions. This monotonicity in the unidirectional display was the main reason why all kinds of tricky cases "just worked" in Emacs 23. There's a limit to the amoun= t of logic and flags we can put into the code to implement heuristics whose sole basis is that "it worked like that in Emacs 23".