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: 8af8355c3f72500986f6f10b62714b228d6f35ee breaks minibuffer echo with Lucid Date: Tue, 06 Oct 2015 17:50:24 +0300 Message-ID: <83h9m4xd8v.fsf@gnu.org> References: <5613954A.2080804@yandex.ru> <5613A061.7030605@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444143124 23812 80.91.229.3 (6 Oct 2015 14:52:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Oct 2015 14:52:04 +0000 (UTC) Cc: dmantipov@yandex.ru, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 06 16:51:54 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZjTar-00067i-N9 for ged-emacs-devel@m.gmane.org; Tue, 06 Oct 2015 16:51:53 +0200 Original-Received: from localhost ([::1]:52142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjTar-0000xt-AZ for ged-emacs-devel@m.gmane.org; Tue, 06 Oct 2015 10:51:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjTZW-00089N-MZ for emacs-devel@gnu.org; Tue, 06 Oct 2015 10:50:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjTZR-0007SD-KY for emacs-devel@gnu.org; Tue, 06 Oct 2015 10:50:30 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:61847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjTZQ-0007Nk-Ux for emacs-devel@gnu.org; Tue, 06 Oct 2015 10:50:25 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NVS00100ZMRIE00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Tue, 06 Oct 2015 17:50:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVS0018FZVZFF50@a-mtaout20.012.net.il>; Tue, 06 Oct 2015 17:50:23 +0300 (IDT) In-reply-to: <5613A061.7030605@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191013 Archived-At: > Date: Tue, 06 Oct 2015 12:20:17 +0200 > From: martin rudalics > > > 1) Rewind tree to 8af8355c3f72500986f6f10b62714b228d6f35ee (git checkout 8af8355c3f72500986f6f10b62714b228d6f35ee -b test) > > 2) Configure with ../emacs/configure --without-all --with-x-toolkit=lucid and compile > > 3) Run Emacs as ./src/emacs -Q --eval '(progn (menu-bar-mode 0) (tool-bar-mode 0) (scroll-bar-mode -1))' > > 4) Type M-x and look at the minibuffer. It remains empty, but 'M-x' should be displayed. > > > > At 6cd2629bd1b3ce77d29ac28e29237c94a4197116, minibuffer behaves as expected. > > Thanks. Here (menu-bar-mode 0) is not needed. Same behavior on Motif > and Windows. > > I'll look into this. If you have any ideas please don't hesitate to > tell me. My guess is that we don't call adjust_frame_size when the toolbar and the scroll bar are removed, so no one tells the display engine that the dimensions changed, and so the echo-area display is produced in a glyph row that is now beyond the frame's lower end. This guess is backed up by the fact that if I drag the frame's edge even one pixel, the problem immediately goes away. So I think we need to arrange to call adjust_frame_size from x_set_frame_parameters, when the parameters in question affect the frame's dimensions.