aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2016-08-02 22:43:11 -0400
committerStefan Monnier2016-08-02 22:43:11 -0400
commit5f0b1c307a7d66ee8d2afa2eff982866785f60dd (patch)
tree735d79a94cfbd207e09c3ad64956bcc7be0fc1d6 /src
parentd98f7834266beed9b1c7b561168570938ec2c6bf (diff)
downloademacs-5f0b1c307a7d66ee8d2afa2eff982866785f60dd.tar.gz
emacs-5f0b1c307a7d66ee8d2afa2eff982866785f60dd.zip
* src/window.c (sanitize_window_sizes): Remove unused arg `frame'
* src/window.h (sanitize_window_sizes): Adjust prototype. * src/frame.c (adjust_frame_size): Adjust calls.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c2
-rw-r--r--src/frame.c8
-rw-r--r--src/window.c3
-rw-r--r--src/window.h2
4 files changed, 8 insertions, 7 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 53bcc9879a9..85fb22bc977 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -668,7 +668,7 @@ main (int argc, char **argv)
668 bool do_initial_setlocale; 668 bool do_initial_setlocale;
669 bool dumping; 669 bool dumping;
670 int skip_args = 0; 670 int skip_args = 0;
671 bool no_loadup = 0; 671 bool no_loadup = false;
672 char *junk = 0; 672 char *junk = 0;
673 char *dname_arg = 0; 673 char *dname_arg = 0;
674#ifdef DAEMON_MUST_EXEC 674#ifdef DAEMON_MUST_EXEC
diff --git a/src/frame.c b/src/frame.c
index 22143ab26bf..899c315016b 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -501,8 +501,8 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit,
501 && new_lines == old_lines) 501 && new_lines == old_lines)
502 /* No change. Sanitize window sizes and return. */ 502 /* No change. Sanitize window sizes and return. */
503 { 503 {
504 sanitize_window_sizes (frame, Qt); 504 sanitize_window_sizes (Qt);
505 sanitize_window_sizes (frame, Qnil); 505 sanitize_window_sizes (Qnil);
506 506
507 return; 507 return;
508 } 508 }
@@ -582,8 +582,8 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit,
582 } 582 }
583 583
584 /* Sanitize window sizes. */ 584 /* Sanitize window sizes. */
585 sanitize_window_sizes (frame, Qt); 585 sanitize_window_sizes (Qt);
586 sanitize_window_sizes (frame, Qnil); 586 sanitize_window_sizes (Qnil);
587 587
588 adjust_frame_glyphs (f); 588 adjust_frame_glyphs (f);
589 calculate_costs (f); 589 calculate_costs (f);
diff --git a/src/window.c b/src/window.c
index a3fbffc450d..374ef0f838f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2868,8 +2868,9 @@ resize_root_window (Lisp_Object window, Lisp_Object delta,
2868} 2868}
2869 2869
2870void 2870void
2871sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal) 2871sanitize_window_sizes (Lisp_Object horizontal)
2872{ 2872{
2873 /* Don't burp in temacs -nw before window.el is loaded. */
2873 if (!NILP (Fsymbol_function (Qwindow__sanitize_window_sizes))) 2874 if (!NILP (Fsymbol_function (Qwindow__sanitize_window_sizes)))
2874 call1 (Qwindow__sanitize_window_sizes, horizontal); 2875 call1 (Qwindow__sanitize_window_sizes, horizontal);
2875} 2876}
diff --git a/src/window.h b/src/window.h
index 268e0f2c1b0..c2898194854 100644
--- a/src/window.h
+++ b/src/window.h
@@ -1105,7 +1105,7 @@ extern int window_body_width (struct window *w, bool);
1105extern void temp_output_buffer_show (Lisp_Object); 1105extern void temp_output_buffer_show (Lisp_Object);
1106extern void replace_buffer_in_windows (Lisp_Object); 1106extern void replace_buffer_in_windows (Lisp_Object);
1107extern void replace_buffer_in_windows_safely (Lisp_Object); 1107extern void replace_buffer_in_windows_safely (Lisp_Object);
1108extern void sanitize_window_sizes (Lisp_Object, Lisp_Object); 1108extern void sanitize_window_sizes (Lisp_Object horizontal);
1109/* This looks like a setter, but it is a bit special. */ 1109/* This looks like a setter, but it is a bit special. */
1110extern void wset_buffer (struct window *, Lisp_Object); 1110extern void wset_buffer (struct window *, Lisp_Object);
1111extern bool window_outdated (struct window *); 1111extern bool window_outdated (struct window *);