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#12811: 24.3.50; `scroll-up/down-aggressively' don't seem to work as expected Date: Fri, 9 Nov 2012 18:17:42 +0100 Message-ID: References: <83ip9i3c59.fsf@gnu.org> <831ug62z3c.fsf@gnu.org> <83r4o51h92.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1352481481 31517 80.91.229.3 (9 Nov 2012 17:18:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 17:18:01 +0000 (UTC) Cc: 12811@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 18:18:10 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 1TWsDY-0004x8-4m for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 18:18:08 +0100 Original-Received: from localhost ([::1]:32989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsDO-0005NL-QV for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 12:17:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsDL-0005ML-KB for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:17:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWsDK-0000Df-Aw for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:17:55 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsDK-0000Da-7A for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:17:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TWsDR-0007Xp-Rf for bug-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:18:01 -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: Fri, 09 Nov 2012 17:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12811 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12811-submit@debbugs.gnu.org id=B12811.135248147328986 (code B ref 12811); Fri, 09 Nov 2012 17:18:01 +0000 Original-Received: (at 12811) by debbugs.gnu.org; 9 Nov 2012 17:17:53 +0000 Original-Received: from localhost ([127.0.0.1]:58249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWsDJ-0007XT-5R for submit@debbugs.gnu.org; Fri, 09 Nov 2012 12:17:53 -0500 Original-Received: from mail-oa0-f44.google.com ([209.85.219.44]:63149) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TWsDH-0007XM-2h for 12811@debbugs.gnu.org; Fri, 09 Nov 2012 12:17:51 -0500 Original-Received: by mail-oa0-f44.google.com with SMTP id n5so3959395oag.3 for <12811@debbugs.gnu.org>; Fri, 09 Nov 2012 09:17:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LfuvwtYS2j/DruQ+6JSlwV4XJF0Yjyk6C97j0fs/7Mo=; b=0IliWC4+oBepMxRg6Uyb4npeAbrPK0p+CsQ9PPu2IZgSmilkQ5qIxGmT4uaC5DFKwL 2DOWFlut7d6fasOfC4Y8X4RS2z2m/ivF+JIKQ8Yy4ZRTLLiH7/N32V1vRgAlpN5usu/M Q8GV6LJ0snrZp5IKa41YJNS672rqAyUFRPutgL3eI2eaSMg88VFIlslN19ed3AB9U1DX A9w1uO5Ki3I9AJscjrklapnaU9vOmic1pMDshzZIL6meZzV4GMeC09BeznYWlbeI183p ItCHy3lzJlY9IdVQeX5J/Nkxj1J3b7Y6+rDKXS+iPd0y2SQE90/Y2GGQKFsPQWhRd7Gy s6gA== Original-Received: by 10.60.19.202 with SMTP id h10mr8204396oee.99.1352481462291; Fri, 09 Nov 2012 09:17:42 -0800 (PST) Original-Received: by 10.60.131.168 with HTTP; Fri, 9 Nov 2012 09:17:42 -0800 (PST) In-Reply-To: <83r4o51h92.fsf@gnu.org> 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:66696 Archived-At: >> >> So I'd like to make this request: >> >> * Make obsolete the variables `scroll-up/down-aggressively'. >> >> * Extend the semantics of the variable `scroll-step' to accept also a >> >> fractional number between 0 and 1, so that for example 0.7 would mean: >> >> "when point moves out, try to get it back into view by scrolling >> >> up/down an amount equal to the 70% of the height of the window. If >> >> that fails, center in the window the line where point is". >> > >> > Wouldn't this keep the same semantics, but in one variable instead of >> > 3? >> >> Not exactly: The functionality behind `scroll-up/down-aggressively' >> (as explained in the manual) make no sense in some cases (after doing >> a "big jump"), and is similar in spirit to the functionality behind >> `scroll-step' in the other cases (after doing a "small jump"). > > Sorry, I see no difference. This is the difference: * For small jumps of point, both `scroll-up/down-aggressively' and `scroll-step' provide a similar way of bringing point back into view. They just measure the amount of scrolling in different units. * But for large jumps, while the `scroll-step' semantics do a suitable thing (i.e. display the current line centered), the semantics behind `scroll-up/down-aggressively' do an undesirable thing (i.e. don't display the current line centered). So, I don't see how someone would want to use `scroll-up/down-aggressively' at all. They do a good thing only in some situations (small jumps), but not in other common situations (large jumps, as when Isearching or when doing 'M-g g' for example). Then, given that these two variables are unsuitable, let's mark them obsolete, no? Nobody should miss them, because the good part of their behavior would be available in `scroll-step' (just give it the suitable fractional value). I hope that now my proposal is better understood. (Regarding your fix, I'll test it and report the results when the emacs-24 branch is merged with the trunk) -- Dani Moncayo