GNU bug report logs - #23369
25.0.93; CANNOT_DUMP build fails if resizing terminal during startup in tty mode

Previous Next

Package: emacs;

Reported by: Fredrik Fornwall <fredrik <at> fornwall.net>

Date: Mon, 25 Apr 2016 07:19:03 UTC

Severity: normal

Tags: confirmed

Found in version 25.0.93

Fixed in version 25.0.94

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23369 in the body.
You can then email your comments to 23369 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Mon, 25 Apr 2016 07:19:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fredrik Fornwall <fredrik <at> fornwall.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 25 Apr 2016 07:19:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Fornwall <fredrik <at> fornwall.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.93; CANNOT_DUMP build fails if resizing terminal during startup
 in tty mode
Date: Mon, 25 Apr 2016 09:10:41 +0200
Starting up a CANNOT dump build of emacs 25.0.93 in tty mode while
resizing the terminal often fails. May be related to
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22975.

The error message I got when the startup fails varies (perhaps due to
timing issues) between:

"Symbol?s function definition is void: internal-echo-keystrokes-prefix"
and
"NSTATICS too small; try increasing and recompiling Emacs"

Steps to reproduce:

wget ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.93.tar.xz
tar xf emacs-25.0.93.tar.xz
cd emacs-25.0.93/
CANNOT_DUMP=yes ./configure --prefix=$HOME/emacs-installation
--without-all --with-x-toolkit=no
make install
~/emacs-installation/bin/emacs
# Resize the terminal continuously during startup (may be difficult to
be quick enough,
# one approach is to run "sleep 2; ~/emacs-installation/bin/emacs" and
start resizing
# directly already while sleeping).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Mon, 25 Apr 2016 07:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Fredrik Fornwall <fredrik <at> fornwall.net>
Cc: 23369 <at> debbugs.gnu.org
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Mon, 25 Apr 2016 10:54:12 +0300
> Date: Mon, 25 Apr 2016 09:10:41 +0200
> From: Fredrik Fornwall <fredrik <at> fornwall.net>
> 
> Starting up a CANNOT dump build of emacs 25.0.93 in tty mode while
> resizing the terminal often fails. May be related to
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22975.

That bug was fixed.

Can you tell why would one want to resize the terminal during startup?
In general, during that time, a CANNOT_DUMP build is not fully
functional, so doing something like that is not recommended, I frankly
I cannot see any reasons for that.  What am I missing?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Mon, 25 Apr 2016 09:44:01 GMT) Full text and rfc822 format available.

Message #11 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Fornwall <fredrik <at> fornwall.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org
Subject: Re: bug#23369: 25.0.93; CANNOT_DUMP build fails if resizing terminal
 during startup in tty mode
Date: Mon, 25 Apr 2016 11:43:02 +0200
On 25 April 2016 at 09:54, Eli Zaretskii <eliz <at> gnu.org> wrote:
> Can you tell why would one want to resize the terminal during startup?
> In general, during that time, a CANNOT_DUMP build is not fully
> functional, so doing something like that is not recommended, I frankly
> I cannot see any reasons for that.  What am I missing?

Some reasons causing terminal resize during startup:
(1) If running emacs on Android
(http://endlessparentheses.com/running-emacs-on-android.html), you may
want to show the (or switch to another) touch keyboard, which causes a
terminal resize. Android also forces CANNOT_DUMP since binaries needs
to be position-independent, and startup is also slower due to running
on mobile devices, so the window of opportunity increases.
(2) One wants to resize the terminal to e.g. put the terminal window
with emacs besides another window, or maximize the window.
(3) One wants to change font size when jumping from the terminal into emacs.

If one knows that emacs crashes if resizing during startup it's easy
to wait for startup to complete before doing any of the above.

The problem is that most new users won't know that, and a message
like"function definition is void: internal-echo-keystrokes-prefix"
won't help them understand it either, and they will instead need
support (or give up using emacs).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Mon, 25 Apr 2016 10:03:01 GMT) Full text and rfc822 format available.

Message #14 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Fredrik Fornwall <fredrik <at> fornwall.net>
Cc: 23369 <at> debbugs.gnu.org
Subject: Re: bug#23369: 25.0.93; CANNOT_DUMP build fails if resizing terminal
 during startup in tty mode
