GNU bug report logs - #36421
Having some text with face height > 1.0 causes scroll-step to be ignored

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Andrea Cardaci <cyrus.and@HIDDEN>; Keywords: notabug; dated Fri, 28 Jun 2019 16:21:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 36421 <at> debbugs.gnu.org:


Received: (at 36421) by debbugs.gnu.org; 29 Jun 2019 07:36:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 29 03:36:20 2019
Received: from localhost ([127.0.0.1]:43346 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hh7uF-0003J2-O5
	for submit <at> 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 <eliz@HIDDEN>)
 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 <eliz@HIDDEN>)
 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 <eliz@HIDDEN>)
 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@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Cardaci <cyrus.and@HIDDEN>
In-reply-to: <CACMsj9PZocko9mKHMzaOAZrw8TCnH04La=vnKw9WDbTXK2HaUQ@HIDDEN>
 (message from Andrea Cardaci on Sat, 29 Jun 2019 01:29:54 +0200)
Subject: Re: bug#36421: Having some text with face height > 1.0 causes
 scroll-step to be ignored
References: <CACMsj9P_VhC9AayEg_GOoNdAYGh8sfH24xDiqy+XeEFsOg363w@HIDDEN>
 <CAOqdjBcCrsPh8rGrAqrLfGxxVDsQWvPqM+x8sTVe+3bMztmC9Q@HIDDEN>
 <CACMsj9PZocko9mKHMzaOAZrw8TCnH04La=vnKw9WDbTXK2HaUQ@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 36421
Cc: 36421 <at> debbugs.gnu.org, pipcet@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 36421 notabug
thanks

> From: Andrea Cardaci <cyrus.and@HIDDEN>
> Date: Sat, 29 Jun 2019 01:29:54 +0200
> Cc: 36421 <at> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#36421; Package emacs. Full text available.

Message received at 36421 <at> debbugs.gnu.org:


Received: (at 36421) by debbugs.gnu.org; 28 Jun 2019 23:30:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 28 19:30:15 2019
Received: from localhost ([127.0.0.1]:43166 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hh0Jq-00082c-Nf
	for submit <at> 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 <cyrus.and@HIDDEN>) id 1hh0Jo-00082K-J7
 for 36421 <at> 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 <at> 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: <CACMsj9P_VhC9AayEg_GOoNdAYGh8sfH24xDiqy+XeEFsOg363w@HIDDEN>
 <CAOqdjBcCrsPh8rGrAqrLfGxxVDsQWvPqM+x8sTVe+3bMztmC9Q@HIDDEN>
In-Reply-To: <CAOqdjBcCrsPh8rGrAqrLfGxxVDsQWvPqM+x8sTVe+3bMztmC9Q@HIDDEN>
From: Andrea Cardaci <cyrus.and@HIDDEN>
Date: Sat, 29 Jun 2019 01:29:54 +0200
Message-ID: <CACMsj9PZocko9mKHMzaOAZrw8TCnH04La=vnKw9WDbTXK2HaUQ@HIDDEN>
Subject: Re: bug#36421: Having some text with face height > 1.0 causes
 scroll-step to be ignored
To: Pip Cet <pipcet@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000009966ef058c6aa80d"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36421
Cc: 36421 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <pipcet@HIDDEN> wrote:

> On Fri, Jun 28, 2019 at 4:27 PM Andrea Cardaci <cyrus.and@HIDDEN>
> 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

