From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Avoid recentering when user says so Date: Thu, 31 Mar 2011 21:20:40 +0200 Message-ID: <83aagbqepj.fsf@gnu.org> References: <83r59tsoos.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1301599258 21822 80.91.229.12 (31 Mar 2011 19:20:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2011 19:20:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 31 21:20:54 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5NQK-00034V-27 for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2011 21:20:52 +0200 Original-Received: from localhost ([127.0.0.1]:41503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5NQJ-0001OM-2U for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2011 15:20:51 -0400 Original-Received: from [140.186.70.92] (port=47395 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5NQA-0001N9-Nx for emacs-devel@gnu.org; Thu, 31 Mar 2011 15:20:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5NQ9-0005F3-GQ for emacs-devel@gnu.org; Thu, 31 Mar 2011 15:20:42 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:48288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5NQ9-0005Ej-9u for emacs-devel@gnu.org; Thu, 31 Mar 2011 15:20:41 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LIX00000SB5TX00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 31 Mar 2011 21:20:39 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.47.180]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LIX00MUCSEELGJ0@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 31 Mar 2011 21:20:39 +0200 (IST) In-reply-to: <83r59tsoos.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137950 Archived-At: > Date: Sat, 26 Mar 2011 20:48:35 +0200 > From: Eli Zaretskii > > This is related to bug #6671, read there if you want to know the gory > details. > > In a nutshell, Emacs currently doesn't honor meticulously enough user > settings such as scroll-conservatively and scroll-up/down-aggressively. > Sometimes, especially if redisplay cannot keep up with high-rate > keyboard input, it falls back on recentering, which these variables > are supposed to avoid. The last attempt to solve this introduced a > bug that is the subject of bug #6671. > > Following the latest discussions in that bug report, I came up with a > way to solve this problem without incurring unduly slow movement far > away in the buffer. The patch below seems to give good results, but > as I don't use the above settings (I like the default recentering), > I'm not a good candidate for testing the patch. > > Would people who use these variables please try the patch below, and > report any findings, both positive and negative? Please report your > findings to the bug tracker at 6671@debbugs.gnu.org, so that the > details get filed there. > > Given positive feedback, I will commit this to the trunk. Done. Thanks to all who tried the patch and provided feedback.