From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#18545: 24.4.50: Bug - forward-line inside with-selected-window Date: Sat, 27 Sep 2014 09:35:22 +0200 Message-ID: <542668BA.6010800@gmx.at> References: <290964377.56621411668876487.JavaMail.www@wwinf7125> <83a95nv9fm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1411803394 8339 80.91.229.3 (27 Sep 2014 07:36:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Sep 2014 07:36:34 +0000 (UTC) Cc: 18545@debbugs.gnu.org To: Eli Zaretskii , lompik@voila.fr Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 27 09:36:27 2014 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 1XXmYL-0005kX-Pd for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Sep 2014 09:36:26 +0200 Original-Received: from localhost ([::1]:54914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXmYL-0005dG-FE for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Sep 2014 03:36:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXmYB-0005cV-Li for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 03:36:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXmY4-00053m-5o for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 03:36:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXmY4-00053c-15 for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 03:36:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XXmXy-0006DW-B7 for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 03:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Sep 2014 07:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18545-submit@debbugs.gnu.org id=B18545.141180334623877 (code B ref 18545); Sat, 27 Sep 2014 07:36:02 +0000 Original-Received: (at 18545) by debbugs.gnu.org; 27 Sep 2014 07:35:46 +0000 Original-Received: from localhost ([127.0.0.1]:53461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXmXh-0006D2-FL for submit@debbugs.gnu.org; Sat, 27 Sep 2014 03:35:45 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59734) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXmXe-0006Cr-SK for 18545@debbugs.gnu.org; Sat, 27 Sep 2014 03:35:43 -0400 Original-Received: from [188.22.34.249] ([188.22.34.249]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LnfuZ-1YCMDy2n3n-00huEI; Sat, 27 Sep 2014 09:35:33 +0200 In-Reply-To: <83a95nv9fm.fsf@gnu.org> X-Provags-ID: V03:K0:HXN7gvJ1gIbBTL1jwPOt4EFIiiT1hEaNpOlPHHsguyXX5luPJ4w 9ZMCLMckPkVfGO7F+dQm+Vnm/zwhQ1FspiASkEuOl+nAvDbtcTgMMaifAp1CISJzNfccKmf ChuFsYVKzNEv41pf+5NuiPQ0UQVX3hKn2cOwilVmqCGUGasrtaPS/MTqIZ5hFNNlF3ijHvp 5x9ZKH00xhS0exZs6IsxA== X-UI-Out-Filterresults: notjunk:1; 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:93788 Archived-At: > Can you tell me how to reproduce this? I don't see this in the recipe > you described in your bug report. I can reproduce something similar here but it hardly makes sense to share my recipe. The bug manifests itself such that after an implicit `forward-line' the cursor appears stuck in a partially visible line at the bottom of a window. That window has a sibling on the right. On Windows these siblings must be in the lower half of a split frame. On Gtk no vertical splitting is needed. The cursor continues to move by one line when keeping the down key (which implicitly runs `forward-line' here) pressed for some three seconds and gets stuck again immediately. Some additional particularities: (1) The bug is not reproducible with Emacs 24-4, only with current trunk. (2) My settings are needed and must be in .emacs. Starting emacs -Q, putting my .emacs contents in *scratch* and doing an `eval-buffer' there does not reproduce it. (3) My frame must be fully maximized. Any other form of maximization doesn't trigger it. (4) Your patch doesn't fix it. A breakpoint set there is never hit. The bug might be related to your changes from 2014-07-09. For example the following excerpt from a gdb session seems suspicious (the build is with your patch but it doesn't matter): (gdb) break xdisp.c:16261 Breakpoint 3 at 0x1050f51: file xdisp.c, line 16261. [...] (gdb) bt #0 redisplay_window (window=..., just_this_one_p=false) at xdisp.c:16261 #1 0x0104a340 in redisplay_window_0 (window=...) at xdisp.c:14322 #2 0x01191406 in internal_condition_case_1 (bfun=0x104a30a , arg=..., handlers=..., hfun=0x104a2e6 ) at eval.c:1368 #3 0x0104a2cb in redisplay_windows (window=...) at xdisp.c:14302 #4 0x0104a280 in redisplay_windows (window=...) at xdisp.c:14296 #5 0x0104a280 in redisplay_windows (window=...) at xdisp.c:14296 #6 0x01049291 in redisplay_internal () at xdisp.c:13901 #7 0x01047276 in redisplay () at xdisp.c:13181 #8 0x01104bad in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x82f7ef, end_time=0x0) at keyboard.c:2594 #9 0x0111297b in read_key_sequence (keybuf=0x82f8e4, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9178 #10 0x01102665 in command_loop_1 () at keyboard.c:1467 #11 0x011912f3 in internal_condition_case (bfun=0x11022e0 , handlers=..., hfun=0x1101b4b ) at eval.c:1344 #12 0x01101f96 in command_loop_2 (ignore=...) at keyboard.c:1198 #13 0x01190892 in internal_catch (tag=..., func=0x1101f72 , arg=...) at eval.c:1105 #14 0x01101f50 in command_loop () at keyboard.c:1177 #15 0x011016e7 in recursive_edit_1 () at keyboard.c:787 #16 0x011018a4 in Frecursive_edit () at keyboard.c:858 #17 0x010ff600 in main (argc=1, argv=0xa32808) at emacs.c:1643 Lisp Backtrace: "redisplay_internal (C function)" (0x206c3b4) (gdb) p new_vpos $1 = 426 (gdb) p w->cursor.y $2 = 432 (gdb) In this particular case the display should be scrolled since otherwise point ends up on the partially visible line. But the test if (new_vpos >= w->cursor.y) fails to trigger that. martin