From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6192: 24.0.50; eldoc-mode: unexpected recentering Date: Mon, 17 May 2010 21:30:07 +0300 Message-ID: <83eihabcuo.fsf@gnu.org> References: <878w7mjtml.fsf@escher.home> <4BEFE6A4.2020207@gmx.at> <87hbm8yoyp.fsf@escher.home> <4BF03E92.40909@gmx.at> <87d3wvzkzs.fsf@escher.home> <4BF106FA.7090502@gmx.at> <874oi6oo6f.fsf@escher.home> <83iq6mbek1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1274122634 8991 80.91.229.12 (17 May 2010 18:57:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 18:57:14 +0000 (UTC) Cc: stephen.berman@gmx.net, 6192@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 17 20:57:12 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@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 1OE5V1-00043h-Lo for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 May 2010 20:57:12 +0200 Original-Received: from localhost ([127.0.0.1]:58160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE5V0-0006Fg-KX for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 May 2010 14:57:10 -0400 Original-Received: from [140.186.70.92] (port=49413 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE5Un-0006Bu-A0 for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 14:57:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE5Uh-0005XA-BH for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 14:56:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49088) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE5Uh-0005X5-9U for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 14:56:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OE55h-0006BN-O5; Mon, 17 May 2010 14:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 May 2010 18:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6192 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6192-submit@debbugs.gnu.org id=B6192.127412103923755 (code B ref 6192); Mon, 17 May 2010 18:31:01 +0000 Original-Received: (at 6192) by debbugs.gnu.org; 17 May 2010 18:30:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE55K-0006B6-OZ for submit@debbugs.gnu.org; Mon, 17 May 2010 14:30:38 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE55A-0006Az-3Z for 6192@debbugs.gnu.org; Mon, 17 May 2010 14:30:37 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L2K00300TYTZ200@a-mtaout22.012.net.il> for 6192@debbugs.gnu.org; Mon, 17 May 2010 21:30:06 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.197.161]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L2K003MEU23YY00@a-mtaout22.012.net.il>; Mon, 17 May 2010 21:30:05 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 17 May 2010 14:31:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36999 Archived-At: > From: Lennart Borgman > Date: Mon, 17 May 2010 20:02:22 +0200 > Cc: monnier@iro.umontreal.ca, stephen.berman@gmx.net, 6192@debbugs.= gnu.org >=20 > On Mon, May 17, 2010 at 7:53 PM, Eli Zaretskii wrote= : > > > > When Emacs recenters, that means it exhausted all the other avail= able > > redisplay optimizations, and fell back on its default method of > > completely redrawing a window. > > > > What you want is an optimization that does not yet exist, AFAIK. = =C2=A0It > > needs to be designed and coded. =C2=A0The tricky part is to detec= t the > > situation where the amount of scrolling can be easily computed in > > advance, and do that computation without too many complications. = =C2=A0You > > seem to think that this computation is easy, but that is only tru= e > > when the display shows characters of the same size everywhere. = =C2=A0In the > > more general case, what do we do? still recenter? >=20 >=20 > Would it be possible to try 1 line scrolling first, then 2 etc? Maybe we could, but that would be slow, I think. Don't forget that there could be more than one window affected by resizing. And since redisplay in general works on each window independently, tieing together redispay of the echo area and the windows above the mode lin= e would be a complication. Is it really worth that? Also, note that scrolling only by the minimum amount will cause annoying jumpy display if some command repeatedly displays messages o= f different length in the echo area. Recentering once avoids that to a large degree, because it more often than not will scroll just once. In general, my advice to people who are annoyed by recentering to set resize-mini-windows to nil (among other things). But if someone wants to work on a redisplay optimization that would favor such scrolling, feel free.