From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Date: Sat, 29 Jun 2019 10:35:57 +0300 Message-ID: <83blyghmhu.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="54976"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36421@debbugs.gnu.org, pipcet@gmail.com To: Andrea Cardaci Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 29 09:37:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hh7vD-000ED0-Uo for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2019 09:37:20 +0200 Original-Received: from localhost ([::1]:38154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hh7vC-0002q8-Lz for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2019 03:37:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44998) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hh7v6-0002pZ-8f for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 03:37:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hh7v3-0001iU-Ag for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 03:37:12 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hh7uw-0001eQ-P8 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 03:37:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hh7uw-0003K3-Id for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 03:37:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156179378012721 (code B ref 36421); Sat, 29 Jun 2019 07:37:02 +0000 Original-Received: (at 36421) by debbugs.gnu.org; 29 Jun 2019 07:36:20 +0000 Original-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 Original-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 Original-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 Original-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 In-reply-to: (message from Andrea Cardaci on Sat, 29 Jun 2019 01:29:54 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161798 Archived-At: 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.