From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Cardaci Newsgroups: gmane.emacs.bugs Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Date: Fri, 28 Jun 2019 18:19:58 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fe6bd0058c64a651" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="237047"; mail-complaints-to="usenet@blaine.gmane.org" To: 36421@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 28 18:27:09 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 1hgtiO-000zZ0-EB for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jun 2019 18:27:08 +0200 Original-Received: from localhost ([::1]:34064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgtiM-0000vt-9j for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Jun 2019 12:27:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39079) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgtcV-0005o2-Rb for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgtcU-0008L3-Oo for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57564) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgtcU-0008KN-F7 for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgtcU-0006CS-9C for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2019 12:21:02 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156173882123735 (code B ref -1); Fri, 28 Jun 2019 16:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jun 2019 16:20:21 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:161745 Archived-At: --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--