From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35161: 26.1; follow-mode spurious motion Date: Sat, 06 Apr 2019 12:19:54 +0300 Message-ID: <83pnpza3t1.fsf@gnu.org> References: <323E7DEA-BD06-41BE-A95E-F13E248B2DB5@jovi.net> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="11786"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35161@debbugs.gnu.org To: Devon Sean McCullough Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 06 11:21:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hChVn-0002sd-Ky for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Apr 2019 11:21:19 +0200 Original-Received: from localhost ([127.0.0.1]:52615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hChVm-0001WS-CX for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Apr 2019 05:21:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hChVZ-0001SG-D7 for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 05:21:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hChVX-00045F-KH for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 05:21:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hChVW-00044Z-Dz for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 05:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hChVW-0006f2-4t for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 05:21:02 -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, 06 Apr 2019 09:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35161 X-GNU-PR-Package: emacs Original-Received: via spool by 35161-submit@debbugs.gnu.org id=B35161.155454242425537 (code B ref 35161); Sat, 06 Apr 2019 09:21:02 +0000 Original-Received: (at 35161) by debbugs.gnu.org; 6 Apr 2019 09:20:24 +0000 Original-Received: from localhost ([127.0.0.1]:46558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hChUt-0006do-LZ for submit@debbugs.gnu.org; Sat, 06 Apr 2019 05:20:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hChUr-0006dc-Fm for 35161@debbugs.gnu.org; Sat, 06 Apr 2019 05:20:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hChUj-0003fi-T3; Sat, 06 Apr 2019 05:20:15 -0400 Original-Received: from [176.228.60.248] (port=2900 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hChUa-0002BE-Ny; Sat, 06 Apr 2019 05:20:08 -0400 In-reply-to: <323E7DEA-BD06-41BE-A95E-F13E248B2DB5@jovi.net> (message from Devon Sean McCullough on Fri, 5 Apr 2019 11:58:23 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:157260 Archived-At: > From: Devon Sean McCullough > Date: Fri, 5 Apr 2019 11:58:23 -0400 > > bash$ /Applications/Emacs.app/Contents/MacOS/Emacs -Q -eval '(progn (insert-file-contents-literally "/dev/stdin") (eval-buffer))' <<. > (xref-find-definitions 'set-frame-font) > (toggle-frame-maximized) > (follow-mode) > (delete-other-windows) > (mark-defun) > (split-window-right) > (setq s1 0 > t1 (run-at-time 1 1 (lambda (&rest args) > (other-window 1) > (sit-for 0) > (when (> (setq s1 (1+ s1)) 3) > (cancel-timer t1) > (message "Now when you type C-x o the unselected cursor will spuriously move to the bottom line."))))) > . > bash$ ## Both windows' cursors should stay put, but instead one of them moves. > > Peace > --Devon > > P.S. I'm curious why programmatic (other-window 1) (sit-for 0) > doesn't exhibit this bug. > Perhaps ELisp manual chapter 28.21 Windows and Point > should mention relevant pitfalls? It's not a bug, not in redisplay anyway. The last line of the left window is not fully visible, at least on my system, and that causes the effects you see (if I understand correctly the issue you find unexpected). Btw, calling sit-for from a timer function is not a good idea, but this is a tangent. Thanks.