Avoid infloop in next-frame during frame creation.
authorChong Yidong <cyd@gnu.org>
Thu, 23 Feb 2012 07:28:21 +0000 (15:28 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 23 Feb 2012 07:28:21 +0000 (15:28 +0800)
commitf01d3321d5a7ca4147b675f02d5aa51dc65c2b55
treed300ae3022865077969c1a27c539a4bd7bf59381
parent8f4042d244cc9dd4eb05ec9756020fd03ca36eab
Avoid infloop in next-frame during frame creation.

See thread at http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00573.html

* src/window.c (inhibit_window_configuration_change_hook): New var.
(run_window_configuration_change_hook): Obey it.

* src/xfns.c (Fx_create_frame): Avoid window-configuration-change-hook
call when setting menu-bar-lines and tool-bar-lines parameters.
(unwind_create_frame_1): New helper function.
src/ChangeLog
src/window.c
src/window.h
src/xfns.c