From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#6192: 24.0.50; eldoc-mode: unexpected recentering Date: Sat, 15 May 2010 17:40:02 +0200 Message-ID: <87wrv5897x.fsf@escher.home> References: <878w7mjtml.fsf@escher.home> <83tyqa2nyn.fsf@gnu.org> <87wrv6i2ft.fsf@escher.home> <837hn5fz7c.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273939015 26467 80.91.229.12 (15 May 2010 15:56:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 15 May 2010 15:56:55 +0000 (UTC) Cc: 6192@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 15 17:56:53 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 1ODJjQ-0006Ly-NH for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 May 2010 17:56:53 +0200 Original-Received: from localhost ([127.0.0.1]:58160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ODJjP-0005yW-Ux for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 May 2010 11:56:51 -0400 Original-Received: from [140.186.70.92] (port=49234 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ODJjI-0005wN-8Z for bug-gnu-emacs@gnu.org; Sat, 15 May 2010 11:56:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ODJjG-0002ij-D4 for bug-gnu-emacs@gnu.org; Sat, 15 May 2010 11:56:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35976) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ODJjG-0002iZ-8m for bug-gnu-emacs@gnu.org; Sat, 15 May 2010 11:56:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ODJU5-0000LA-PE; Sat, 15 May 2010 11:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 May 2010 15:41: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.12739380071274 (code B ref 6192); Sat, 15 May 2010 15:41:01 +0000 Original-Received: (at 6192) by debbugs.gnu.org; 15 May 2010 15:40:07 +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 1ODJTC-0000KV-Ht for submit@debbugs.gnu.org; Sat, 15 May 2010 11:40:06 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1ODJTA-0000K5-Ny for 6192@debbugs.gnu.org; Sat, 15 May 2010 11:40:05 -0400 Original-Received: (qmail invoked by alias); 15 May 2010 15:40:03 -0000 Original-Received: from i59F5762F.versanet.de (EHLO escher.home) [89.245.118.47] by mail.gmx.net (mp022) with SMTP; 15 May 2010 17:40:03 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+WADxnjhaWFCNZPw1ypExeyx0lqSehFKsp5jqSkg HFIubUqGs3+p/4 Original-Received: by escher.home (Postfix, from userid 1000) id 2140310279; Sat, 15 May 2010 17:40:03 +0200 (CEST) In-Reply-To: <837hn5fz7c.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 May 2010 09:36:55 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 15 May 2010 11:41: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:36936 Archived-At: On Sat, 15 May 2010 09:36:55 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: 6192@debbugs.gnu.org >> Date: Fri, 14 May 2010 23:44:06 +0200 >> >> > Anyway, from what you say it sounds like the message displayed by >> > eldoc-mode in the echo area, which causes redisplay, somehow makes >> > Emacs think the window where you have the Lisp file needs to be >> > recentered because point is in a line that is not visible enough. >> >> Ah, your reference to the Eldoc message made me take another look, and I >> think I've now found a pattern: the recentering appears to happen only >> (and always) when the message is displayed, and then the minibuffer >> expands to and remains at two lines, even though the message is a single >> line. > > When that happens, do you see any message in *Messages* besides the > one displayed in the echo area? Nothing in *Messages* (not even the Eldoc message -- it is deliberately suppressed by eldoc-message). > In general, a single-line message should not resize the echo area. If > the echo area is resized, then recentering you describe is a normal > reaction of the display engine. So the question now is why the echo > area is enlarged to 2 lines. I don't know, but I stepped through eldoc.el with Edebug and when it got to the point where the message is put into the echo area, this is what it showed: Result: #("let: (VARLIST BODY...)" 0 3 (face font-lock-function-name-face) 14 21 (face eldoc-highlight-function-argument)) This string made the echo area expand to two lines, but in normal (non-edebug) execution it of course shows up just as "let: (VARLIST BODY...)" (with fontification). So if the propertized string is the source of the expanded echo area, the question becomes why it does not shrink again. (And there's still the question of why this only happens when eldoc-mode is enabled in my init file...) Steve Berman