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#22975: 25.0.92; CANNOT_DUMP build can't start in tty mode Date: Sun, 13 Mar 2016 22:31:32 +0200 Message-ID: <83fuvudsrf.fsf@gnu.org> References: <4FF36A52-32D5-4AF3-A36E-621A57519C4F@raeburn.org> <83h9gen6yp.fsf@gnu.org> <83egbin5n9.fsf@gnu.org> <6D1E5FE8-518D-4433-8C11-7AF1C9D932ED@raeburn.org> <83oaaljdbb.fsf@gnu.org> <2AB9AB18-952B-4597-AB89-63D8F68D0434@raeburn.org> <83bn6kiypm.fsf@gnu.org> <8737rwyc07.fsf@linux-m68k.org> <83y49ohgha.fsf@gnu.org> <83d1r0ggmb.fsf@gnu.org> <56E55826.9010802@gmx.at> <8360wqfhqu.fsf@gnu.org> <56E5C8F6.2000909@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1457901200 18785 80.91.229.3 (13 Mar 2016 20:33:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2016 20:33:20 +0000 (UTC) Cc: 22975@debbugs.gnu.org, raeburn@raeburn.org, schwab@linux-m68k.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 13 21:33:09 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1afChJ-0005eL-8c for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Mar 2016 21:33:09 +0100 Original-Received: from localhost ([::1]:37589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afChI-0006uo-PE for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Mar 2016 16:33:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afChF-0006uW-GW for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2016 16:33:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afChC-0008D4-70 for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2016 16:33:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afChC-0008Cy-3b for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2016 16:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1afChB-00058R-T4 for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2016 16:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Mar 2016 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22975-submit@debbugs.gnu.org id=B22975.145790113719686 (code B ref 22975); Sun, 13 Mar 2016 20:33:01 +0000 Original-Received: (at 22975) by debbugs.gnu.org; 13 Mar 2016 20:32:17 +0000 Original-Received: from localhost ([127.0.0.1]:47198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1afCgS-00057S-Kn for submit@debbugs.gnu.org; Sun, 13 Mar 2016 16:32:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57832) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1afCgQ-00057D-4A for 22975@debbugs.gnu.org; Sun, 13 Mar 2016 16:32:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afCgK-000893-0z for 22975@debbugs.gnu.org; Sun, 13 Mar 2016 16:32:08 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afCgF-00088g-DV; Sun, 13 Mar 2016 16:32:03 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4843 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1afCgE-0002Me-7A; Sun, 13 Mar 2016 16:32:02 -0400 In-reply-to: <56E5C8F6.2000909@gmx.at> (message from martin rudalics on Sun, 13 Mar 2016 21:09:26 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114867 Archived-At: > Date: Sun, 13 Mar 2016 21:09:26 +0100 > From: martin rudalics > CC: raeburn@raeburn.org, 22975@debbugs.gnu.org, schwab@linux-m68k.org > > >> > In tty mode, the CANNOT_DUMP version get stuck in a loop at startup > >> > complaining that internal-echo-keystrokes-prefix isn’t defined. If I > >> > set a breakpoint on Fsignal, it’s first complaining about > >> > window--resize-root-window-vertically when trying to display the long > >> > load path, presumably terminating the processing of loadup.el; > >> > >> Can you please try adding a placeholder function like Paul did with > >> Fframe_windows_min_size and Fwindow__sanitize_window_sizes. > > > > How can we know what these placeholders should do, without seeing > > which code calls them? > > The idea was that if Ken's assumption is right that complaining about > window--resize-root-window-vertically terminates the processing of > loadup.el, then such a placeholder function (that would do nothing) > would have allowed it to proceed ... But the return value might need to be something specific to steer the rest of execution where we want it. For example, grow_mini_window does this: if (delta > 0) { root = FRAME_ROOT_WINDOW (f); r = XWINDOW (root); height = call3 (Qwindow_resize_root_window_vertically, root, make_number (- delta), pixelwise ? Qt : Qnil); if (INTEGERP (height) && window_resize_check (r, false)) { block_input (); window_resize_apply (r, false); which means we need the placeholder return nil to do what we want. If it returns something else, who knows what will happen next? IOW, we need to study the actual calls to know what to do in the placeholders. The same examination could tell us how to avoid the calls to those functions altogether. E.g., binding resize-mini-windows to nil around the code that runs loadup.el would prevent the call to grow_mini_window in the first place. Maybe that's better, I didn't yet make up my mind.