Date: Mon, 25 Apr 2016 13:01:33 +0300
> Date: Mon, 25 Apr 2016 11:43:02 +0200
> From: Fredrik Fornwall <fredrik <at> fornwall.net>
> Cc: 23369 <at> debbugs.gnu.org
> 
> Some reasons causing terminal resize during startup:
> (1) If running emacs on Android
> (http://endlessparentheses.com/running-emacs-on-android.html), you may
> want to show the (or switch to another) touch keyboard, which causes a
> terminal resize. Android also forces CANNOT_DUMP since binaries needs
> to be position-independent, and startup is also slower due to running
> on mobile devices, so the window of opportunity increases.
> (2) One wants to resize the terminal to e.g. put the terminal window
> with emacs besides another window, or maximize the window.
> (3) One wants to change font size when jumping from the terminal into emacs.
> 
> If one knows that emacs crashes if resizing during startup it's easy
> to wait for startup to complete before doing any of the above.
> 
> The problem is that most new users won't know that, and a message
> like"function definition is void: internal-echo-keystrokes-prefix"
> won't help them understand it either, and they will instead need
> support (or give up using emacs).

Well, if someone could provide a backtrace showing how these errors
are triggered by resizing the frame, perhaps this could be fixed.

Thanks.




Added tag(s) confirmed. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Apr 2016 22:44:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Wed, 27 Apr 2016 00:54:02 GMT) Full text and rfc822 format available.

