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#14780: Regression: C-n doesn't go to next line under simple circumstances Date: Sat, 20 Jul 2013 12:09:32 +0300 Message-ID: <8338r9zjg3.fsf@gnu.org> References: <83fvvaz7jf.fsf@gnu.org> <83ehauz40q.fsf@gnu.org> <83a9lhzq9w.fsf@gnu.org> <834nbpzl4s.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1374311527 24384 80.91.229.3 (20 Jul 2013 09:12:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jul 2013 09:12:07 +0000 (UTC) Cc: 14780@debbugs.gnu.org To: gundaetiapo@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 20 11:12:08 2013 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 1V0TCx-0001AJ-CJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jul 2013 11:12:07 +0200 Original-Received: from localhost ([::1]:36738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0TCw-0001ZZ-Qo for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jul 2013 05:12:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0TCt-0001ZE-Do for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2013 05:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0TCs-0002TT-EL for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2013 05:12:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0TCs-0002TO-Bp for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2013 05:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V0TCr-0006p7-S1 for bug-gnu-emacs@gnu.org; Sat, 20 Jul 2013 05:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jul 2013 09:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14780 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14780-submit@debbugs.gnu.org id=B14780.137431147526062 (code B ref 14780); Sat, 20 Jul 2013 09:12:01 +0000 Original-Received: (at 14780) by debbugs.gnu.org; 20 Jul 2013 09:11:15 +0000 Original-Received: from localhost ([127.0.0.1]:39016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V0TC6-0006mH-UN for submit@debbugs.gnu.org; Sat, 20 Jul 2013 05:11:15 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:40815) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V0TC2-0006lx-TJ for 14780@debbugs.gnu.org; Sat, 20 Jul 2013 05:11:12 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MQ8002009AJRH00@a-mtaout23.012.net.il> for 14780@debbugs.gnu.org; Sat, 20 Jul 2013 12:09:18 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MQ8002ZT9FIR310@a-mtaout23.012.net.il>; Sat, 20 Jul 2013 12:09:18 +0300 (IDT) In-reply-to: <834nbpzl4s.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:76520 Archived-At: > Date: Sat, 20 Jul 2013 11:33:07 +0300 > From: Eli Zaretskii > Cc: 14780@debbugs.gnu.org > > Does the following fix the problem for you? Sorry, that change had a bug. Please try this instead: === modified file 'src/xdisp.c' --- src/xdisp.c 2013-07-16 21:35:45 +0000 +++ src/xdisp.c 2013-07-20 09:05:11 +0000 @@ -15608,10 +15608,11 @@ redisplay_window (Lisp_Object window, in the Y coordinate of the _next_ row, see the definition of MATRIX_ROW_BOTTOM_Y. */ if (w->cursor.vpos < margin + header_line) - new_vpos - = pixel_margin + (header_line - ? CURRENT_HEADER_LINE_HEIGHT (w) - : 0) + frame_line_height; + { + w->cursor.vpos = -1; + clear_glyph_matrix (w->desired_matrix); + goto try_to_scroll; + } else { int window_height = window_box_height (w); @@ -15619,7 +15620,11 @@ redisplay_window (Lisp_Object window, in if (header_line) window_height += CURRENT_HEADER_LINE_HEIGHT (w); if (w->cursor.y >= window_height - pixel_margin) - new_vpos = window_height - pixel_margin; + { + w->cursor.vpos = -1; + clear_glyph_matrix (w->desired_matrix); + goto try_to_scroll; + } } }