From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: 26.0.90: scroll-margin problem Date: Fri, 29 Dec 2017 22:40:10 +0200 Message-ID: <83h8s9fetx.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514579923 20324 195.159.176.226 (29 Dec 2017 20:38:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Dec 2017 20:38:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: zhang cc Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 29 21:38:39 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eV1QL-0004mg-Nl for ged-emacs-devel@m.gmane.org; Fri, 29 Dec 2017 21:38:37 +0100 Original-Received: from localhost ([::1]:54034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eV1SH-0002Jh-8g for ged-emacs-devel@m.gmane.org; Fri, 29 Dec 2017 15:40:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eV1SB-0002JW-6O for emacs-devel@gnu.org; Fri, 29 Dec 2017 15:40:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eV1S7-0005J4-0e for emacs-devel@gnu.org; Fri, 29 Dec 2017 15:40:31 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eV1S6-0005Io-Sy; Fri, 29 Dec 2017 15:40:26 -0500 Original-Received: from [176.228.60.248] (port=3863 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eV1S6-00010M-Dq; Fri, 29 Dec 2017 15:40:26 -0500 In-reply-to: (message from zhang cc on Fri, 29 Dec 2017 06:55:57 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221459 Archived-At: > From: zhang cc > 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.