Message #19 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, Fredrik Fornwall <fredrik <at> fornwall.net>
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Tue, 26 Apr 2016 20:53:28 -0400
I found this easy to reproduce but hard to debug, but it seems like
making window.el's internal--before-save-selected-window check
(featurep 'frame) before it tries to call frames-on-display-list
fixes it for me.

(Prescient comment in http://debbugs.gnu.org/22975#73 ?)

*** a/lisp/window.el
--- b/lisp/window.el
***************
*** 30,35 ****
--- 30,36 ----
  
  (defun internal--before-save-selected-window ()
    (cons (selected-window)
+         (if (featurep 'frame)
              ;; We save and restore all frames' selected windows, because
              ;; `select-window' can change the frame-selected-window of
              ;; whatever frame that window is in.  Each text terminal's
***************
*** 47,53 ****
                               (push (cons f (frame-selected-window f))
                                     alist))
                             alist))
!                        (terminal-list)))))
  
  (defun internal--after-save-selected-window (state)
    (dolist (elt (cdr state))
--- 48,54 ----
                                   (push (cons f (frame-selected-window f))
                                         alist))
                                 alist))
!                            (terminal-list))))))
  
  (defun internal--after-save-selected-window (state)
    (dolist (elt (cdr state))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Wed, 27 Apr 2016 06:53:02 GMT) Full text and rfc822 format available.

Message #22 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, fredrik <at> fornwall.net
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Wed, 27 Apr 2016 09:52:09 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: Fredrik Fornwall <fredrik <at> fornwall.net>,  23369 <at> debbugs.gnu.org
> Date: Tue, 26 Apr 2016 20:53:28 -0400
> 
> I found this easy to reproduce but hard to debug, but it seems like
> making window.el's internal--before-save-selected-window check
> (featurep 'frame) before it tries to call frames-on-display-list
> fixes it for me.

Thanks.

Fredrik, does this patch solve the problems you see?  If so, I think
we should install it on the emacs-25 branch.

> (Prescient comment in http://debbugs.gnu.org/22975#73 ?)

I disagree with the conclusion there.  I think what we need is to
detect all the cases like this one and fix them one by one.  Bitrot in
areas and use cases that are rarely used is nothing new in Emacs, so
this stuff will happen from time to time, there's no way around that.
But these cases cannot be too many in this case, since not much can be
going on while 'loadup' runs anyway.  We just found one more, possibly
the last, of those dark corners.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Wed, 27 Apr 2016 16:37:01 GMT) Full text and rfc822 format available.

Message #25 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, fredrik <at> fornwall.net
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Wed, 27 Apr 2016 12:36:33 -0400
Eli Zaretskii wrote:

> Fredrik, does this patch solve the problems you see? 

Remember to rebuild window.elc after applying.

> If so, I think we should install it on the emacs-25 branch.

It's ugly to (essentially) modify all uses of save-selected-window just
because of one (?) problematic use in an edge case. I wonder if we can
find and fix whatever code is calling it in this case. Presumably
something window-related that happens during resizing.

Also, it seems like if CANNOT_DUMP builds encounter an error loading
loadup.el, they go on to run the command-loop with only a partially
loaded loadup, which leads to confusing error messages that have nothing
to do with the real problem. Can they be made to abort instead?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Wed, 27 Apr 2016 17:21:01 GMT) Full text and rfc822 format available.

Message #28 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, fredrik <at> fornwall.net
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Wed, 27 Apr 2016 20:20:00 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: fredrik <at> fornwall.net,  23369 <at> debbugs.gnu.org
> Date: Wed, 27 Apr 2016 12:36:33 -0400
> 
> It's ugly to (essentially) modify all uses of save-selected-window just
> because of one (?) problematic use in an edge case. I wonder if we can
> find and fix whatever code is calling it in this case. Presumably
> something window-related that happens during resizing.

I'd still like to see a full backtrace when the problem happens, both
C and Lisp level.

> Also, it seems like if CANNOT_DUMP builds encounter an error loading
> loadup.el, they go on to run the command-loop with only a partially
> loaded loadup, which leads to confusing error messages that have nothing
> to do with the real problem. Can they be made to abort instead?

How will aborting help diagnosing the problems?  IME, it tends to hide
evidence, not make it more clear.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Wed, 27 Apr 2016 18:49:01 GMT) Full text and rfc822 format available.

Message #31 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, fredrik <at> fornwall.net
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Wed, 27 Apr 2016 14:48:41 -0400
Eli Zaretskii wrote:

> I'd still like to see a full backtrace when the problem happens, both
> C and Lisp level.

I can't get one. I just get "NSTATICS too small" (even if I make it huge).

>> Also, it seems like if CANNOT_DUMP builds encounter an error loading
>> loadup.el, they go on to run the command-loop with only a partially
>> loaded loadup, which leads to confusing error messages that have nothing
>> to do with the real problem. Can they be made to abort instead?
>
> How will aborting help diagnosing the problems?  IME, it tends to hide
> evidence, not make it more clear.

In that Emacs might stop near the actual error (eg "loading foo..."),
rather than going on to fail with some totally unrelated error (eg
"Symbol's function definition is void: internal-echo-keystrokes-prefix"
as in this case).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Wed, 27 Apr 2016 19:28:01 GMT) Full text and rfc822 format available.

Message #34 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, fredrik <at> fornwall.net
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Wed, 27 Apr 2016 22:27:05 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: fredrik <at> fornwall.net,  23369 <at> debbugs.gnu.org
> Date: Wed, 27 Apr 2016 14:48:41 -0400
> 
> Eli Zaretskii wrote:
> 
> > I'd still like to see a full backtrace when the problem happens, both
> > C and Lisp level.
> 
> I can't get one. I just get "NSTATICS too small" (even if I make it huge).

If you run that command under GDB, with a breakpoint on the code which
issues this message, don't you get the backtrace?

> >> Also, it seems like if CANNOT_DUMP builds encounter an error loading
> >> loadup.el, they go on to run the command-loop with only a partially
> >> loaded loadup, which leads to confusing error messages that have nothing
> >> to do with the real problem. Can they be made to abort instead?
> >
> > How will aborting help diagnosing the problems?  IME, it tends to hide
> > evidence, not make it more clear.
> 
> In that Emacs might stop near the actual error (eg "loading foo..."),
> rather than going on to fail with some totally unrelated error (eg
> "Symbol's function definition is void: internal-echo-keystrokes-prefix"
> as in this case).

But the error message is actually quite informative; at the very
least, it tells where the problem happened, and frequently also names
the guilty function or variable.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Wed, 27 Apr 2016 21:02:02 GMT) Full text and rfc822 format available.

Message #37 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, fredrik <at> fornwall.net
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Wed, 27 Apr 2016 17:01:13 -0400
Eli Zaretskii wrote:

>> I can't get one. I just get "NSTATICS too small" (even if I make it huge).
>
> If you run that command under GDB, with a breakpoint on the code which
> issues this message, don't you get the backtrace?

It's not a relevant message.

Anyway, I managed to get a useful backtrace, which revealed the real
problem, and a trivial fix:

Lisp Backtrace:
  "frames-on-display-list" (0xffff17e0)
  "let" (0xffff19d0)
  "mapcar" (0xffff1d50)
  "apply" (0xffff1ed0)
  "cons" (0xffff1ff0)
  "internal--before-save-selected-window" (0xffff2160)
  "let" (0xffff2450)
  "save-selected-window" (0xffff2570)
  "walk-windows" (0xffff26e0)
  "let" (0xffff2a20)
  "window--process-window-list" (0xffff2b90)
  "let" (0xffff2e80)
  "dolist" (0xffff2fa0)
  "window--adjust-process-windows" (0xffff31e0)
  "load" (0xffff3800)
 
*** a/lisp/window.el
--- b/lisp/window.el
***************
*** 8520,8525 ****
--- 8520,8526 ----
  displaying that processes's buffer."
    (let ((processes (process-list))
          (process-windows nil))
+     (when processes
        (walk-windows
         (lambda (window)
           (let ((buffer (window-buffer window))
***************
*** 8538,8544 ****
                          nil)
                      (setf iter (cdr iter)))))))
       1 t)
!     process-windows))
  
  (defun window--adjust-process-windows ()
    "Update process window sizes to match the current window configuration."
--- 8539,8545 ----
                            nil)
                        (setf iter (cdr iter)))))))
         1 t)
!       process-windows)))
  
  (defun window--adjust-process-windows ()
    "Update process window sizes to match the current window configuration."


>> >> Also, it seems like if CANNOT_DUMP builds encounter an error loading
>> >> loadup.el, they go on to run the command-loop with only a partially
>> >> loaded loadup, which leads to confusing error messages that have nothing
>> >> to do with the real problem. Can they be made to abort instead?
>> >
>> > How will aborting help diagnosing the problems?  IME, it tends to hide
>> > evidence, not make it more clear.
>> 
>> In that Emacs might stop near the actual error (eg "loading foo..."),
>> rather than going on to fail with some totally unrelated error (eg
>> "Symbol's function definition is void: internal-echo-keystrokes-prefix"
>> as in this case).
>
> But the error message is actually quite informative; at the very
> least, it tells where the problem happened, and frequently also names
> the guilty function or variable.

I feel like we are miscommunicating.

Neither of the errors mentioned in the original report (NSTATICS,
internal-echo-keystrokes-prefix) have anything to do with the real
problem. They are just noise caused by an Emacs with half its loadup
missing falling through to the command-loop and inevitably failing
miserably. This is not informative. If there is an error loading loadup,
it should print it and abort. (I see I am repeating
http://debbugs.gnu.org/22975#38 ).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Thu, 28 Apr 2016 05:30:02 GMT) Full text and rfc822 format available.

Message #40 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, fredrik <at> fornwall.net
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Thu, 28 Apr 2016 08:28:47 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: fredrik <at> fornwall.net,  23369 <at> debbugs.gnu.org
> Date: Wed, 27 Apr 2016 17:01:13 -0400
> 
> Anyway, I managed to get a useful backtrace, which revealed the real
> problem, and a trivial fix:
> 
> Lisp Backtrace:
>   "frames-on-display-list" (0xffff17e0)
>   "let" (0xffff19d0)
>   "mapcar" (0xffff1d50)
>   "apply" (0xffff1ed0)
>   "cons" (0xffff1ff0)
>   "internal--before-save-selected-window" (0xffff2160)
>   "let" (0xffff2450)
>   "save-selected-window" (0xffff2570)
>   "walk-windows" (0xffff26e0)
>   "let" (0xffff2a20)
>   "window--process-window-list" (0xffff2b90)
>   "let" (0xffff2e80)
>   "dolist" (0xffff2fa0)
>   "window--adjust-process-windows" (0xffff31e0)
>   "load" (0xffff3800)
>  
> *** a/lisp/window.el
> --- b/lisp/window.el
> ***************
> *** 8520,8525 ****
> --- 8520,8526 ----
>   displaying that processes's buffer."
>     (let ((processes (process-list))
>           (process-windows nil))
> +     (when processes
>         (walk-windows
>          (lambda (window)
>            (let ((buffer (window-buffer window))
> ***************
> *** 8538,8544 ****
>                           nil)
>                       (setf iter (cdr iter)))))))
>        1 t)
> !     process-windows))
>   
>   (defun window--adjust-process-windows ()
>     "Update process window sizes to match the current window configuration."
> --- 8539,8545 ----
>                             nil)
>                         (setf iter (cdr iter)))))))
>          1 t)
> !       process-windows)))
>   
>   (defun window--adjust-process-windows ()
>     "Update process window sizes to match the current window configuration."
> 

Thanks.

> > But the error message is actually quite informative; at the very
> > least, it tells where the problem happened, and frequently also names
> > the guilty function or variable.
> 
> I feel like we are miscommunicating.
> 
> Neither of the errors mentioned in the original report (NSTATICS,
> internal-echo-keystrokes-prefix) have anything to do with the real
> problem. They are just noise caused by an Emacs with half its loadup
> missing falling through to the command-loop and inevitably failing
> miserably. This is not informative. If there is an error loading loadup,
> it should print it and abort. (I see I am repeating
> http://debbugs.gnu.org/22975#38 ).

We have different experiences.  Those messages did help me when I was
debugging similar problems.  (I see I am repeating
http://debbugs.gnu.org/22975#44 ).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Thu, 28 Apr 2016 13:04:02 GMT) Full text and rfc822 format available.

Message #43 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Fornwall <fredrik <at> fornwall.net>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#23369: 25.0.93; CANNOT_DUMP build fails if resizing terminal
 during startup in tty mode
Date: Thu, 28 Apr 2016 15:03:45 +0200
On 27 April 2016 at 23:01, Glenn Morris <rgm <at> gnu.org> wrote:
> Anyway, I managed to get a useful backtrace, which revealed the real
> problem, and a trivial fix:
>
> Lisp Backtrace:
>   "frames-on-display-list" (0xffff17e0)
>   "let" (0xffff19d0)
>   "mapcar" (0xffff1d50)
>   "apply" (0xffff1ed0)
>   "cons" (0xffff1ff0)
>   "internal--before-save-selected-window" (0xffff2160)
>   "let" (0xffff2450)
>   "save-selected-window" (0xffff2570)
>   "walk-windows" (0xffff26e0)
>   "let" (0xffff2a20)
>   "window--process-window-list" (0xffff2b90)
>   "let" (0xffff2e80)
>   "dolist" (0xffff2fa0)
>   "window--adjust-process-windows" (0xffff31e0)
>   "load" (0xffff3800)
>
> *** a/lisp/window.el
> --- b/lisp/window.el
> ***************
> *** 8520,8525 ****
> --- 8520,8526 ----
>   displaying that processes's buffer."
>     (let ((processes (process-list))
>           (process-windows nil))
> +     (when processes
>         (walk-windows
>          (lambda (window)
>            (let ((buffer (window-buffer window))
> ***************
> *** 8538,8544 ****
>                           nil)
>                       (setf iter (cdr iter)))))))
>        1 t)
> !     process-windows))
>
>   (defun window--adjust-process-windows ()
>     "Update process window sizes to match the current window configuration."
> --- 8539,8545 ----
>                             nil)
>                         (setf iter (cdr iter)))))))
>          1 t)
> !       process-windows)))
>
>   (defun window--adjust-process-windows ()
>     "Update process window sizes to match the current window configuration."

I applied this patch (which replaces the earlier "(if (featurep
'frame)" one, right?) and can verify that resizing during startup now
works for me. Thanks!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23369; Package emacs. (Thu, 28 Apr 2016 13:15:01 GMT) Full text and rfc822 format available.

Message #46 received at 23369 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23369 <at> debbugs.gnu.org, fredrik <at> fornwall.net
Subject: Re: bug#23369: 25.0.93;
 CANNOT_DUMP build fails if resizing terminal during startup in tty
 mode
Date: Thu, 28 Apr 2016 16:14:10 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: fredrik <at> fornwall.net,  23369 <at> debbugs.gnu.org
> Date: Wed, 27 Apr 2016 17:01:13 -0400
> 
> *** a/lisp/window.el
> --- b/lisp/window.el
> ***************
> *** 8520,8525 ****
> --- 8520,8526 ----
>   displaying that processes's buffer."
>     (let ((processes (process-list))
>           (process-windows nil))
> +     (when processes
>         (walk-windows
>          (lambda (window)
>            (let ((buffer (window-buffer window))
> ***************
> *** 8538,8544 ****
>                           nil)
>                       (setf iter (cdr iter)))))))
>        1 t)
> !     process-windows))
>   
>   (defun window--adjust-process-windows ()
>     "Update process window sizes to match the current window configuration."
> --- 8539,8545 ----
>                             nil)
>                         (setf iter (cdr iter)))))))
>          1 t)
> !       process-windows)))
>   
>   (defun window--adjust-process-windows ()
>     "Update process window sizes to match the current window configuration."

Btw, the change which introduced these calls (made, probably
inadvertently, at startup as well, something that doesn't seem to make
sense to me) is completely devoid of any documentation: the feature is
not mentioned in NEWS and not in any manual, even though it includes a
defcustom.




bug marked as fixed in version 25.0.94, send any further explanations to 23369 <at> debbugs.gnu.org and Fredrik Fornwall <fredrik <at> fornwall.net> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 28 Apr 2016 16:44:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 27 May 2016 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.