From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Andrea Cardaci Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jun 2019 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36421@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156173882123735 (code B ref -1); Fri, 28 Jun 2019 16:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2019 16:20:21 +0000 Received: from localhost ([127.0.0.1]:42871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgtbo-0006Al-Oa for submit@debbugs.gnu.org; Fri, 28 Jun 2019 12:20:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:44271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgtbn-0006Ac-C0 for submit@debbugs.gnu.org; Fri, 28 Jun 2019 12:20:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38752) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgtbj-00055p-5O for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:20:17 -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,FREEMAIL_FROM, HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgtbi-0006ra-5D for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:20:15 -0400 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:34087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgtbh-0006n0-Nv for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:20:13 -0400 Received: by mail-io1-xd35.google.com with SMTP id k8so13781080iot.1 for ; Fri, 28 Jun 2019 09:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6+ax05inbRww4iymQ5Om9WJNsK/WhHy3cxB3fIugNR8=; b=B4dCHvpPVjnZ/XBveA2dCggmXKvWUfgATvd1fDOw6bPOnF6SRGfyXnLdygwWVSOdYD Muii8qHldF65cug5SsvZlaRZfqhLO6ZB0QU+qOKqzNpaNQ1a4CEpegJNpa355CgkCFBK A8meaZkooiPwNy/ZJ+fBOrA5CBv8/Lehtd1I9M7TfI7BWStWBpgWJrWe/Plz9kisQB5H UCvr+qNvvsrPWhQL9tr/9yDxNBACE/spKVyBXbpy4E0VmrcHtrpPkAqs4Mh+b9g8VjHa UgxdU9MaEKh1oZKQ0I52HNR5kFdyCZyst8mbwiTFWCM0t8F01AhCjbjt3+JnCSd7XuEU v5Sg== 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=6+ax05inbRww4iymQ5Om9WJNsK/WhHy3cxB3fIugNR8=; b=obQ4M1ccY46duVdZ4nm7CEBjRgzrsP7yXG3LHM9Qt/VxlZYJQQrVrGFihleweZm13U 0NQHix3Ac42SGFHI3NwxsappobjFdns7ejbRuhpoXlyH+v0lAvJHYFrf7UlsYjZggI1d 5Ja04pMkRDi/U17DtOB+HA1VeN7U241LX3HqrQ4lagRAFI5BVgP/CNxSEtW4rnT9B6HD nKKvlg/G7EMfqmfOOXK0PpO6XHtGSc+5l4n7lwSraOUh3uWrmyWdBP6uLgBMQ4uW/m4i VTrNpX4wbM/8qgkv9UlnyEEqIsZnOSx0wPxU+IJukOzGVCHwljPcJN1VE+iKjnttN1Hx Bo1w== X-Gm-Message-State: APjAAAWMmnXHbq01FTINmCuoZJYTJUWVD8ewHnsOWx3ZuQJ8w4FIhJT9 8nVcFM2CkBXGzoKEzn3maZ7Vwoy7At6Fwotr5q5TVPL7 X-Google-Smtp-Source: APXvYqz3D/WEjHcjF4BkXecVql+MfDc0Un3Y31YSeW0KobQbf8yMZN84vvrthllRzv0EGMc4xNYJNRS5x6HHtzGHnpY= X-Received: by 2002:a5d:9d83:: with SMTP id 3mr11342829ion.65.1561738809860; Fri, 28 Jun 2019 09:20:09 -0700 (PDT) MIME-Version: 1.0 From: Andrea Cardaci Date: Fri, 28 Jun 2019 18:19:58 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000fe6bd0058c64a651" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d35 X-Spam-Score: -1.3 (-) 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: -2.3 (--) --000000000000fe6bd0058c64a651 Content-Type: text/plain; charset="UTF-8" Hi, Basically as the title says, here's how to reproduce this: 1. start Emacs with -Q; 2. evaluate this sexp: (progn (custom-set-variables '(scroll-step 1) '(scroll-margin 0)) (with-current-buffer (switch-to-buffer "test") (insert (make-string 100 ?\n) (propertize "XXX" 'face '(:height 2.0)) (make-string 100 ?\n)))) 3. in the newly created buffer press and keep pressed . You'll notice that the point moves to the top of the window and stays there, but as soon as it *steps* over "XXX", the point is centered. This is pretty annoying in my case where I use big headings in Markdown mode. This happens, at least, in Emacs 25.1.1, 24.5.1 and 26.2 on Linux. Please let me know if you need additional details. Best, Andrea --000000000000fe6bd0058c64a651 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Basically as the title says, here&#= 39;s how to reproduce this:

1. start Emacs with -Q= ;

2. evaluate this sexp:

