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 20:53:18 +0300 Message-ID: <83iq6mbek1.fsf@gnu.org> References: <878w7mjtml.fsf@escher.home> <4BEFAA20.9000301@gmx.at> <87ljbkyvjm.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1274119025 26885 80.91.229.12 (17 May 2010 17:57:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 17:57:05 +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 19:57:03 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 1OE4Yl-0004AC-Cq for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 May 2010 19:56:59 +0200 Original-Received: from localhost ([127.0.0.1]:45052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE4Yk-00045R-L5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 May 2010 13:56:58 -0400 Original-Received: from [140.186.70.92] (port=44837 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE4Yd-00045D-CI for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 13:56:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE4Yb-000398-GX for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 13:56:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46703) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE4Yb-000392-EN for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 13:56:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OE4Vu-0005uV-FI; Mon, 17 May 2010 13:54:02 -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 17:54:02 +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.127411880522708 (code B ref 6192); Mon, 17 May 2010 17:54:02 +0000 Original-Received: (at 6192) by debbugs.gnu.org; 17 May 2010 17:53:25 +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 1OE4VI-0005uD-Hw for submit@debbugs.gnu.org; Mon, 17 May 2010 13:53:24 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE4VF-0005u8-Dm for 6192@debbugs.gnu.org; Mon, 17 May 2010 13:53:22 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L2K00900S0BU400@a-mtaout21.012.net.il> for 6192@debbugs.gnu.org; Mon, 17 May 2010 20:53:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.197.161]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L2K005JBSCQ21C0@a-mtaout21.012.net.il>; Mon, 17 May 2010 20:53:15 +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 13:54:02 -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:36996 Archived-At: > From: Lennart Borgman > Date: Mon, 17 May 2010 16:43:09 +0200 > Cc: Stephen Berman , 6192@debbugs.gnu.org > > I don't think recentering is the right thing to do in this case. It is > too surprising. Just scroll one line if needed. When Emacs recenters, that means it exhausted all the other available 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. It needs to be designed and coded. The tricky part is to detect the situation where the amount of scrolling can be easily computed in advance, and do that computation without too many complications. You seem to think that this computation is easy, but that is only true when the display shows characters of the same size everywhere. In the more general case, what do we do? still recenter?