unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 26.0.90: scroll-margin problem
@ 2017-12-29  6:55 zhang cc
  2017-12-29 20:40 ` Eli Zaretskii
  2017-12-29 21:53 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: zhang cc @ 2017-12-29  6:55 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

Emacs: 26.0.90
OS: debian 8.0 x86_64

1. start emacs with -Q arg
2. eval the followng lisp code:
(progn
  (set-frame-font "Monospace:size=18")
  (set-face-attribute 'mode-line nil :font "Monospace:size=18" :height 0.9)

  (setq scroll-margin 2
scroll-conservatively 0)
  (setq-default header-line-format mode-line-format))

3. open a test file with lines more than window-height
4. go to end of buffer
5. eval this line: (scroll-down 100)
6. Now the margin seems not be 2. If I press M-x, emacs scrolls.

PS: The next-line command doesn’t trigger the problem.




[-- Attachment #2: Type: text/html, Size: 1402 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 26.0.90: scroll-margin problem
  2017-12-29  6:55 26.0.90: scroll-margin problem zhang cc
@ 2017-12-29 20:40 ` Eli Zaretskii
  2017-12-29 21:53 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2017-12-29 20:40 UTC (permalink / raw)
  To: zhang cc; +Cc: emacs-devel

> From: zhang cc <ccsmile2008@outlook.com>
> Date: Fri, 29 Dec 2017 06:55:57 +0000
> 1. start emacs with -Q arg
> 2. eval the followng lisp code:
> (progn
>   (set-frame-font "Monospace:size=18")
>   (set-face-attribute 'mode-line nil :font "Monospace:size=18" :height 0.9)
> 
>   (setq scroll-margin 2
> scroll-conservatively 0)
>   (setq-default header-line-format mode-line-format))
> 
> 3. open a test file with lines more than window-height
> 4. go to end of buffer
> 5. eval this line: (scroll-down 100)
> 6. Now the margin seems not be 2. If I press M-x, emacs scrolls.

I cannot reproduce this.  Can you explain in more detail what you mean
by "the margin seems not be 2"?  Maybe I didn't understand what you
saw.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 26.0.90: scroll-margin problem
  2017-12-29  6:55 26.0.90: scroll-margin problem zhang cc
  2017-12-29 20:40 ` Eli Zaretskii
@ 2017-12-29 21:53 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2017-12-29 21:53 UTC (permalink / raw)
  To: zhang cc; +Cc: emacs-devel

> From: zhang cc <ccsmile2008@outlook.com>
> Date: Fri, 29 Dec 2017 06:55:57 +0000
> 
> 1. start emacs with -Q arg
> 2. eval the followng lisp code:
> (progn
>   (set-frame-font "Monospace:size=18")
>   (set-face-attribute 'mode-line nil :font "Monospace:size=18" :height 0.9)
> 
>   (setq scroll-margin 2
> scroll-conservatively 0)
>   (setq-default header-line-format mode-line-format))
> 
> 3. open a test file with lines more than window-height
> 4. go to end of buffer
> 5. eval this line: (scroll-down 100)
> 6. Now the margin seems not be 2. If I press M-x, emacs scrolls.

I've succeeded in reproducing this and fixed it on the emacs-26
branch.

Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-29 21:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-29  6:55 26.0.90: scroll-margin problem zhang cc
2017-12-29 20:40 ` Eli Zaretskii
2017-12-29 21:53 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).