= =C2=A0 =C2=A0(progn
=C2=A0 =C2=A0 =C2=A0(custom-set-variables
=C2=A0 = =C2=A0 =C2=A0 '(scroll-step 1)
=C2=A0 =C2=A0 =C2=A0 '(scroll-mar= gin 0))
=C2=A0 =C2=A0 =C2=A0(with-current-buffer (switch-to-buffer "= ;test")
=C2=A0 =C2=A0 =C2=A0 =C2=A0(insert (make-string 100 ?\n) =C2=A0 =C2=A0 =C2=A0 (propertize "XXX" 'face '(:height= 2.0))
=C2=A0 =C2=A0 =C2=A0 (make-string 100 ?\n))))

3. in the newly created buffer press and keep pressed <up>.

You'll notice that the point moves to the top of the w= indow and stays there, but as soon as it *steps* over "XXX", the = point is centered.

This is pretty annoying in my c= ase where I use big headings in Markdown mode.

Thi= s happens, at least, in Emacs 25.1.1, 24.5.1 and 26.2 on Linux. Please let = me know if you need additional details.


=
Best,

Andrea
--000000000000fe6bd0058c64a651-- From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jun 2019 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Cardaci Cc: 36421@debbugs.gnu.org Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156175632015524 (code B ref 36421); Fri, 28 Jun 2019 21:12:02 +0000 Received: (at 36421) by debbugs.gnu.org; 28 Jun 2019 21:12:00 +0000 Received: from localhost ([127.0.0.1]:43119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgyA3-00042K-PE for submit@debbugs.gnu.org; Fri, 28 Jun 2019 17:11:59 -0400 Received: from mail-ot1-f52.google.com ([209.85.210.52]:39430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgyA0-00041u-Ln for 36421@debbugs.gnu.org; Fri, 28 Jun 2019 17:11:57 -0400 Received: by mail-ot1-f52.google.com with SMTP id r21so6708595otq.6 for <36421@debbugs.gnu.org>; Fri, 28 Jun 2019 14:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=28hHhuDILpoThepOMQTU3fzpmrvALRYAHABEWeQRiHk=; b=diJrJqVCUy9+7ngbvZqxYMAF6x7q3MVTMOoah/mUDNVuxwOukf7P7zRibZbmeNfuNx UnftTRP/NjfVMOWExtfyBFY//2+tbULDk4Cn7KOUMuJCwlXAgxUnuDnNMB4UIDvLoh6u c/ePQRgZvchBZpIidrOf+kJx6RXiqhsKy94sBb6i76pD0pwJb7nQpkUog8TYcmyIUQhD oDkX2gLq4bYAbXBB4WE7PvXDKHv34JKo40FC1N5chnJ0Sf3sKP9Yw7zgq5nuv0Uq7tcu 7gHIbRSXgNFbyH4oR1ik1+Z3h+joiNuomtSNIWZ+kERWcRZPMyQP4NddwNXrEeqmLZlP E5vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=28hHhuDILpoThepOMQTU3fzpmrvALRYAHABEWeQRiHk=; b=KkaH+njhjgffFTrfDTj0n4KMGM2WiHuUscPYTdY+PhYiwPyn1P1eeEmaKKnSP3WLjl 7PyT66djKgXMCwiau8A+KpPv/excjXEbcd5M9xp9VqmSCXMqriXdimTtkBVHhi+dtIRo qP4bEph5dQwrY7oAEq7odLvnmI8rIYuW2MtCnZcNHir54iATvZ2suzf4OzSzqR5oeH+i dywXLLXYXyoQDJHUAr9raqhAWguYjQx+XIfv4V5NzOKRJrP+xJEQidcUUr2O9pgB+jSq Yk8vEDFirnIghAKLBPylpLlw9i2wsySEAcezSnEgd/ZA2iOJlcG/LD1dhE3Ha14mNauF jnmQ== X-Gm-Message-State: APjAAAV9r9//ABwsQ49u8dAm813Wl9It4GsFoinb5Kod9b29viPAyCCy sKjPExrmn2weHZjsoZouKtJun/ejzkP00qVU0HFa4lpDPqc= X-Google-Smtp-Source: APXvYqwm09Mep5/Rugy1E4cPMOr56R5dsurZHzBy2RIbKOIYxoXR5Bp0Si8rk7daX3F1P9aPOPvVbnb9nfN/vbNM5PM= X-Received: by 2002:a9d:7352:: with SMTP id l18mr10187650otk.292.1561756311189; Fri, 28 Jun 2019 14:11:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pip Cet Date: Fri, 28 Jun 2019 21:11:15 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" 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 (-) On Fri, Jun 28, 2019 at 4:27 PM Andrea Cardaci wrote: > Basically as the title says, here's how to reproduce this: > > 1. start Emacs with -Q; > > 2. evaluate this sexp: > > (progn > (custom-set-variables > '(scroll-step 1) > '(scroll-margin 0)) I think you want scroll-conservatively. Here's the documentation: DEFVAR_INT ("scroll-step", emacs_scroll_step, doc: /* The number of lines to try scrolling a window by when point moves out. If that fails to bring point back on frame, point is centered instead. If this is zero, point is always centered after it moves off frame. If you want scrolling to always be a line at a time, you should set `scroll-conservatively' to a large value rather than set this to 1. */); DEFVAR_INT ("scroll-conservatively", scroll_conservatively, doc: /* Scroll up to this many lines, to bring point back on screen. If point moves off-screen, redisplay will scroll by up to `scroll-conservatively' lines in order to bring point just barely onto the screen again. If that cannot be done, then redisplay recenters point as usual. If the value is greater than 100, redisplay will never recenter point, but will always scroll just enough text to bring point into view, even if you move far away. A value of zero means always recenter point if it moves off screen. */); From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Andrea Cardaci Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jun 2019 23:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pip Cet Cc: 36421@debbugs.gnu.org Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156176461530918 (code B ref 36421); Fri, 28 Jun 2019 23:31:02 +0000 Received: (at 36421) by debbugs.gnu.org; 28 Jun 2019 23:30:15 +0000 Received: from localhost ([127.0.0.1]:43166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hh0Jq-00082c-Nf for submit@debbugs.gnu.org; Fri, 28 Jun 2019 19:30:15 -0400 Received: from mail-io1-f54.google.com ([209.85.166.54]:41867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hh0Jo-00082K-J7 for 36421@debbugs.gnu.org; Fri, 28 Jun 2019 19:30:13 -0400 Received: by mail-io1-f54.google.com with SMTP id w25so15960675ioc.8 for <36421@debbugs.gnu.org>; Fri, 28 Jun 2019 16:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZIfAK45skvCKEQisTtH9o2CMTbpFz+ZJGCxI2pcCtlI=; b=ONtPVU7wQ0FuSwom2rcUsuyX2v+Ln+aWaPrl+qn8qrlD/YSr+hz4nL4o7lMQtqVVR7 IV+pUlxEzAr+nsMwt2qnrjNrkUHG/iv4FFSyH+smPGGCoKP6DfQhELYtORkgq7jne1tK fK3DuNawkJZd/2AJRInXVqkICL+ZpwXppY/vqBvebZCE4yKrNWGW/cdIxP4ezg+POBoO 7spBeySniDmo88qPF7YXLF4db9RHsIXM5MOa97hxIBWoourLmF/DNc5An+gceprozOry odWkUJYsoT4MqLY5668WpbJBt/bvnzlQYlLBOFffzTTOPv8hvgrGlQeNvUEv28WFA30d pWMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZIfAK45skvCKEQisTtH9o2CMTbpFz+ZJGCxI2pcCtlI=; b=R+kDo2AKC5B3P6jUbSkcWfOPbTC2pc2BnlBQfOQ11xLNJBTFkuwrnlUnDEgYciV7+c uTc4z/bhgSanu9HZMOnCfPv5xeg2NTVQVDMpr2m+9oioLRE+qJcd6kWq3wcERMdN3ngp k/SliJVyZPKuyu98D/8tkqZFZZAd8LLxYnX5F6odWpk8Jl7hBW95F929hBgwuuoYT6oF q9Sznq0DFpjIoSwQo40rVUHGrjX8+PtzPhT9sENVin2VYhVFhxQMAkomNXI5d7f44xzn ITk4tZyJ5PNd2DrbgXxxK6zKZrtjd0bQmhMPfkwdGubQ07vyrTTPl1LV7jPvnLK8xPrR Qtdg== X-Gm-Message-State: APjAAAWYXgE1zkgwbIfXbTM1ttJ39MKxWiuCeDQ6JuF3RXarNcTqZhUS POUtXRvXTM7mCODAiVXbxUcMEGm5UZenKI0T/W4= X-Google-Smtp-Source: APXvYqzhafOTkfmZ7rQOY3KMkH9Hj1EkAZpffnbnCoDYkHE8RX1GvvG9AXiBpNobLZ9h7J9ji81GFc3YdYKNWZGznew= X-Received: by 2002:a6b:8b8b:: with SMTP id n133mr13209080iod.183.1561764606599; Fri, 28 Jun 2019 16:30:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrea Cardaci Date: Sat, 29 Jun 2019 01:29:54 +0200 Message-ID: Content-Type: multipart/alternative; boundary="0000000000009966ef058c6aa80d" 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 (-) --0000000000009966ef058c6aa80d Content-Type: text/plain; charset="UTF-8" Yes, thanks, I'm aware of that (and actually the issue doesn't appear if I use a value > 100 for that variable), but it does a different thing, for example it does not center anymore the next word when I use interactive search and that's something nice to have. Moreover, it looks like a bug nevertheless... On Fri, Jun 28, 2019, 11:11 PM Pip Cet wrote: > On Fri, Jun 28, 2019 at 4:27 PM Andrea Cardaci > wrote: > > Basically as the title says, here's how to reproduce this: > > > > 1. start Emacs with -Q; > > > > 2. evaluate this sexp: > > > > (progn > > (custom-set-variables > > '(scroll-step 1) > > '(scroll-margin 0)) > > I think you want scroll-conservatively. Here's the documentation: > > DEFVAR_INT ("scroll-step", emacs_scroll_step, > doc: /* The number of lines to try scrolling a window by when > point moves out. > If that fails to bring point back on frame, point is centered instead. > If this is zero, point is always centered after it moves off frame. > If you want scrolling to always be a line at a time, you should set > `scroll-conservatively' to a large value rather than set this to 1. */); > > DEFVAR_INT ("scroll-conservatively", scroll_conservatively, > doc: /* Scroll up to this many lines, to bring point back on screen. > If point moves off-screen, redisplay will scroll by up to > `scroll-conservatively' lines in order to bring point just barely > onto the screen again. If that cannot be done, then redisplay > recenters point as usual. > > If the value is greater than 100, redisplay will never recenter point, > but will always scroll just enough text to bring point into view, even > if you move far away. > > A value of zero means always recenter point if it moves off screen. */); > --0000000000009966ef058c6aa80d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, thanks, I'm aware of that (and actually the issu= e doesn't appear if I use a value > 100 for that variable), but it d= oes a different thing, for example it does not center anymore the next word= when I use interactive search and that's something nice to have.

Moreover, it looks like a bug never= theless...

On Fri, Jun 28, 2019, 11:11 PM Pip Cet <pipcet@gmail.com> wrote:
On Fri, Jun 28, 2019 at 4:27 PM Andrea Cardaci <cyrus.= and@gmail.com> wrote:
> Basically as the title says, here's how to reproduce this:
>
> 1. start Emacs with -Q;
>
> 2. evaluate this sexp:
>
>=C2=A0 =C2=A0 (progn
>=C2=A0 =C2=A0 =C2=A0 (custom-set-variables
>=C2=A0 =C2=A0 =C2=A0 =C2=A0'(scroll-step 1)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0'(scroll-margin 0))

I think you want scroll-conservatively. Here's the documentation:

=C2=A0 DEFVAR_INT ("scroll-step", emacs_scroll_step,
=C2=A0 =C2=A0 doc: /* The number of lines to try scrolling a window by when=
point moves out.
If that fails to bring point back on frame, point is centered instead.
If this is zero, point is always centered after it moves off frame.
If you want scrolling to always be a line at a time, you should set
`scroll-conservatively' to a large value rather than set this to 1.=C2= =A0 */);

=C2=A0 DEFVAR_INT ("scroll-conservatively", scroll_conservatively= ,
=C2=A0 =C2=A0 doc: /* Scroll up to this many lines, to bring point back on = screen.
If point moves off-screen, redisplay will scroll by up to
`scroll-conservatively' lines in order to bring point just barely
onto the screen again.=C2=A0 If that cannot be done, then redisplay
recenters point as usual.

If the value is greater than 100, redisplay will never recenter point,
but will always scroll just enough text to bring point into view, even
if you move far away.

A value of zero means always recenter point if it moves off screen.=C2=A0 *= /);
--0000000000009966ef058c6aa80d-- From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2019 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Cardaci Cc: 36421@debbugs.gnu.org, pipcet@gmail.com Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156179378012721 (code B ref 36421); Sat, 29 Jun 2019 07:37:02 +0000 Received: (at 36421) by debbugs.gnu.org; 29 Jun 2019 07:36:20 +0000 Received: from localhost ([127.0.0.1]:43346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hh7uF-0003J2-O5 for submit@debbugs.gnu.org; Sat, 29 Jun 2019 03:36:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hh7uA-0003Ig-8u; Sat, 29 Jun 2019 03:36:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hh7u4-0000Ta-Sx; Sat, 29 Jun 2019 03:36:08 -0400 Received: from [176.228.60.248] (port=3544 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hh7u4-0006F0-7h; Sat, 29 Jun 2019 03:36:08 -0400 Date: Sat, 29 Jun 2019 10:35:57 +0300 Message-Id: <83blyghmhu.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Andrea Cardaci on Sat, 29 Jun 2019 01:29:54 +0200) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) tags 36421 notabug thanks > From: Andrea Cardaci > Date: Sat, 29 Jun 2019 01:29:54 +0200 > Cc: 36421@debbugs.gnu.org > > Yes, thanks, I'm aware of that (and actually the issue doesn't appear if I use a value > 100 for that variable), > but it does a different thing, for example it does not center anymore the next word when I use interactive > search and that's something nice to have. > > Moreover, it looks like a bug nevertheless... It is not a bug. scroll-step works in units of the canonical line height, not of the actual height of the line that needs to be scrolled into the view. In your case, when the line of double height is scrolled by the amount of pixels that are equal to the height of the frame's default face, point winds up in a partially visible line, so Emacs recenters to fix that. If you have a lot of higher-than-default lines, and you don't like the effect of scroll-conservatively, then my suggestion is to set scroll-conservatively to 2 or 3. Btw, why do you find recentering annoying? It's the default Emacs way of bringing the next windowful of text into view together with some context. Scrolling by just one line is sub-optimal because you don't see all of the context: the text below the last line is not visible. In general, all the scroll-* options except scroll-conservatively don't guarantee you won't see recentering in some situations. That's because scroll-conservatively is an expensive option, it slows down scrolling, in some cases considerably. The other options are much faster, but you "pay" for that by sometimes seeing Emacs recenter. From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2019 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Eli Zaretskii Cc: 36421@debbugs.gnu.org, pipcet@gmail.com, Andrea Cardaci Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156183814810835 (code B ref 36421); Sat, 29 Jun 2019 19:56:01 +0000 Received: (at 36421) by debbugs.gnu.org; 29 Jun 2019 19:55:48 +0000 Received: from localhost ([127.0.0.1]:44934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhJRs-0002og-42 for submit@debbugs.gnu.org; Sat, 29 Jun 2019 15:55:48 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:45295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhJRn-0002oS-Vt for 36421@debbugs.gnu.org; Sat, 29 Jun 2019 15:55:46 -0400 Received: by mail-qk1-f179.google.com with SMTP id s22so7868491qkj.12 for <36421@debbugs.gnu.org>; Sat, 29 Jun 2019 12:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0gXkKIJTehURHLUdLOyJmOjCiUkoDk/uf86udRFfEcA=; b=csOMZzqEmf7w8OTyakxS7GtfmdZ/hfkmqabf05oE/7A8x80lYm1o5NOnIOhYuHepaM R6QR3C88g/BQtQYK/eWe7aHzpvAmebR78kLXQrivL5cMMgZZPIryW73l0XVQw3t0VIZp VsevPc0gQMezG+E5MgrED+tn48dWdANxrsc9L6b1R4ZoA/qUdjQb45a+/5S5RKKp/jMN BbwiqbBLGPS2+9FKTVhCgaaVJbI8HYwJsREoUDH742hWF3O/O+jDOljTghZhj3o+69qc qzrVU6tPkz+BBsanu6dao4/RnoC0XMdoEovBKOziuvVjvB+OnOPLZpRQYsNwczKb5YwQ IeTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0gXkKIJTehURHLUdLOyJmOjCiUkoDk/uf86udRFfEcA=; b=E+G7QuxLy2VY5Vl5S8cW22atr1iCuxfTDVNCyExKAhTNaIDGu8VVU4IKwvwzyBjNea e5UznnV0SKgWdD+Jb6EIzPLuNQg7EeS07y+n2xyFpHSH7c0oNNOMaDGyywumhBAQ73AR ICCBT2E3ZlOOaEPLvGFR7LoTYjO/8fHAErvRk/FF6XKRCSGD4OlxErS64QkpJKbTtsIJ rG+g22slobaxjWpG69yBvBoWzp/PUP7QYdqs4FLWGoi1mgf0UUSd/+LYNnY7wEvis0j1 WAE7GXbWjFfw8PAd6+d5aTofdqrJ2UjU8HOmSpPef0DwCdNGUtzV3Ifi2AwFIFFw5b6G Ipdg== X-Gm-Message-State: APjAAAWDCz6aGAX9pNkueA1/6bRzURhtWjq+P/cguTQKXLpUmTswoPEf oWXNptgXrmBeqX6+8R0CDBg0JAzmNO1TZjy3gAc= X-Google-Smtp-Source: APXvYqz4k1K8r2n/OqyQ08/gKR2hKSFiI5XORl85GmKM8QwDo75NlB+PURGKKvzANQ4i5cRHfT+U98h0/hhxm9gDi3U= X-Received: by 2002:a37:517:: with SMTP id 23mr14260782qkf.496.1561838138154; Sat, 29 Jun 2019 12:55:38 -0700 (PDT) MIME-Version: 1.0 References: <83blyghmhu.fsf@gnu.org> In-Reply-To: <83blyghmhu.fsf@gnu.org> From: Juanma Barranquero Date: Sat, 29 Jun 2019 21:55:02 +0200 Message-ID: Content-Type: multipart/alternative; boundary="0000000000006be4b2058c7bc78b" 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 (-) --0000000000006be4b2058c7bc78b Content-Type: text/plain; charset="UTF-8" On Sat, Jun 29, 2019 at 9:37 AM Eli Zaretskii wrote: > Btw, why do you find recentering annoying? It's the default Emacs way > of bringing the next windowful of text into view together with some > context. Scrolling by just one line is sub-optimal because you don't > see all of the context: the text below the last line is not visible. I don't think there's any simple answer to that. I remember discussing this in emacs-devel long ago (back when the new font backends where introduced and line-by-line scrolling was unable to keep with typing repeatedly). The answer, I suspect, is just that some of us are wired that way. You see it as recentering bringing up new context, I see it as forcing my visual cortex to scramble to go to the center of the window to re-locate the line I was looking at. That's not only slower than just looking at new lines as they appear at the bottom. but also quite uncomfortable. The effect is so severe that, if Emacs only had recentering and line-by-line scrolling were impossible, it would literally be unusable for me. In fact, I think setting line-by-line scrolling was the very first thing I set up in Emacs, back in 1998 when I started using it. Had not found the options to do it, Emacs would've been gone from my computer at once. So count me as someone very grateful of the hard effort you put back then to make it work efficiently. --0000000000006be4b2058c7bc78b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sat, Jun 29, 2019 at 9:37 AM Eli Zaretskii <eliz@gnu.org> wrote:

> Bt= w, why do you find recentering annoying?=C2=A0 It's the default Emacs w= ay
> of bringing the next windowful of text into view together with s= ome
> context.=C2=A0 Scrolling by just one line is sub-optimal becaus= e you don't
> see all of the context: the text below the last lin= e is not visible.

I don't think there's any simpl= e answer to that. I remember discussing this in emacs-devel long ago (back = when the new font backends where introduced and line-by-line scrolling was = unable to keep with typing <down> repeatedly).

The answer, I suspect, is just that some of us are wired that way. You s= ee it as recentering bringing up new context, I see it as forcing my visual= cortex to scramble to go to the center of the window to re-locate the line= I was looking at. That's not only slower than just looking at new line= s as they appear at the bottom. but also quite uncomfortable.

The ef= fect is so severe that, if Emacs only had recentering and line-by-line scro= lling were impossible, it would literally be unusable for me. In fact, I th= ink setting line-by-line scrolling was the very first thing I set up in Ema= cs, back in 1998 when I started using it. Had not found the options to do i= t, Emacs would've been gone from my computer at once.

So count me as someone very grateful of the hard effort you put bac= k then to make it work efficiently.
--0000000000006be4b2058c7bc78b-- From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Andrea Cardaci Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2019 22:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Juanma Barranquero Cc: Eli Zaretskii , 36421@debbugs.gnu.org, Pip Cet Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156184820725607 (code B ref 36421); Sat, 29 Jun 2019 22:44:02 +0000 Received: (at 36421) by debbugs.gnu.org; 29 Jun 2019 22:43:27 +0000 Received: from localhost ([127.0.0.1]:45042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhM47-0006ew-Fz for submit@debbugs.gnu.org; Sat, 29 Jun 2019 18:43:27 -0400 Received: from mail-io1-f54.google.com ([209.85.166.54]:45176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhM45-0006ej-1g for 36421@debbugs.gnu.org; Sat, 29 Jun 2019 18:43:26 -0400 Received: by mail-io1-f54.google.com with SMTP id e3so20246553ioc.12 for <36421@debbugs.gnu.org>; Sat, 29 Jun 2019 15:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TLiNcPIpNVRyJ3zvj8we5NaAx9uaonbJc7hAdyaX4rE=; b=dv1Uw7eOZHqpUmIsb5O1LzuBM7eiNA5bfyDGmGiny9Oli+eJ4eJT4XICXSdpT+FNaP CrLpRZ2seAkx2TYYAKjY1Y42s+N3amTpWr0IuTaz+sUChGo+HHJx7dD66m5e3/imx3Em XcNg+PDephAZV95zMzIiQpfpZsSovFN8EYv+m5jXBX0nK9hB4xElcmGDtyNjCntVHcB5 wjtOv3pXSLz+hbm08f7ZPS5jhJThSmfx8lUI/TO5jRP3YSzueaYFiDuwG9tZ/FgpFHny liXByNUP3CL6ObsVUXB/MfQNB7o0kDDXNs5qEZJAS3UvSK6pbEq5M2tmm/xXITVMdH47 mFOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TLiNcPIpNVRyJ3zvj8we5NaAx9uaonbJc7hAdyaX4rE=; b=Lc8dG2inADM1VNvVqrOz8ubg6qQX6mctadARJGZjehyj4+Et5bw2P+8JKk+H2RSSs6 YT6kS4lFV2XeX7Tpd82xh+3OtBzHIbTC8dWjFsqClFBpVPAva9KrjIJaVnE8hqk1R4xZ mwlC1ZQ5AJOxTImn2yKdf2nrTdga/043tCQw9gi0kPHZ+ZICrVxMlvRHe+LVC3+GpAGJ /TV6iLqaAt+7OnCBlmricWV3QnzsNisCpItJqWGK9kLZBmZAMrHhD2zVTnYepfQ8Y/+x v7+xcE/eIzFmXdUd4rIzleERsrGvXjCyzMTtTfMJrwrBz8elV14znPEoPDQNH4Hg+7TH 7Jog== X-Gm-Message-State: APjAAAWM+3qo40WzQq1pSQEAaJra9nu0eX9Cj638kz9h8Xcl4bovs4cB 45M+lGUiYPCdbyc2fwT1RIS7p+LpHeFTLD9L4Xk= X-Google-Smtp-Source: APXvYqyQ3Li0elncSe6DaFc6JVDO2Vwg/t4Y69FZ3QbIdSXI1zGqQtthF/pj5Q6CBxAA99RSsq41CT51tu5A4aNkkss= X-Received: by 2002:a5e:c30f:: with SMTP id a15mr12119636iok.246.1561848199021; Sat, 29 Jun 2019 15:43:19 -0700 (PDT) MIME-Version: 1.0 References: <83blyghmhu.fsf@gnu.org> In-Reply-To: From: Andrea Cardaci Date: Sun, 30 Jun 2019 00:43:07 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" 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 (-) On Sat, Jun 29, 2019 at 9:37 AM Eli Zaretskii wrote: > In your case, when the line of double height is scrolled by the amount > of pixels that are equal to the height of the frame's default face, > point winds up in a partially visible line, so Emacs recenters to fix > that. The explanation makes sense, thanks. > If you have a lot of higher-than-default lines, and you don't like the > effect of scroll-conservatively, then my suggestion is to set > scroll-conservatively to 2 or 3. It's much better this way (set to 2), there are still some *unpleasant* moments where the point is not exactly on the bottom (by a fraction of line height) and some others where the point is scrolled up by one entire line. But I guess this unavoidable, maybe I should just stop worrying and love the recentering... > Btw, why do you find recentering annoying? It's the default Emacs way > of bringing the next windowful of text into view together with some > context. Scrolling by just one line is sub-optimal because you don't > see all of the context: the text below the last line is not visible. Juanma Barranquero summarized my point perfectly. From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jun 2019 14:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Juanma Barranquero Cc: 36421@debbugs.gnu.org, pipcet@gmail.com, cyrus.and@gmail.com Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156190654920621 (code B ref 36421); Sun, 30 Jun 2019 14:56:01 +0000 Received: (at 36421) by debbugs.gnu.org; 30 Jun 2019 14:55:49 +0000 Received: from localhost ([127.0.0.1]:47101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhbF7-0005MW-C8 for submit@debbugs.gnu.org; Sun, 30 Jun 2019 10:55:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhbF3-0005MI-QO for 36421@debbugs.gnu.org; Sun, 30 Jun 2019 10:55:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hhbEy-0006dZ-GL; Sun, 30 Jun 2019 10:55:40 -0400 Received: from [176.228.60.248] (port=4198 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hhbEx-0007W6-Ap; Sun, 30 Jun 2019 10:55:40 -0400 Date: Sun, 30 Jun 2019 17:55:32 +0300 Message-Id: <83d0ivf7h7.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Juanma Barranquero on Sat, 29 Jun 2019 21:55:02 +0200) References: <83blyghmhu.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Juanma Barranquero > Date: Sat, 29 Jun 2019 21:55:02 +0200 > Cc: Andrea Cardaci , 36421@debbugs.gnu.org, pipcet@gmail.com > > > Btw, why do you find recentering annoying? It's the default Emacs way > > of bringing the next windowful of text into view together with some > > context. Scrolling by just one line is sub-optimal because you don't > > see all of the context: the text below the last line is not visible. > > I don't think there's any simple answer to that. I remember discussing this in emacs-devel long ago (back > when the new font backends where introduced and line-by-line scrolling was unable to keep with typing > repeatedly). > > The answer, I suspect, is just that some of us are wired that way. You see it as recentering bringing up new > context, I see it as forcing my visual cortex to scramble to go to the center of the window to re-locate the line I > was looking at. That's not only slower than just looking at new lines as they appear at the bottom. but also > quite uncomfortable. This assumes that Emacs is used for prolonged scrolling through buffers, one line at a time. That is something that happens to me only very seldom, read: never. Emacs is an editor, not a pager; and if I ever need to page through a buffer, I do it with C-v and its ilk, i.e. with scroll commands, not with commands that move point. From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jun 2019 17:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Eli Zaretskii Cc: 36421@debbugs.gnu.org, pipcet@gmail.com, cyrus.and@gmail.com Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.15619145048333 (code B ref 36421); Sun, 30 Jun 2019 17:09:02 +0000 Received: (at 36421) by debbugs.gnu.org; 30 Jun 2019 17:08:24 +0000 Received: from localhost ([127.0.0.1]:47197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdJQ-0002AL-7k for submit@debbugs.gnu.org; Sun, 30 Jun 2019 13:08:24 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:46437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhdJK-0002A2-Gp for 36421@debbugs.gnu.org; Sun, 30 Jun 2019 13:08:19 -0400 Received: by mail-qk1-f182.google.com with SMTP id x18so9155234qkn.13 for <36421@debbugs.gnu.org>; Sun, 30 Jun 2019 10:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YOB7x3knMZE57n6JMff6FIUwIYVwEEuzH46JfH05gNQ=; b=S+RhLJGvnbR0cuKqaCWmaSMk/KW4lAHNWgAQkHaZuvS/jwk/q/x03K98XR2Qrdhbnx W+O7JQL8sPqbtsGEm4EhTJx/RkqjRWKf1LBZUAQb7WnNQCXfwy5TvhtSzMHufsvjQh4m O9XBtwyrf+/Ow/rm4YM1BGiERJHdGp45MktT3FWHyZWGOEj3shZRekt/cKb584vnkOJ8 yus5oTnwq9N0bWZ4eiOuReZ6KNRXhNRDPC6K1k36X3KLf0dLEo2GyzUYFER+8WlWJnoX D3hXxi+tntn2MxWc5HjkHYkBDvOE3sD+ihTB0w/tK2wVFKbPCJJYNxZik5rowmVFo4qe GoaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YOB7x3knMZE57n6JMff6FIUwIYVwEEuzH46JfH05gNQ=; b=MhIe4ChH6syC0EsPgKD84syDiOq37sZjcoRnxXOJrB1UmeU+R2Cwm5fyhC3p+uzWGj EpPvAUYzQT07tXE1wJWsbV2/gCPhuxzN0iwpGfGIBf3zBHcikAEN4k6iODoLcDA4oAmr CvsZG/kxohS/6F90ZbaJPRAygEO2nHyKB3HiwtAniLt0iUzvg8MsB7zEaktyOKrFFFar 5+k2xabXS8ljYOwxfzWomDA2y51s127LZQJreezgxLeVMdrrKHafafFqufjfSraadah5 NF9s9lW2hZhGZZuzKAy+co3JLIFkTfMogMyX/WMT803E0vcpLtXhkjhqnkAtnuoRfOio A1Wg== X-Gm-Message-State: APjAAAV7JwZhgYPLGvpDVss9wu9ROVJDW2nrEGzpLe5D+cxccBnhFdRt 5rT0wfSuA+HK/gRYkiAtVWBrhaEPHOKRphvcHng= X-Google-Smtp-Source: APXvYqwlc0u0H1N3Oe1o6IAAVXaX/3C7mRMPS5aEoSGgM/Moc7q/1dGgQSfzNHl6Z7MOG8pW0AhEXVb6bAtLjx2abKM= X-Received: by 2002:a05:620a:1097:: with SMTP id g23mr17067407qkk.185.1561914492915; Sun, 30 Jun 2019 10:08:12 -0700 (PDT) MIME-Version: 1.0 References: <83blyghmhu.fsf@gnu.org> <83d0ivf7h7.fsf@gnu.org> In-Reply-To: <83d0ivf7h7.fsf@gnu.org> From: Juanma Barranquero Date: Sun, 30 Jun 2019 19:07:36 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000085144e058c8d8eeb" 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 (-) --00000000000085144e058c8d8eeb Content-Type: text/plain; charset="UTF-8" On Sun, Jun 30, 2019 at 4:55 PM Eli Zaretskii wrote: > This assumes that Emacs is used for prolonged scrolling through > buffers, one line at a time. Not really. It assumes that for some of us, even one single scrolling with recentering is less comfortable than moving line by line. But anyway, that's the greatness of Emacs: no two people use it the same way. --00000000000085144e058c8d8eeb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sun, Jun 30, 2019 at 4:55 PM Eli Zaretskii <eliz@gnu.org> wrote:

> Th= is assumes that Emacs is used for prolonged scrolling through
> buffe= rs, one line at a time.

Not really. It assumes tha= t for some of us, even one single scrolling with recentering is less comfor= table than moving line by line.

But anyway, that&#= 39;s the greatness of Emacs: no two people use it the same way.
<= br>
--00000000000085144e058c8d8eeb-- From unknown Sun Jun 15 09:02:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2019 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Andrea Cardaci Cc: Juanma Barranquero , Eli Zaretskii , 36421@debbugs.gnu.org, Pip Cet Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156227108631294 (code B ref 36421); Thu, 04 Jul 2019 20:12:02 +0000 Received: (at 36421) by debbugs.gnu.org; 4 Jul 2019 20:11:26 +0000 Received: from localhost ([127.0.0.1]:51973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj84k-00088g-5n for submit@debbugs.gnu.org; Thu, 04 Jul 2019 16:11:26 -0400 Received: from mail-io1-f52.google.com ([209.85.166.52]:34735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj84i-00088S-67 for 36421@debbugs.gnu.org; Thu, 04 Jul 2019 16:11:24 -0400 Received: by mail-io1-f52.google.com with SMTP id k8so14912647iot.1 for <36421@debbugs.gnu.org>; Thu, 04 Jul 2019 13:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=hkj0hbvNaFIiMUDnBSlvHulSUAh1ANEH/1KvO68W+1A=; b=DpucDPs7cKV7vU8gTiyBjN09flYWkiyB047UjTAvDmRo/7up2OKhpLAsDQLZYuf1a2 NkphY4kiX9pERgOwi72dKUdrW2BT/EfCKh5DYAUC0ewq/hMlezcx4L3NFuudA0IW6M35 36PrbiilzF3FHMFmk6JdeaKwwg/YwCq1RdA/EFsGJpt5BmOZ9baaZJ+/4iK7S5hjvLPJ sD3FvWU7E60erWe3Seeqb3Sqjb71yqTplBWwdksR35t/why7Hp/lncaQs4ioDAvigMJf xmPO4xTwR9kPq3aYOv/AuP6DS74xgBMmj5Xw35rBOxSyiytnIok9cMHWKpPNPsokrv2N VVow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=hkj0hbvNaFIiMUDnBSlvHulSUAh1ANEH/1KvO68W+1A=; b=Y9fD6jSGSkF21YMSq2LVTGb80X1wZda6AfoKfL1dzv5AtnGy5JSTq2DaJgv7GQ2nl+ f1zDXeRk0KdA/06pfgra49euN+AtRc8KHQu1KkJICmTOe7wZ/15V9C2ehRA+u4PqTYNI Ta2YlekapXsHo/v4yNeoD/e+cuh0ctRbqRsUUJTGgcsQf/+EBJovHH5BZK/boAwIHDQ5 1RLr/AaxCN9lQo88IEQXAxqJ17RlariCtVIGIrRyqUaldVcEFqOlYESguQ5kMd/JsvEc snHO/xEmn0ylQNApadMTkDkbOhQj9n/go7bnsDNEcpwNUxXk8YUlBUbLG213PXfKlgl7 QdRg== X-Gm-Message-State: APjAAAXIf6XL1NKuSmn01bYfX5mdizUinNYRrX+p+zcL+9F86Tii15MF hOd7L7C6KwwmCG2f9ic5nbQ= X-Google-Smtp-Source: APXvYqyUcYAYh+zPxlpjcvVZ0IqiEW51tCT2LQatPLj4vdxAZcRop0c3QIMEFNupRYnqWZjj6D4Jpg== X-Received: by 2002:a5e:9701:: with SMTP id w1mr187549ioj.294.1562271078591; Thu, 04 Jul 2019 13:11:18 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id z17sm8497949iol.73.2019.07.04.13.11.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jul 2019 13:11:18 -0700 (PDT) From: Noam Postavsky References: <83blyghmhu.fsf@gnu.org> Date: Thu, 04 Jul 2019 16:11:18 -0400 In-Reply-To: (Andrea Cardaci's message of "Sun, 30 Jun 2019 00:43:07 +0200") Message-ID: <85lfxdef15.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain 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 (-) Andrea Cardaci writes: >> If you have a lot of higher-than-default lines, and you don't like the >> effect of scroll-conservatively, then my suggestion is to set >> scroll-conservatively to 2 or 3. > > It's much better this way (set to 2), there are still some > *unpleasant* moments where the point is not exactly on the bottom (by > a fraction of line height) and some others where the point is scrolled > up by one entire line. But I guess this unavoidable, maybe I should > just stop worrying and love the recentering... It looks like scroll-down-line does the right thing, maybe a wrapping command like this would work for you: (defun previous-and-maybe-scroll-line (&optional arg) (interactive "^p") (when (< (line-beginning-position 0) (window-start)) (condition-case () (scroll-down-line arg) (beginning-of-buffer nil))) (previous-line arg)) (define-key global-map [up] 'previous-and-maybe-scroll-line) ;; Corresponding [down] command left as exercise for reader From unknown Sun Jun 15 09:02:09 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Andrea Cardaci Subject: bug#36421: closed (Re: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored) Message-ID: References: X-Gnu-PR-Message: they-closed 36421 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 36421@debbugs.gnu.org Date: Mon, 16 Sep 2019 03:09:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1568603342-26651-1" This is a multi-part message in MIME format... ------------=_1568603342-26651-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36421: Having some text with face height > 1.0 causes scroll-step to be ig= nored which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36421@debbugs.gnu.org. --=20 36421: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36421 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1568603342-26651-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36421-done) by debbugs.gnu.org; 16 Sep 2019 03:08:51 +0000 Received: from localhost ([127.0.0.1]:48981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9hNh-0006vN-4j for submit@debbugs.gnu.org; Sun, 15 Sep 2019 23:08:50 -0400 Received: from mail-pf1-f170.google.com ([209.85.210.170]:46978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9hNf-0006uz-J0 for 36421-done@debbugs.gnu.org; Sun, 15 Sep 2019 23:08:47 -0400 Received: by mail-pf1-f170.google.com with SMTP id q5so22018839pfg.13 for <36421-done@debbugs.gnu.org>; Sun, 15 Sep 2019 20:08:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p4XaponW4jFkUTuJySbOpD7/muQLwh8wkkLHVwjSOTI=; b=QkxTClqOOwFrQ6PZ6HFAf6WMQZysyaxdVcx0lGSE9WmW0veCHokqnuPYUsmC2clINH SsjXvlRnGGa9ru/Kb7snBAABHqWgp51t/OVo1/S8Hbyy2JkYOh48/m/5SIl4XyZG2oSd 0EhNYUTs2hRP5X/wmdi0t1MGVTd1uZSNF/zKds/rFobGfC5QswoR8tF9LigIji44NveW QyLzaOiPSJByZ3AdMn2JtcyprP8NCWWppyk24l4dvs0cvzDSFbElE55rJIkJ1pTj3G1J be3yN8TGRma1sTruYZfD5xzLBLcH/9IwPE7gg/kN7Nx2TcSB5IU0LlCNRCmG04AkAzrD cUfw== X-Gm-Message-State: APjAAAUJ90NBMHTL6hb81f61giKYvZyES7sddGv8uCdLwcta+Ul2TULi gRbgQSdv/9KyCGgFFkNJqqsTq7bH63VPPG/Qkz8= X-Google-Smtp-Source: APXvYqwFwpLIprbvU4JNarF5mD3WTQ1nHgrE0Rq9HmJgWxAPtaJHGTRi6U22cUHQkPeT+aoy7i8orQndJahxlKNuvrA= X-Received: by 2002:a63:ef4d:: with SMTP id c13mr17169564pgk.200.1568603321814; Sun, 15 Sep 2019 20:08:41 -0700 (PDT) MIME-Version: 1.0 References: <83blyghmhu.fsf@gnu.org> In-Reply-To: <83blyghmhu.fsf@gnu.org> From: Stefan Kangas Date: Mon, 16 Sep 2019 05:08:30 +0200 Message-ID: Subject: Re: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 36421-done Cc: 36421-done@debbugs.gnu.org, pipcet@gmail.com, Andrea Cardaci 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 (/) Eli Zaretskii writes: > tags 36421 notabug > thanks > > > From: Andrea Cardaci > > Date: Sat, 29 Jun 2019 01:29:54 +0200 > > Cc: 36421@debbugs.gnu.org > > > > Yes, thanks, I'm aware of that (and actually the issue doesn't appear if I use a value > 100 for that variable), > > but it does a different thing, for example it does not center anymore the next word when I use interactive > > search and that's something nice to have. > > > > Moreover, it looks like a bug nevertheless... > > It is not a bug. scroll-step works in units of the canonical line > height, not of the actual height of the line that needs to be scrolled > into the view. Since this is notabug, I'm also closing it now. Best regards, Stefan Kangas ------------=_1568603342-26651-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Jun 2019 16:20:21 +0000 Received: from localhost ([127.0.0.1]:42871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgtbo-0006Al-Oa for submit@debbugs.gnu.org; Fri, 28 Jun 2019 12:20:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:44271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgtbn-0006Ac-C0 for submit@debbugs.gnu.org; Fri, 28 Jun 2019 12:20:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38752) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgtbj-00055p-5O for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:20:17 -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,FREEMAIL_FROM, HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgtbi-0006ra-5D for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:20:15 -0400 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:34087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgtbh-0006n0-Nv for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:20:13 -0400 Received: by mail-io1-xd35.google.com with SMTP id k8so13781080iot.1 for ; Fri, 28 Jun 2019 09:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6+ax05inbRww4iymQ5Om9WJNsK/WhHy3cxB3fIugNR8=; b=B4dCHvpPVjnZ/XBveA2dCggmXKvWUfgATvd1fDOw6bPOnF6SRGfyXnLdygwWVSOdYD Muii8qHldF65cug5SsvZlaRZfqhLO6ZB0QU+qOKqzNpaNQ1a4CEpegJNpa355CgkCFBK A8meaZkooiPwNy/ZJ+fBOrA5CBv8/Lehtd1I9M7TfI7BWStWBpgWJrWe/Plz9kisQB5H UCvr+qNvvsrPWhQL9tr/9yDxNBACE/spKVyBXbpy4E0VmrcHtrpPkAqs4Mh+b9g8VjHa UgxdU9MaEKh1oZKQ0I52HNR5kFdyCZyst8mbwiTFWCM0t8F01AhCjbjt3+JnCSd7XuEU v5Sg== 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=6+ax05inbRww4iymQ5Om9WJNsK/WhHy3cxB3fIugNR8=; b=obQ4M1ccY46duVdZ4nm7CEBjRgzrsP7yXG3LHM9Qt/VxlZYJQQrVrGFihleweZm13U 0NQHix3Ac42SGFHI3NwxsappobjFdns7ejbRuhpoXlyH+v0lAvJHYFrf7UlsYjZggI1d 5Ja04pMkRDi/U17DtOB+HA1VeN7U241LX3HqrQ4lagRAFI5BVgP/CNxSEtW4rnT9B6HD nKKvlg/G7EMfqmfOOXK0PpO6XHtGSc+5l4n7lwSraOUh3uWrmyWdBP6uLgBMQ4uW/m4i VTrNpX4wbM/8qgkv9UlnyEEqIsZnOSx0wPxU+IJukOzGVCHwljPcJN1VE+iKjnttN1Hx Bo1w== X-Gm-Message-State: APjAAAWMmnXHbq01FTINmCuoZJYTJUWVD8ewHnsOWx3ZuQJ8w4FIhJT9 8nVcFM2CkBXGzoKEzn3maZ7Vwoy7At6Fwotr5q5TVPL7 X-Google-Smtp-Source: APXvYqz3D/WEjHcjF4BkXecVql+MfDc0Un3Y31YSeW0KobQbf8yMZN84vvrthllRzv0EGMc4xNYJNRS5x6HHtzGHnpY= X-Received: by 2002:a5d:9d83:: with SMTP id 3mr11342829ion.65.1561738809860; Fri, 28 Jun 2019 09:20:09 -0700 (PDT) MIME-Version: 1.0 From: Andrea Cardaci Date: Fri, 28 Jun 2019 18:19:58 +0200 Message-ID: Subject: Having some text with face height > 1.0 causes scroll-step to be ignored To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000fe6bd0058c64a651" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d35 X-Spam-Score: -1.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: -2.3 (--) --000000000000fe6bd0058c64a651 Content-Type: text/plain; charset="UTF-8" Hi, Basically as the title says, here's how to reproduce this: 1. start Emacs with -Q; 2. evaluate this sexp: (progn (custom-set-variables '(scroll-step 1) '(scroll-margin 0)) (with-current-buffer (switch-to-buffer "test") (insert (make-string 100 ?\n) (propertize "XXX" 'face '(:height 2.0)) (make-string 100 ?\n)))) 3. in the newly created buffer press and keep pressed . You'll notice that the point moves to the top of the window and stays there, but as soon as it *steps* over "XXX", the point is centered. This is pretty annoying in my case where I use big headings in Markdown mode. This happens, at least, in Emacs 25.1.1, 24.5.1 and 26.2 on Linux. Please let me know if you need additional details. Best, Andrea --000000000000fe6bd0058c64a651 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Basically as the title says, here&#= 39;s how to reproduce this:

1. start Emacs with -Q= ;

2. evaluate this sexp:

= =C2=A0 =C2=A0(progn
=C2=A0 =C2=A0 =C2=A0(custom-set-variables
=C2=A0 = =C2=A0 =C2=A0 '(scroll-step 1)
=C2=A0 =C2=A0 =C2=A0 '(scroll-mar= gin 0))
=C2=A0 =C2=A0 =C2=A0(with-current-buffer (switch-to-buffer "= ;test")
=C2=A0 =C2=A0 =C2=A0 =C2=A0(insert (make-string 100 ?\n) =C2=A0 =C2=A0 =C2=A0 (propertize "XXX" 'face '(:height= 2.0))
=C2=A0 =C2=A0 =C2=A0 (make-string 100 ?\n))))

3. in the newly created buffer press and keep pressed <up>.

You'll notice that the point moves to the top of the w= indow and stays there, but as soon as it *steps* over "XXX", the = point is centered.

This is pretty annoying in my c= ase where I use big headings in Markdown mode.

Thi= s happens, at least, in Emacs 25.1.1, 24.5.1 and 26.2 on Linux. Please let = me know if you need additional details.


=
Best,

Andrea
--000000000000fe6bd0058c64a651-- ------------=_1568603342-26651-1--