From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6192: 24.0.50; eldoc-mode: unexpected recentering Date: Mon, 17 May 2010 10:08:49 -0400 Message-ID: References: <878w7mjtml.fsf@escher.home> <83tyqa2nyn.fsf@gnu.org> <87wrv6i2ft.fsf@escher.home> <837hn5fz7c.fsf@gnu.org> <87wrv5897x.fsf@escher.home> <4BEED16D.2090305@gmx.at> <87ocgh84b6.fsf@escher.home> <4BEEEFB6.7060106@gmx.at> <87d3ww96g2.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274106428 7342 80.91.229.12 (17 May 2010 14:27:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 May 2010 14:27:08 +0000 (UTC) Cc: 6192@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 17 16:27:07 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 1OE1He-0008Lc-IU for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 May 2010 16:27:06 +0200 Original-Received: from localhost ([127.0.0.1]:41835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE1Hd-0003bx-Hp for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 May 2010 10:27:05 -0400 Original-Received: from [140.186.70.92] (port=41313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE1HS-0003ZZ-Kr for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 10:26:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE1HN-0001cn-Ni for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 10:26:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54206) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE1HN-0001ch-Lk for bug-gnu-emacs@gnu.org; Mon, 17 May 2010 10:26:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OE109-0004EC-Jm; Mon, 17 May 2010 10:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier 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 14:09: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.127410533716246 (code B ref 6192); Mon, 17 May 2010 14:09:01 +0000 Original-Received: (at 6192) by debbugs.gnu.org; 17 May 2010 14:08:57 +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 1OE105-0004Dz-0f for submit@debbugs.gnu.org; Mon, 17 May 2010 10:08:57 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE103-0004Du-Pm for 6192@debbugs.gnu.org; Mon, 17 May 2010 10:08:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEANrq8EtMCpz0/2dsb2JhbACdf3K8W4UQBIwv X-IronPort-AV: E=Sophos;i="4.53,247,1272859200"; d="scan'208";a="64360479" Original-Received: from 76-10-156-244.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.244]) by ironport2-out.pppoe.ca with ESMTP; 17 May 2010 10:08:50 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DC7698064; Mon, 17 May 2010 10:08:49 -0400 (EDT) In-Reply-To: <874oi6oo6f.fsf@escher.home> (Stephen Berman's message of "Mon, 17 May 2010 11:47:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 17 May 2010 10:09: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:36989 Archived-At: > In short, this bug now boils down to this: the echo area resizes with > certain fonts (including DejaVu Sans Mono) when it displays a message > that includes bold face. Whether this is a bug in Emacs or the > problematic fonts, I don't know. To summarize this long thread, IIUC we have three separate problems: - in some cases, a minibuffer message with bold text causes unexpected/unneeded minibuffer resizing. Most likely those fonts somehow end up with a height just a tiny pixel taller. Maybe we should change the minibuffer resizing such that it only resizes if the extra height needed is more than some threshold number of pixels (1 or 2). - eldoc can cause undesired minibuffer resizing. That can probably still happen even when we fix the previous problem, depending on face settings and/or length of eldoc data. So maybe eldoc should come with a config var for how many max lines of echo-area we're willing to devote to it. If set to 1 it will prevent any resizing and fix the OP's problem regardless of whether the previous problem is fixed. - minibuffer auto-resize can trigger an undesirable recentering. I'm not sure we can do much about that, tho, since it seems to only occur in cases where the resizing ends up "eating" the area used by point, so some scrolling is necessary. Stefan