aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorStefan Monnier2016-08-02 19:45:30 -0400
committerStefan Monnier2016-08-02 19:45:30 -0400
commit49e0c276b2e47bbc987d35dc73e80eb1efc99ef7 (patch)
tree2888bd539070544dbb9c555daa98349e103dfa91 /src/window.c
parent508349920555ac02dcba71c4d4c60c5a6bb509b6 (diff)
downloademacs-49e0c276b2e47bbc987d35dc73e80eb1efc99ef7.tar.gz
emacs-49e0c276b2e47bbc987d35dc73e80eb1efc99ef7.zip
* src/window.c: Fix bootstrap failure due to window.el changes
(sanitize_window_sizes): Adjust to new calling convention of window--sanitize-window-sizes and only call it if defined. (Fwindow__sanitize_window_sizes): Remove. (syms_of_window): Don't defsubr it.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/window.c b/src/window.c
index e123b89aae3..2ed83f4627e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2867,20 +2867,11 @@ resize_root_window (Lisp_Object window, Lisp_Object delta,
2867 horizontal, ignore, pixelwise); 2867 horizontal, ignore, pixelwise);
2868} 2868}
2869 2869
2870/* Placeholder used by temacs -nw before window.el is loaded. */
2871DEFUN ("window--sanitize-window-sizes", Fwindow__sanitize_window_sizes,
2872 Swindow__sanitize_window_sizes, 2, 2, 0,
2873 doc: /* */
2874 attributes: const)
2875 (Lisp_Object frame, Lisp_Object horizontal)
2876{
2877 return Qnil;
2878}
2879
2880Lisp_Object 2870Lisp_Object
2881sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal) 2871sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal)
2882{ 2872{
2883 return call2 (Qwindow__sanitize_window_sizes, frame, horizontal); 2873 if (!NILP (Fsymbol_function (Qwindow__sanitize_window_sizes)))
2874 return call1 (Qwindow__sanitize_window_sizes, horizontal);
2884} 2875}
2885 2876
2886 2877
@@ -7576,7 +7567,6 @@ displayed after a scrolling operation to be somewhat inaccurate. */);
7576 defsubr (&Sset_window_display_table); 7567 defsubr (&Sset_window_display_table);
7577 defsubr (&Snext_window); 7568 defsubr (&Snext_window);
7578 defsubr (&Sprevious_window); 7569 defsubr (&Sprevious_window);
7579 defsubr (&Swindow__sanitize_window_sizes);
7580 defsubr (&Sget_buffer_window); 7570 defsubr (&Sget_buffer_window);
7581 defsubr (&Sdelete_other_windows_internal); 7571 defsubr (&Sdelete_other_windows_internal);
7582 defsubr (&Sdelete_window_internal); 7572 defsubr (&Sdelete_window_internal);