<div dir=3D"auto">Yes, thanks, I&#39;m aware of that (and actually the issu=
e doesn&#39;t appear if I use a value &gt; 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&#39;s something nice to have.<div d=
ir=3D"auto"><br></div><div dir=3D"auto">Moreover, it looks like a bug never=
theless...</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Fri, Jun 28, 2019, 11:11 PM Pip Cet &lt;<a href=3D"mailt=
o:pipcet@HIDDEN">pipcet@HIDDEN</a>&gt; wrote:<br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=
adding-left:1ex">On Fri, Jun 28, 2019 at 4:27 PM Andrea Cardaci &lt;<a href=
=3D"mailto:cyrus.and@HIDDEN" target=3D"_blank" rel=3D"noreferrer">cyrus.=
and@HIDDEN</a>&gt; wrote:<br>
&gt; Basically as the title says, here&#39;s how to reproduce this:<br>
&gt;<br>
&gt; 1. start Emacs with -Q;<br>
&gt;<br>
&gt; 2. evaluate this sexp:<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 (progn<br>
&gt;=C2=A0 =C2=A0 =C2=A0 (custom-set-variables<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0&#39;(scroll-step 1)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0&#39;(scroll-margin 0))<br>
<br>
I think you want scroll-conservatively. Here&#39;s the documentation:<br>
<br>
=C2=A0 DEFVAR_INT (&quot;scroll-step&quot;, emacs_scroll_step,<br>
=C2=A0 =C2=A0 doc: /* The number of lines to try scrolling a window by when=
<br>
point moves out.<br>
If that fails to bring point back on frame, point is centered instead.<br>
If this is zero, point is always centered after it moves off frame.<br>
If you want scrolling to always be a line at a time, you should set<br>
`scroll-conservatively&#39; to a large value rather than set this to 1.=C2=
=A0 */);<br>
<br>
=C2=A0 DEFVAR_INT (&quot;scroll-conservatively&quot;, scroll_conservatively=
,<br>
=C2=A0 =C2=A0 doc: /* Scroll up to this many lines, to bring point back on =
screen.<br>
If point moves off-screen, redisplay will scroll by up to<br>
`scroll-conservatively&#39; lines in order to bring point just barely<br>
onto the screen again.=C2=A0 If that cannot be done, then redisplay<br>
recenters point as usual.<br>
<br>
If the value is greater than 100, redisplay will never recenter point,<br>
but will always scroll just enough text to bring point into view, even<br>
if you move far away.<br>
<br>
A value of zero means always recenter point if it moves off screen.=C2=A0 *=
/);<br>
</blockquote></div>

--0000000000009966ef058c6aa80d--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#36421; Package emacs. Full text available.

Message received at 36421 <at> debbugs.gnu.org:


Received: (at 36421) by debbugs.gnu.org; 28 Jun 2019 21:12:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 28 17:12:00 2019
Received: from localhost ([127.0.0.1]:43119 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hgyA3-00042K-PE
	for submit <at> 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 <pipcet@HIDDEN>) id 1hgyA0-00041u-Ln
 for 36421 <at> 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 <at> 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: <CACMsj9P_VhC9AayEg_GOoNdAYGh8sfH24xDiqy+XeEFsOg363w@HIDDEN>
In-Reply-To: <CACMsj9P_VhC9AayEg_GOoNdAYGh8sfH24xDiqy+XeEFsOg363w@HIDDEN>
From: Pip Cet <pipcet@HIDDEN>
Date: Fri, 28 Jun 2019 21:11:15 +0000
Message-ID: <CAOqdjBcCrsPh8rGrAqrLfGxxVDsQWvPqM+x8sTVe+3bMztmC9Q@HIDDEN>
Subject: Re: bug#36421: Having some text with face height > 1.0 causes
 scroll-step to be ignored
To: Andrea Cardaci <cyrus.and@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36421
Cc: 36421 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, Jun 28, 2019 at 4:27 PM Andrea Cardaci <cyrus.and@HIDDEN> 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.  */);




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#36421; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jun 2019 16:20:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 28 12:20:21 2019
Received: from localhost ([127.0.0.1]:42871 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hgtbo-0006Al-Oa
	for submit <at> 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 <cyrus.and@HIDDEN>) id 1hgtbn-0006Ac-C0
 for submit <at> 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 <cyrus.and@HIDDEN>) id 1hgtbj-00055p-5O
 for bug-gnu-emacs@HIDDEN; 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 <cyrus.and@HIDDEN>) id 1hgtbi-0006ra-5D
 for bug-gnu-emacs@HIDDEN; 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 <cyrus.and@HIDDEN>) id 1hgtbh-0006n0-Nv
 for bug-gnu-emacs@HIDDEN; Fri, 28 Jun 2019 12:20:13 -0400
Received: by mail-io1-xd35.google.com with SMTP id k8so13781080iot.1
 for <bug-gnu-emacs@HIDDEN>; 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 <cyrus.and@HIDDEN>
Date: Fri, 28 Jun 2019 18:19:58 +0200
Message-ID: <CACMsj9P_VhC9AayEg_GOoNdAYGh8sfH24xDiqy+XeEFsOg363w@HIDDEN>
Subject: Having some text with face height > 1.0 causes scroll-step to be
 ignored
To: bug-gnu-emacs@HIDDEN
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <up>.

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

<div dir=3D"ltr">Hi,<div><br></div><div>Basically as the title says, here&#=
39;s how to reproduce this:</div><div><br></div><div>1. start Emacs with -Q=
;</div><div><br></div><div>2. evaluate this sexp:</div><div><br></div><div>=
=C2=A0 =C2=A0(progn<br>=C2=A0 =C2=A0 =C2=A0(custom-set-variables<br>=C2=A0 =
=C2=A0 =C2=A0 &#39;(scroll-step 1)<br>=C2=A0 =C2=A0 =C2=A0 &#39;(scroll-mar=
gin 0))<br>=C2=A0 =C2=A0 =C2=A0(with-current-buffer (switch-to-buffer &quot=
;test&quot;)<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0(insert (make-string 100 ?\n)<br=
>	 =C2=A0 =C2=A0 =C2=A0 (propertize &quot;XXX&quot; &#39;face &#39;(:height=
 2.0))<br>	 =C2=A0 =C2=A0 =C2=A0 (make-string 100 ?\n))))<br><br></div><div=
>3. in the newly created buffer press and keep pressed &lt;up&gt;.</div><di=
v><br></div><div>You&#39;ll notice that the point moves to the top of the w=
indow and stays there, but as soon as it *steps* over &quot;XXX&quot;, the =
point is centered.</div><div><br></div><div>This is pretty annoying in my c=
ase where I use big headings in Markdown mode.</div><div><br></div><div>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.</div><div><br></div><div><br></div>=
<div>Best,</div><div><br></div><div>Andrea</div></div>

--000000000000fe6bd0058c64a651--




Acknowledgement sent to Andrea Cardaci <cyrus.and@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#36421; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 29 Jun 2019 07:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.