From unknown Sat Aug 16 13:46:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35161: 26.1; follow-mode spurious motion Resent-From: Devon Sean McCullough Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Apr 2019 16:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 35161@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155447994711811 (code B ref -1); Fri, 05 Apr 2019 16:00:03 +0000 Received: (at submit) by debbugs.gnu.org; 5 Apr 2019 15:59:07 +0000 Received: from localhost ([127.0.0.1]:46213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCRFC-00034P-MT for submit@debbugs.gnu.org; Fri, 05 Apr 2019 11:59:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCRFA-00033v-GR for submit@debbugs.gnu.org; Fri, 05 Apr 2019 11:59:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:53555) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCREu-000632-O2 for submit@debbugs.gnu.org; Fri, 05 Apr 2019 11:58:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCREt-0006RZ-AB for bug-gnu-emacs@gnu.org; Fri, 05 Apr 2019 11:58:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCREn-0005ss-Q7 for bug-gnu-emacs@gnu.org; Fri, 05 Apr 2019 11:58:43 -0400 Received: from gateway31.websitewelcome.com ([192.185.143.36]:19583) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCREi-0005Yb-To for bug-gnu-emacs@gnu.org; Fri, 05 Apr 2019 11:58:39 -0400 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway31.websitewelcome.com (Postfix) with ESMTP id EA6C6502E5 for ; Fri, 5 Apr 2019 10:58:24 -0500 (CDT) Received: from leaf.websitewelcome.com ([192.185.82.99]) by cmsmtp with SMTP id CREWhu13390onCREWh7Kl2; Fri, 05 Apr 2019 10:58:24 -0500 X-Authority-Reason: nr=8 Received: from pool-108-48-20-73.washdc.fios.verizon.net ([108.48.20.73]:56290 helo=devons-air.fios-router.home) by leaf.websitewelcome.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1hCREW-001xwE-Iw for bug-gnu-emacs@gnu.org; Fri, 05 Apr 2019 10:58:24 -0500 From: Devon Sean McCullough Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <323E7DEA-BD06-41BE-A95E-F13E248B2DB5@jovi.net> Date: Fri, 5 Apr 2019 11:58:23 -0400 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - leaf.websitewelcome.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jovi.net X-BWhitelist: no X-Source-IP: 108.48.20.73 X-Source-L: No X-Exim-ID: 1hCREW-001xwE-Iw X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: pool-108-48-20-73.washdc.fios.verizon.net (devons-air.fios-router.home) [108.48.20.73]:56290 X-Source-Auth: devon2011@jovi.net X-Email-Count: 1 X-Source-Cap: am92aW5ldDtkZXZvbjtsZWFmLndlYnNpdGV3ZWxjb21lLmNvbQ== X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.143.36 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) 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? In GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 = Version 10.10.5 (Build 14F2511)) of 2018-05-30 built on builder10-10.porkrind.org Windowing system distributor 'Apple', version 10.3.1404 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. uncompressing frame.el.gz...done Mark set [2 times] Now when you type C-x o the unselected cursor will spuriously move to = the bottom line. Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: follow-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils follow pulse jka-compr help-fns radix-tree help-mode easymenu find-func xref cl-seq project ring eieio byte-opt bytecomp byte-compile cconv eieio-core cl-macs gv eieio-loaddefs cl-loaddefs cl-lib elec-pair time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 213238 12101) (symbols 48 21064 1) (miscs 40 50 228) (strings 32 31333 1806) (string-bytes 1 844158) (vectors 16 36768) (vector-slots 8 740380 12142) (floats 8 50 379) (intervals 56 575 60) (buffers 992 12)) From unknown Sat Aug 16 13:46:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35161: 26.1; follow-mode spurious motion 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 X-GNU-PR-Keywords: To: Devon Sean McCullough Cc: 35161@debbugs.gnu.org Received: via spool by 35161-submit@debbugs.gnu.org id=B35161.155454242425537 (code B ref 35161); Sat, 06 Apr 2019 09:21:02 +0000 Received: (at 35161) by debbugs.gnu.org; 6 Apr 2019 09:20:24 +0000 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 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 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 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 Date: Sat, 06 Apr 2019 12:19:54 +0300 Message-Id: <83pnpza3t1.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <323E7DEA-BD06-41BE-A95E-F13E248B2DB5@jovi.net> (message from Devon Sean McCullough on Fri, 5 Apr 2019 11:58:23 -0400) References: <323E7DEA-BD06-41BE-A95E-F13E248B2DB5@jovi.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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. From unknown Sat Aug 16 13:46:21 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35161: 26.1; follow-mode spurious motion Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2020 01:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35161 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Devon Sean McCullough , 35161@debbugs.gnu.org Received: via spool by 35161-submit@debbugs.gnu.org id=B35161.159840407117410 (code B ref 35161); Wed, 26 Aug 2020 01:08:01 +0000 Received: (at 35161) by debbugs.gnu.org; 26 Aug 2020 01:07:51 +0000 Received: from localhost ([127.0.0.1]:36734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAjup-0004Wj-1K for submit@debbugs.gnu.org; Tue, 25 Aug 2020 21:07:51 -0400 Received: from mail-yb1-f178.google.com ([209.85.219.178]:36103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAjuf-0004W7-RY for 35161@debbugs.gnu.org; Tue, 25 Aug 2020 21:07:42 -0400 Received: by mail-yb1-f178.google.com with SMTP id g3so35270ybc.3 for <35161@debbugs.gnu.org>; Tue, 25 Aug 2020 18:07:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=65GDOtNefaSupi1SV3z6mInKVNzdVBylKCkFbygZxiM=; b=C9FtXJpIrcnVlMzWF90N8slcrY9c1SWDS8LzPFvXz6z8ZgE5FO9kW2DtOOf4fdXkYp 2B/eC2xCfprQCEHbTe6EeXeJXy9zKItXCF8ZhFz3ot1p5UMnnuV5w5YU0XZsGJ2N5x8A 0a7OPHj7aiUhN5AhCvfrVoWS5rxR3IpKiqZ82LNFn2AXaP42CiQ+7wZ9na0pCH97sYI5 0sM2kc4SFQe5gZzef+G5hA/1xFCBOw8hXW7rfQbpigku7NMO+0zagev8ZBzcBP3QnxZP 16AE8i7GPVMd5NS2X7Rf2RF1klTpNYuD/VUsDDTRNdVH4OXQb0OmN6OshuJSHjSW1d02 DD8w== X-Gm-Message-State: AOAM532meP/1bsakmobds+/H1rXCsaYtOtZmW2Eac8hYMteW0fFnARKG r0jWeB0hHzvy6UtpoypjbtVwSADHoiPuKhTreObQ3l6q53Y= X-Google-Smtp-Source: ABdhPJxUnvRPEDbNDRtkLIuNhJy9TcLsroThOtlJeqUVBZB1rBk4Mulvw3Xf7ph50RfFjhpZKpS0xZnMNMNPxq1WvB4= X-Received: by 2002:a25:880e:: with SMTP id c14mr18540661ybl.181.1598404056491; Tue, 25 Aug 2020 18:07:36 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 25 Aug 2020 18:07:36 -0700 From: Stefan Kangas In-Reply-To: <83pnpza3t1.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Apr 2019 12:19:54 +0300") References: <323E7DEA-BD06-41BE-A95E-F13E248B2DB5@jovi.net> <83pnpza3t1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 25 Aug 2020 18:07:36 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tags 35161 + notabug close 35161 thanks Eli Zaretskii writes: >> 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. Eli explains here that this is not a bug and there has been no further replies within a year. I'm going to assume this answer is satisfactory and close this bug now. If this conclusion is incorrect and this is still an issue, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Best regards, Stefan Kangas