From unknown Fri Jun 13 06:08:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33858 <33858@debbugs.gnu.org> To: bug#33858 <33858@debbugs.gnu.org> Subject: Status: 26.1; Scrolling up fails Reply-To: bug#33858 <33858@debbugs.gnu.org> Date: Fri, 13 Jun 2025 13:08:27 +0000 retitle 33858 26.1; Scrolling up fails reassign 33858 emacs submitter 33858 Andrew Kurn severity 33858 minor tag 33858 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 24 09:00:04 2018 Received: (at submit) by debbugs.gnu.org; 24 Dec 2018 14:00:04 +0000 Received: from localhost ([127.0.0.1]:34385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbQm3-00026V-9v for submit@debbugs.gnu.org; Mon, 24 Dec 2018 09:00:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gbQm1-00025U-7R for submit@debbugs.gnu.org; Mon, 24 Dec 2018 09:00:01 -0500 Received: from lists.gnu.org ([208.118.235.17]:56507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gbQlw-0001Vn-0L for submit@debbugs.gnu.org; Mon, 24 Dec 2018 08:59:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbQlu-0006DG-QM for bug-gnu-emacs@gnu.org; Mon, 24 Dec 2018 08:59:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbQlr-0001Ss-Do for bug-gnu-emacs@gnu.org; Mon, 24 Dec 2018 08:59:54 -0500 Received: from load-balancer.sfu.ca ([142.58.101.11]:37254 helo=pobox1.f5esx.sfu.ca) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gbQlr-0001RH-5E for bug-gnu-emacs@gnu.org; Mon, 24 Dec 2018 08:59:51 -0500 Received: from Godzilla.local (S01060026f3a11cbf.vc.shawcable.net [50.64.13.21]) (authenticated bits=0) by pobox1.f5esx.sfu.ca (8.14.9/8.14.4/SFU-7.0G) with ESMTP id wBODxleC001092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 24 Dec 2018 05:59:48 -0800 Date: Mon, 24 Dec 2018 05:59:46 -0800 From: Andrew Kurn To: bug-gnu-emacs@gnu.org Subject: 26.1; Scrolling up fails Message-ID: <20181224135946.GA1765@Godzilla.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Authenticated-User: kurn X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 142.58.101.11 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit 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: -5.3 (-----) --text follows this line-- Dear Bug-Hunters, Here's a holiday treat for you: a weird bug. Here's the bug: When I scroll up (using my own function a-unscroll (q.v.)) and when point is about to scroll down off the bottom of the screen, the scroll action fails, and the line with point is repositioned to scroll-step lines above the bottom of the screen. This bug does not appear with emacs -Q. I have whittled down my init file to see which statement triggers the bug. Here is the shortest one for which the but appears: -- (global-set-key [(f12)] 'a-scroll) (global-set-key [(shift f12)] 'a-unscroll) (defun a-scroll (p) "Scroll this window up (fd) one line." (interactive "p") (let (( scroll-preserve-screen-position nil)) (scroll-up p))) (defun a-unscroll (p) "Scroll this window down (back) one line." (interactive "p") (let (( scroll-preserve-screen-position nil)) (scroll-up (- p)))) (setq scroll-step 3) (setq next-line-add-newlines nil) (setq make-backup-files nil) (setq auto-save-timeout 300) (setq auto-save-interval 3000) (setq track-eol t) (setq line-move-visual nil) (setq scroll-preserve-screen-position t) (setq c-tab-always-indent nil) ;;(setq printer-name "//earth/hp pcl 6") ;;(setq ps-printer-name printer-name) (setq-default case-fold-search nil) (setq scroll-bar-adjust-thumb-portion nil) (add-to-list 'default-frame-alist '(font . "Nimbus Mono-13:bold")) -- If I remove the add-to-list, the bug goes away. Weird, eh? Also, if I say emacs -Q and then eval-buffer, no bug. Happy hunting, Andrew 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.1504 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [18 times] Type C-x 1 to remove help window. is undefined Type "q" in help window to restore its previous buffer. Configured using: 'configure --with-ns '--enable-locallisppath=/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_CA.UTF-8 locale-coding-system: utf-8-unix Major mode: Apropos Minor modes in effect: tooltip-mode: t global-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 buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv 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 cl-extra find-func help-fns radix-tree help-mode easymenu cl-loaddefs cl-lib apropos 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 209489 10151) (symbols 48 20357 1) (miscs 40 98 391) (strings 32 30012 1732) (string-bytes 1 795185) (vectors 16 35569) (vector-slots 8 728678 11704) (floats 8 53 174) (intervals 56 581 0) (buffers 992 15)) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 18 14:11:56 2020 Received: (at 33858) by debbugs.gnu.org; 18 Aug 2020 18:11:56 +0000 Received: from localhost ([127.0.0.1]:36920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k865U-0006bX-3M for submit@debbugs.gnu.org; Tue, 18 Aug 2020 14:11:56 -0400 Received: from mail-yb1-f196.google.com ([209.85.219.196]:37228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k865R-0006bC-6x for 33858@debbugs.gnu.org; Tue, 18 Aug 2020 14:11:54 -0400 Received: by mail-yb1-f196.google.com with SMTP id e14so11892196ybf.4 for <33858@debbugs.gnu.org>; Tue, 18 Aug 2020 11:11:53 -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=1j7C/Ks3DCVwTG8DbnNyAuktxRHu9sdAoogICCs9yxE=; b=bL8YYulFCIxvYtfRaFG0UOwGMxnnOGO2Iecd/Rdz5I8b5qqg576BOVxkad2rnTY4IC BE8ubd5hmqUeVLvMqs4Jx2VnAD/n7zwsdCx6jcWfm5LzOyvlll2rbOxMbBiVc1lLT1TE dBolU6oCGSs4IARU11iCYyUdiU6szmmTaMNSe1CRfPWTpGELRWl4mryZ7k2B65ASXrbw D2xDig7tNnxfh6oohcbvVolSuNt0tq1g27uKL2YcrHiTtqgiiz84lrYXT+CEXJ4qtV/v vXhnp4jHz8+MMgdzJzQtpVe//6OQUQ3OADdmh62cWeg/u3EDAx0e1QRQ5u/t9hesNnDI C4vA== X-Gm-Message-State: AOAM533uyDLgMWh0grieY9Z339xS77zQMzukQR1oaZDvItVPZr5ixLcj ruNm0s2H4g3fbOFK1t3xYEHmYON/LafspTHhP98= X-Google-Smtp-Source: ABdhPJyzF/EjU52Fa8bE+HWU6O8bdq3fhBpaQBYGGF5aCV4hOne14tjZar+JxgjWfAhOcXQNjTLTYXBebAtwNhoMKuo= X-Received: by 2002:a5b:410:: with SMTP id m16mr27671931ybp.309.1597774307805; Tue, 18 Aug 2020 11:11:47 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 18 Aug 2020 18:11:47 +0000 From: Stefan Kangas In-Reply-To: <20181224135946.GA1765@Godzilla.local> (Andrew Kurn's message of "Mon, 24 Dec 2018 05:59:46 -0800") References: <20181224135946.GA1765@Godzilla.local> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 18 Aug 2020 18:11:47 +0000 Message-ID: Subject: Re: bug#33858: 26.1; Scrolling up fails To: Andrew Kurn Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 33858 Cc: 33858@debbugs.gnu.org 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 33858 + moreinfo thanks Andrew Kurn writes: > Here's a holiday treat for you: a weird bug. > > Here's the bug: When I scroll up (using my own function > a-unscroll (q.v.)) and when point is about to scroll down > off the bottom of the screen, the scroll action fails, and > the line with point is repositioned to scroll-step lines > above the bottom of the screen. > > This bug does not appear with emacs -Q. > > I have whittled down my init file to see which statement > triggers the bug. Here is the shortest one for which the > but appears: > > -- > > (global-set-key [(f12)] 'a-scroll) > (global-set-key [(shift f12)] 'a-unscroll) > (defun a-scroll (p) "Scroll this window up (fd) one line." > (interactive "p") > (let (( scroll-preserve-screen-position nil)) > (scroll-up p))) > (defun a-unscroll (p) "Scroll this window down (back) one line." > (interactive "p") > (let (( scroll-preserve-screen-position nil)) > (scroll-up (- p)))) > > (setq scroll-step 3) > (setq next-line-add-newlines nil) > (setq make-backup-files nil) > (setq auto-save-timeout 300) > (setq auto-save-interval 3000) > (setq track-eol t) > (setq line-move-visual nil) > (setq scroll-preserve-screen-position t) > (setq c-tab-always-indent nil) > ;;(setq printer-name "//earth/hp pcl 6") > ;;(setq ps-printer-name printer-name) > > (setq-default case-fold-search nil) > (setq scroll-bar-adjust-thumb-portion nil) > (add-to-list 'default-frame-alist > '(font . "Nimbus Mono-13:bold")) > > -- > > If I remove the add-to-list, the bug goes away. > > Weird, eh? > > Also, if I say emacs -Q and then eval-buffer, no bug. I would like to look into this, but the form of your bug report makes it hard to do so. For example, it contains commented out lines regarding `printer-name', which I think should not be relevant to the issue you describe. Could you please provide a minimal recipe for how to produce this bug, starting from "emacs -Q"? If I don't hear back from you within a couple of weeks, I'll just assume that this is no longer an issue and close this bug. Thanks. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 19 06:00:05 2020 Received: (at 33858-done) by debbugs.gnu.org; 19 Aug 2020 10:00:05 +0000 Received: from localhost ([127.0.0.1]:37918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8Kt2-0005Lh-Ts for submit@debbugs.gnu.org; Wed, 19 Aug 2020 06:00:05 -0400 Received: from mail-yb1-f174.google.com ([209.85.219.174]:34314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8Kt0-0005Kg-Mo for 33858-done@debbugs.gnu.org; Wed, 19 Aug 2020 06:00:03 -0400 Received: by mail-yb1-f174.google.com with SMTP id u6so7177247ybf.1 for <33858-done@debbugs.gnu.org>; Wed, 19 Aug 2020 03:00:02 -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:mime-version:date :message-id:subject:to:cc; bh=M8qRfjLRGMYnaT4qEKfDpaurDtIfOpoRHS84Pe3GUWU=; b=jgx3ozSBFAt766X8SlOBeMOBz/+Tr21emta301j70uF6AC0ytBcQWl62IRVfApUmdn 7fRgzU4oqWAtclx9eGDqdQFxMmA0I5UQRhj5fo4J2YP/fQt1pENkzH64FhnTXuPwy++T foToLic9l2bSZJWG6L53r+xW1ke8iBovDvD74ys57wsNfmPAsavTRZhQtI0AvBs6TBB8 gQHFyQhiIkTOzA/0NHtZTAevdpDLuKx5GiX5/6utBtQ9bijHkkjfzr3lYndyE4k/rbfr Cm0LuPhCviWP1rnCyBIxExetA/RnXv1ZgBH8bDR4+XNICck5PMpg3E0e8IqSEelIlApp JA+g== X-Gm-Message-State: AOAM531PspZH/gzXrXHutDX+LOSZVatVLwA6LD1fyvd9feNBanveRiWD 1Iz0V/xNx6eXYvIPVckhBtp3JkyMDvdZETW93ALcffmL56NLxA== X-Google-Smtp-Source: ABdhPJzSJiG1avmB2zxmkFUVwS30B/SgtFyprDv31mHBK/mvmmspcj2nrcteFDl9LVLZd2sQYprQLtS+WQHqGvMclgU= X-Received: by 2002:a5b:410:: with SMTP id m16mr31535244ybp.309.1597831197155; Wed, 19 Aug 2020 02:59:57 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 19 Aug 2020 09:59:55 +0000 From: Stefan Kangas In-Reply-To: <20200819021651.GA10431@gremlin.telus.net> References: <20181224135946.GA1765@Godzilla.local> <20200819021651.GA10431@gremlin.telus.net> MIME-Version: 1.0 Date: Wed, 19 Aug 2020 09:59:55 +0000 Message-ID: Subject: Re: bug#33858: 26.1; Scrolling up fails To: Andrew Kurn Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: [Please include the bug address in Cc when replying to Emacs bug reports.] Andrew Kurn writes: > Can't reproduce with current version, so go ahead and close it. Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.174 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.174 listed in wl.mailspike.net] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 SHORT_SHORTNER Short body with little more than a link to a shortener X-Debbugs-Envelope-To: 33858-done Cc: 33858-done@debbugs.gnu.org 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.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: [Please include the bug address in Cc when replying to Emacs bug reports.] Andrew Kurn writes: > Can't reproduce with current version, so go ahead and close it. Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.174 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.174 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 SHORT_SHORTNER Short body with little more than a link to a shortener [Please include the bug address in Cc when replying to Emacs bug reports.] Andrew Kurn writes: > Can't reproduce with current version, so go ahead and close it. Thank you, I'm therefore closing this bug now. Best regards, Stefan Kangas From unknown Fri Jun 13 06:08:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Sep 2020 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator