From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.bugs Subject: bug#12801: 24.3.50; `scroll-conservatively' and `scroll-step' Date: Sun, 4 Nov 2012 22:24:53 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=e89a8ff1c620f59b9504cdb1ff51 X-Trace: ger.gmane.org 1352064364 3812 80.91.229.3 (4 Nov 2012 21:26:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2012 21:26:04 +0000 (UTC) To: 12801@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 04 22:26:13 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TV7ht-0005nJ-6Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2012 22:26:13 +0100 Original-Received: from localhost ([::1]:42185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV7hk-0006YC-EV for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2012 16:26:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV7hi-0006Y6-9F for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 16:26:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV7hh-00077w-8Z for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 16:26:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV7hh-00077d-56 for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 16:26:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TV7kc-0000QC-FF for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 16:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Nov 2012 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13520644831546 (code B ref -1); Sun, 04 Nov 2012 21:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2012 21:28:03 +0000 Original-Received: from localhost ([127.0.0.1]:49358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TV7jf-0000Os-3Y for submit@debbugs.gnu.org; Sun, 04 Nov 2012 16:28:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53760) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TV7jb-0000OS-PD for submit@debbugs.gnu.org; Sun, 04 Nov 2012 16:28:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV7gf-0005z1-3R for submit@debbugs.gnu.org; Sun, 04 Nov 2012 16:24:58 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:51604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV7gf-0005ys-0H for submit@debbugs.gnu.org; Sun, 04 Nov 2012 16:24:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV7gd-0006GF-Vr for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 16:24:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV7gc-0005wf-Sa for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 16:24:55 -0500 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:33034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV7gc-0005wA-Lc for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 16:24:54 -0500 Original-Received: by mail-ob0-f169.google.com with SMTP id va7so5662218obc.0 for ; Sun, 04 Nov 2012 13:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=v5Gm3mSSv/7JpwjyURVD2N6jIAr2xWOsKWSlHSX4Y+U=; b=LslR2Fg/+wdYGwvnaAKoYDlqjwEWw3K2LhJbacLPbSAV3nc2QBIpH1q2D9AbeA3UHg UAuOveu+yhptwyGIQ1nw3KgYQFrv9qGReAF0WxIH7ioM0VoGeJPitn8llLvVFlXLHia2 MRv/ByIziuiTLHKlRY0hMZorprAoAXuJeGKmxCa2Tme742/6Ca2SMY7Zi/Jv41uMCzOn xgzlE7kW1BBHfbD8YJpfDk5Ze11ZWmH9mOPCuStlEiQDALpLFg920mrPVUWAb9dC2ITp No3rksjpR7muKHQdf5sWy0Uh9eEdzCJu1GPAMLHOFPnTV/EsAlvxguCkFCWZ6Lsv3RYK cGew== Original-Received: by 10.60.19.202 with SMTP id h10mr6222897oee.99.1352064294034; Sun, 04 Nov 2012 13:24:54 -0800 (PST) Original-Received: by 10.60.131.168 with HTTP; Sun, 4 Nov 2012 13:24:53 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66451 Archived-At: --e89a8ff1c620f59b9504cdb1ff51 Content-Type: text/plain; charset=ISO-8859-1 Recipe from "emacs -nw -Q" (the "-nw" part is not strictly needed, but it is cleaner for showing the problem): 1. Set the variable `scroll-step' to 3. 2. Visit the attached file. 3. Adjust the vertical space (empty lines) between "first line" and "last visible line" until the latter becomes indeed the last visible line in the window. 4. Move point to the "last visible line". 5. Move point two lines down in a single command: C-u 2 C-n I observe that after step #5 the window is scrolled by `scroll-step' lines (3 lines), which is TRT. But if I set `scroll-conservatively' to 1 and repeat the experiment (from step #4), then I observe that this time the line where point goes to ("2") is centered in the window. After reading (info "(emacs) Auto Scrolling"), I think that this is either a bug in the program or in the documentation. This paragraph in particular doesn't match the observed behavior in the second case: The variable `scroll-step' determines how many lines to scroll the window when point moves off the screen. If moving by that number of lines fails to bring point back into view, point is centered instead. The default value is zero, which causes point to always be centered after scrolling. In GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601) of 2012-11-04 on MS-W7-DANI Bzr revision: 110794 rgm@gnu.org-20121104041313-7j1z7vaqtrgopt26 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -I../../libs/libXpm-3.5.10/include -I../../libs/libXpm-3.5.10/src -I../../libs/libpng-1.2.37-lib/include -I../../libs/zlib-1.2.5 -I../../libs/giflib-4.1.4-1-lib/include -I../../libs/jpeg-6b-4-lib/include -I../../libs/tiff-3.8.2-1-lib/include -I../../libs/libxml2-2.7.8-w32-bin/include/libxml2 -I../../libs/gnutls-3.0.9-w32-bin/include -I../../libs/libiconv-1.9.2-1-lib/include' Important settings: value of $LANG: ESN locale-coding-system: cp1252 default enable-multibyte-characters: t -- Dani Moncayo --e89a8ff1c620f59b9504cdb1ff51 Content-Type: text/plain; charset=US-ASCII; name="test.txt" Content-Disposition: attachment; filename="test.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h94h1v610 Zmlyc3QgbGluZQ0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoNCg0KDQoN Cg0KDQoNCg0KDQoNCmxhc3QgdmlzaWJsZSBsaW5lDQoxDQoyDQozDQo0DQo1DQo2DQo= --e89a8ff1c620f59b9504cdb1ff51--