From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#35161: 26.1; follow-mode spurious motion Date: Tue, 25 Aug 2020 18:07:36 -0700 Message-ID: References: <323E7DEA-BD06-41BE-A95E-F13E248B2DB5@jovi.net> <83pnpza3t1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27337"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Devon Sean McCullough , 35161@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 26 03:08:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAjv8-00070g-KI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Aug 2020 03:08:10 +0200 Original-Received: from localhost ([::1]:53696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAjv7-0006gm-Jf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Aug 2020 21:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAjv0-0006gG-5D for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 21:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53423) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAjuz-0006vH-Qn for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 21:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAjuz-0004XF-ML for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2020 21:08:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 35161-submit@debbugs.gnu.org id=B35161.159840407117410 (code B ref 35161); Wed, 26 Aug 2020 01:08:01 +0000 Original-Received: (at 35161) by debbugs.gnu.org; 26 Aug 2020 01:07:51 +0000 Original-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 Original-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 Original-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) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 25 Aug 2020 18:07:36 -0700 In-Reply-To: <83pnpza3t1.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Apr 2019 12:19:54 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186388 Archived-At: 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