emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 5f0b1c3: * src/window.c (sanitize_window_sizes): Re


From: Stefan Monnier
Subject: [Emacs-diffs] master 5f0b1c3: * src/window.c (sanitize_window_sizes): Remove unused arg `frame'
Date: Wed, 3 Aug 2016 02:40:42 +0000 (UTC)

branch: master
commit 5f0b1c307a7d66ee8d2afa2eff982866785f60dd
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * 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.
---
 src/emacs.c  |    2 +-
 src/frame.c  |    8 ++++----
 src/window.c |    3 ++-
 src/window.h |    2 +-
 4 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/emacs.c b/src/emacs.c
index 53bcc98..85fb22b 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -668,7 +668,7 @@ main (int argc, char **argv)
   bool do_initial_setlocale;
   bool dumping;
   int skip_args = 0;
-  bool no_loadup = 0;
+  bool no_loadup = false;
   char *junk = 0;
   char *dname_arg = 0;
 #ifdef DAEMON_MUST_EXEC
diff --git a/src/frame.c b/src/frame.c
index 22143ab..899c315 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,
       && new_lines == old_lines)
     /* No change.  Sanitize window sizes and return.  */
     {
-      sanitize_window_sizes (frame, Qt);
-      sanitize_window_sizes (frame, Qnil);
+      sanitize_window_sizes (Qt);
+      sanitize_window_sizes (Qnil);
 
       return;
     }
@@ -582,8 +582,8 @@ adjust_frame_size (struct frame *f, int new_width, int 
new_height, int inhibit,
   }
 
   /* Sanitize window sizes.  */
-  sanitize_window_sizes (frame, Qt);
-  sanitize_window_sizes (frame, Qnil);
+  sanitize_window_sizes (Qt);
+  sanitize_window_sizes (Qnil);
 
   adjust_frame_glyphs (f);
   calculate_costs (f);
diff --git a/src/window.c b/src/window.c
index a3fbffc..374ef0f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2868,8 +2868,9 @@ resize_root_window (Lisp_Object window, Lisp_Object delta,
 }
 
 void
-sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal)
+sanitize_window_sizes (Lisp_Object horizontal)
 {
+  /* Don't burp in temacs -nw before window.el is loaded.  */
   if (!NILP (Fsymbol_function (Qwindow__sanitize_window_sizes)))
     call1 (Qwindow__sanitize_window_sizes, horizontal);
 }
diff --git a/src/window.h b/src/window.h
index 268e0f2..c289819 100644
--- a/src/window.h
+++ b/src/window.h
@@ -1105,7 +1105,7 @@ extern int window_body_width (struct window *w, bool);
 extern void temp_output_buffer_show (Lisp_Object);
 extern void replace_buffer_in_windows (Lisp_Object);
 extern void replace_buffer_in_windows_safely (Lisp_Object);
-extern void sanitize_window_sizes (Lisp_Object, Lisp_Object);
+extern void sanitize_window_sizes (Lisp_Object horizontal);
 /* This looks like a setter, but it is a bit special.  */
 extern void wset_buffer (struct window *, Lisp_Object);
 extern bool window_outdated (struct window *);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]