From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#32848: 26.1; follow-mode cursor move breaks with frame-resize-pixelwise Date: Wed, 26 Sep 2018 15:49:15 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1538003522 6932 195.159.176.226 (26 Sep 2018 23:12:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2018 23:12:02 +0000 (UTC) To: 32848@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 27 01:11:58 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5IyL-0001g5-4d for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Sep 2018 01:11:57 +0200 Original-Received: from localhost ([::1]:32879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5J0R-0004Sl-HJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Sep 2018 19:14:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5Itb-00068J-0F for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 19:07:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5Ita-0007IJ-5m for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 19:07:02 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5Ita-0007Hl-1Y for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 19:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g5ItZ-0004Q5-Q9 for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 19:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Sep 2018 23:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32848 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153800316416922 (code B ref -1); Wed, 26 Sep 2018 23:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Sep 2018 23:06:04 +0000 Original-Received: from localhost ([127.0.0.1]:55752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5Isd-0004Os-TV for submit@debbugs.gnu.org; Wed, 26 Sep 2018 19:06:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5Isc-0004ON-59 for submit@debbugs.gnu.org; Wed, 26 Sep 2018 19:06:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5IsW-0006nu-1k for submit@debbugs.gnu.org; Wed, 26 Sep 2018 19:05:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g5IsV-0006nf-Sc for submit@debbugs.gnu.org; Wed, 26 Sep 2018 19:05:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5IsU-0004va-Td for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 19:05:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5IcZ-0001OQ-Fs for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 18:49:28 -0400 Original-Received: from mail-it1-x12d.google.com ([2607:f8b0:4864:20::12d]:34766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5IcZ-0001OF-AR for bug-gnu-emacs@gnu.org; Wed, 26 Sep 2018 18:49:27 -0400 Original-Received: by mail-it1-x12d.google.com with SMTP id o72-v6so9673027ita.1 for ; Wed, 26 Sep 2018 15:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=J/D7Oq7fXl1u1/iZahApDlE22bhOYUOUG3xiUzPxTjY=; b=d5Eg0EL1/N3M3xP+DeGiBeMBDEc/k8s1Y7yGGsaTXmeGmMKNmC3wi/asCM3jthgXvE hXK+6l3QnuJA0lNf4LWOyw07cWz89YVf/3woacQ0WjeVZnmSR/epBTKmvYdVwEN9J/Se M1syxffqfNwsrH4cnWkEcRpXk3Cx9+hN2qY3jeueeeTJfOsfT0LSa7JmGFt23s0Y3rfv pnEK8CIJmtPinrHi5JlDftO1hmk3Ya4vpFjAGjOj62NnB0hCWiINFQV5ntzB2cELDLrB CrTAjj8bFzXiLbiDvvuPRTcuJRVXacufinxKmhFrs5UBALapuiqZqCHTnYCfDsMDesj6 mjxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=J/D7Oq7fXl1u1/iZahApDlE22bhOYUOUG3xiUzPxTjY=; b=Gvt2Un1BZkd6N27o7YtLdqJYBJpZ9ZxH6/F3l+keGraZKeR7c1yWGLlWgo/rGFAiB9 yoV4OLHQB0mLu8sx4FIYSUea6bqse4tY758hV3hFqv5gBsPurGUwCfNrVbmrGqsRAdUw FUyoB6Au/+ABngnTVUjLqAI3eKrnXn9Baqe+UDhFlnIOwAbK9tSsMgDzt1tgS0/+ecv/ MM7TvwTXTC1DackjwBQpk6+BMx7mz9urupf0/nVNYaL+b6DzOjnbGzarD2nUfx2SC7J0 S9RF0jvVGoJnjaEWFavydXKcFF8VQtGsFdj/Z13O3gCQi28kswdY/UPf5dVOtm+gB4C7 w37A== X-Gm-Message-State: ABuFfohAXENQ2XsW4DUV0atyqEEISXHSsPgstc+nM2XeCxJxpUOM5zg9 cVG9Q2VGUSSoDoO5T8iRJRPmvE7Te+TupH7pBslZJa2KBVV2Lg== X-Google-Smtp-Source: ACcGV61KfV2hOqpYGgxdQS0zYyq6hVSgkYio3PzonGrnroeY+MN191F+sauOsIGLU2C98sFGeQhj9ZBGkDPUzOdLOzM= X-Received: by 2002:a24:1c0a:: with SMTP id c10-v6mr6978258itc.101.1538002166264; Wed, 26 Sep 2018 15:49:26 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:150689 Archived-At: Moving the cursor off the bottom of the window with follow-mode enabled doesn't move to the other window properly if frame-resize-pixelwise is set and a partial line is visible. Reproduce: 0. (Must be running X and GUI Emacs. A big/wide monitor helps.) 1. Save a long text file: for i in $(seq 1 300); do echo $i >> /tmp/tmp; done 2. emacs -Q 3. M-: (setq frame-resize-pixelwise t) RET 4. C-x 5 2 (new frame so it picks up the new frame setting) 5. C-x C-f /tmp/tmp RET 6. M-x follow-mode RET 7. C-x 3 8. Resize the frame so that half of a line is visible at the bottom of the window. 9. Hold C-n to move the cursor down past the bottom of the current window. Expected: The cursor/window focus moves to the next window per follow-mode. Actual: The cursor/window focus moves to the next window, then on the next C-n jumps back to the previous window. This appears to be because moving the cursor onto the final half line in the window triggers both: 1. follow-mode to move the cursor/window focus to the next window. 2. The cursor moved off the edge of the current window, causing the current window to scroll and recenter around the cursor. 3. This makes the position of the "shared" follow-mode cursor visible once again in the first window, causing focus to jump back to the first window. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.24), modified by Debian Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Debian GNU/Linux rodete (upgraded from: Ubuntu 14.04 LTS) Configured using: 'configure --build x86_64-linux-gnu --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/google-emacs:/etc/emacs:/usr/local/share/emacs/26.1+gg1+9/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1+gg1+9/site-lisp:/usr/share/emacs/site-lisp --with-crt-dir=/usr/lib/x86_64-linux-gnu --disable-build-details --disable-silent-rules --with-modules GOOGLE_VERSION=26.1+gg1+9 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars build_alias=x86_64-linux-gnu 'CFLAGS=-g -O2 -fdebug-prefix-map=/tmpfs/build-debs.ryDbLk/emacs-26.1+gg1+9=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' LDFLAGS=-Wl,-z,relro 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'OBJCFLAGS=-g -O2 -fdebug-prefix-map=/tmpfs/build-debs.ryDbLk/emacs-26.1+gg1+9=. -fstack-protector-strong -Wformat -Werror=format-security'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS JSON LCMS2