aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorMartin Rudalics2011-06-08 15:00:51 +0200
committerMartin Rudalics2011-06-08 15:00:51 +0200
commitb9e809c2d78844d1ddc700bca429bee25a437ba5 (patch)
tree344bfa77107e99ce3e2fd67f3fb5805bc539f456 /src/window.c
parent387522b285a49a3c598694ce4cd1cdb90071bf5f (diff)
downloademacs-b9e809c2d78844d1ddc700bca429bee25a437ba5.tar.gz
emacs-b9e809c2d78844d1ddc700bca429bee25a437ba5.zip
New symbols in window.c.
* window.c: (WINDOW_TOTAL_SIZE, MIN_SAFE_WINDOW_WIDTH) (MIN_SAFE_WINDOW_HEIGHT): Really remove them from window.c. (syms_of_window): New Lisp objects Qrecord_window_buffer, Qwindow_deletable_p, Qdelete_window, Qreplace_buffer_in_windows, Qget_mru_window, Qresize_root_window, Qresize_root_window_vertically, Qsafe, Qabove, Qbelow, Qauto_buffer_name; staticpro them.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c54
1 files changed, 40 insertions, 14 deletions
diff --git a/src/window.c b/src/window.c
index 85e076b4188..393a2478ce1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -51,9 +51,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
51#endif 51#endif
52 52
53Lisp_Object Qwindowp, Qwindow_live_p; 53Lisp_Object Qwindowp, Qwindow_live_p;
54static Lisp_Object Qwindow_configuration_p; 54static Lisp_Object Qwindow_configuration_p, Qrecord_window_buffer;
55static Lisp_Object Qdisplay_buffer; 55static Lisp_Object Qwindow_deletable_p, Qdelete_window, Qdisplay_buffer;
56static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window;
57static Lisp_Object Qresize_root_window, Qresize_root_window_vertically;
56static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; 58static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command;
59static Lisp_Object Qsafe, Qabove, Qbelow;
60static Lisp_Object Qauto_buffer_name;
61
57static Lisp_Object Qwindow_size_fixed; 62static Lisp_Object Qwindow_size_fixed;
58 63
59static int displayed_window_lines (struct window *); 64static int displayed_window_lines (struct window *);
@@ -2941,18 +2946,6 @@ replace_buffer_in_all_windows (Lisp_Object buffer)
2941 2946
2942/* Set the height of WINDOW and all its inferiors. */ 2947/* Set the height of WINDOW and all its inferiors. */
2943 2948
2944/* The smallest acceptable dimensions for a window. Anything smaller
2945 might crash Emacs. */
2946
2947#define MIN_SAFE_WINDOW_WIDTH (2)
2948#define MIN_SAFE_WINDOW_HEIGHT (1)
2949
2950/* For wp non-zero the total number of columns of window w. Otherwise
2951 the total number of lines of w. */
2952
2953#define WINDOW_TOTAL_SIZE(w, wp) \
2954 (wp ? WINDOW_TOTAL_COLS (w) : WINDOW_TOTAL_LINES (w))
2955
2956/* If *ROWS or *COLS are too small a size for FRAME, set them to the 2949/* If *ROWS or *COLS are too small a size for FRAME, set them to the
2957 minimum allowable size. */ 2950 minimum allowable size. */
2958 2951
@@ -7406,12 +7399,45 @@ syms_of_window (void)
7406 Qwindow_live_p = intern_c_string ("window-live-p"); 7399 Qwindow_live_p = intern_c_string ("window-live-p");
7407 staticpro (&Qwindow_live_p); 7400 staticpro (&Qwindow_live_p);
7408 7401
7402 Qwindow_deletable_p = intern_c_string ("window-deletable-p");
7403 staticpro (&Qwindow_deletable_p);
7404
7405 Qdelete_window = intern_c_string ("delete-window");
7406 staticpro (&Qdelete_window);
7407
7408 Qresize_root_window = intern_c_string ("resize-root-window");
7409 staticpro (&Qresize_root_window);
7410
7411 Qresize_root_window_vertically = intern_c_string ("resize-root-window-vertically");
7412 staticpro (&Qresize_root_window_vertically);
7413
7414 Qsafe = intern_c_string ("safe");
7415 staticpro (&Qsafe);
7416
7409 Qdisplay_buffer = intern_c_string ("display-buffer"); 7417 Qdisplay_buffer = intern_c_string ("display-buffer");
7410 staticpro (&Qdisplay_buffer); 7418 staticpro (&Qdisplay_buffer);
7411 7419
7420 Qreplace_buffer_in_windows = intern_c_string ("replace-buffer-in-windows");
7421 staticpro (&Qreplace_buffer_in_windows);
7422
7423 Qrecord_window_buffer = intern_c_string ("record-window-buffer");
7424 staticpro (&Qrecord_window_buffer);
7425
7426 Qget_mru_window = intern_c_string ("get-mru-window");
7427 staticpro (&Qget_mru_window);
7428
7412 Qtemp_buffer_show_hook = intern_c_string ("temp-buffer-show-hook"); 7429 Qtemp_buffer_show_hook = intern_c_string ("temp-buffer-show-hook");
7413 staticpro (&Qtemp_buffer_show_hook); 7430 staticpro (&Qtemp_buffer_show_hook);
7414 7431
7432 Qabove = intern_c_string ("above");
7433 staticpro (&Qabove);
7434
7435 Qbelow = intern_c_string ("below");
7436 staticpro (&Qbelow);
7437
7438 Qauto_buffer_name = intern_c_string ("auto-buffer-name");
7439 staticpro (&Qauto_buffer_name);
7440
7415 staticpro (&Vwindow_list); 7441 staticpro (&Vwindow_list);
7416 7442
7417 minibuf_selected_window = Qnil; 7443 minibuf_selected_window = Qnil;