GNU bug report logs -
#36421
Having some text with face height > 1.0 causes scroll-step to be ignored
Previous Next
Reported by: Andrea Cardaci <cyrus.and <at> gmail.com>
Date: Fri, 28 Jun 2019 16:21:02 UTC
Severity: normal
Tags: notabug
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 16 Sep 2019 05:08:30 +0200
with message-id <CADwFkmmNtySrgsnsJoLzwF1SDnVYLhBO-6PFdi3dwQ9O2vhUFg <at> mail.gmail.com>
and subject line Re: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored
has caused the debbugs.gnu.org bug report #36421,
regarding Having some text with face height > 1.0 causes scroll-step to be ignored
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
36421: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36421
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
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
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
> tags 36421 notabug
> thanks
>
> > From: Andrea Cardaci <cyrus.and <at> gmail.com>
> > 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.
Since this is notabug, I'm also closing it now.
Best regards,
Stefan Kangas
This bug report was last modified 5 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.