diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.h | 13 | ||||
| -rw-r--r-- | src/frame.h | 12 | ||||
| -rw-r--r-- | src/window.h | 16 |
3 files changed, 30 insertions, 11 deletions
diff --git a/src/buffer.h b/src/buffer.h index a75d81bfd4a..a0e06025893 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | /* Header file for the buffer manipulation primitives. | 1 | /* Header file for the buffer manipulation primitives. |
| 2 | Copyright (C) 1985, 1986, 1990 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1986, 1990, 1992 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| 6 | GNU Emacs is free software; you can redistribute it and/or modify | 6 | GNU Emacs is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 1, or (at your option) | 8 | the Free Software Foundation; either version 2, or (at your option) |
| 9 | any later version. | 9 | any later version. |
| 10 | 10 | ||
| 11 | GNU Emacs is distributed in the hope that it will be useful, | 11 | GNU Emacs is distributed in the hope that it will be useful, |
| @@ -296,6 +296,15 @@ extern struct buffer buffer_local_flags; | |||
| 296 | 296 | ||
| 297 | extern struct buffer buffer_local_symbols; | 297 | extern struct buffer buffer_local_symbols; |
| 298 | 298 | ||
| 299 | /* This structure holds the required types for the values in the | ||
| 300 | buffer-local slots. If a slot contains Qnil, then the | ||
| 301 | corresponding buffer slot may contain a value of any type. If a | ||
| 302 | slot contains an integer, then prospective values' tags must be | ||
| 303 | equal to that integer. When a tag does not match, the function | ||
| 304 | buffer_slot_type_mismatch will signal an error. The value Qnil may | ||
| 305 | always be safely stored in any slot. */ | ||
| 306 | struct buffer buffer_local_types; | ||
| 307 | |||
| 299 | /* Point in the current buffer. */ | 308 | /* Point in the current buffer. */ |
| 300 | 309 | ||
| 301 | #define point (current_buffer->text.pt + 0) | 310 | #define point (current_buffer->text.pt + 0) |
diff --git a/src/frame.h b/src/frame.h index 8b46e591a20..1a87e6c618d 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -73,7 +73,7 @@ struct frame | |||
| 73 | /* New height and width for pending size change. 0 if no change pending. */ | 73 | /* New height and width for pending size change. 0 if no change pending. */ |
| 74 | int new_height, new_width; | 74 | int new_height, new_width; |
| 75 | 75 | ||
| 76 | /* Name of this frame: a Lisp string. */ | 76 | /* Name of this frame: a Lisp string. See also `explicit_name'. */ |
| 77 | Lisp_Object name; | 77 | Lisp_Object name; |
| 78 | 78 | ||
| 79 | /* The frame which should recieve keystrokes that occur in this | 79 | /* The frame which should recieve keystrokes that occur in this |
| @@ -143,6 +143,12 @@ struct frame | |||
| 143 | /* True if frame's root window can't be split. */ | 143 | /* True if frame's root window can't be split. */ |
| 144 | char no_split; | 144 | char no_split; |
| 145 | 145 | ||
| 146 | /* If this is set, then Emacs won't change the frame name to indicate | ||
| 147 | the current buffer, etcetera. If the user explicitly sets the frame | ||
| 148 | name, this gets set. If the user sets the name to Qnil, this is | ||
| 149 | cleared. */ | ||
| 150 | char explicit_name; | ||
| 151 | |||
| 146 | /* Storage for messages to this frame. */ | 152 | /* Storage for messages to this frame. */ |
| 147 | char *message_buf; | 153 | char *message_buf; |
| 148 | 154 | ||
| @@ -285,8 +291,8 @@ extern int message_buf_print; | |||
| 285 | #define FRAME_NO_SPLIT_P(f) 0 | 291 | #define FRAME_NO_SPLIT_P(f) 0 |
| 286 | #define FRAME_WANTS_MODELINE_P(f) 1 | 292 | #define FRAME_WANTS_MODELINE_P(f) 1 |
| 287 | #define FRAME_ICONIFIED_P(f) 0 | 293 | #define FRAME_ICONIFIED_P(f) 0 |
| 288 | #define FRAME_MINIBUF_WINDOW(f) (minibuf_window) | 294 | #define FRAME_MINIBUF_WINDOW(f) (the_only_frame.root_window) |
| 289 | #define FRAME_ROOT_WINDOW(f) (XWINDOW (minibuf_window)->prev) | 295 | #define FRAME_ROOT_WINDOW(f) (the_only_frame.root_window) |
| 290 | #define FRAME_SELECTED_WINDOW(f) (selected_window) | 296 | #define FRAME_SELECTED_WINDOW(f) (selected_window) |
| 291 | #define SET_GLYPHS_FRAME(glyphs,frame) do ; while (0) | 297 | #define SET_GLYPHS_FRAME(glyphs,frame) do ; while (0) |
| 292 | #define FRAME_INSERT_COST(frame) (the_only_frame.insert_line_cost) | 298 | #define FRAME_INSERT_COST(frame) (the_only_frame.insert_line_cost) |
diff --git a/src/window.h b/src/window.h index 8cb36ef0a8d..aa4278623ca 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -63,11 +63,12 @@ initially the root window is a leaf window, but if more windows | |||
| 63 | are created then that leaf window ceases to be root and a newly | 63 | are created then that leaf window ceases to be root and a newly |
| 64 | made combination window becomes root instead. | 64 | made combination window becomes root instead. |
| 65 | 65 | ||
| 66 | In any case, prev of the minibuf window is the root window and | 66 | In any case, on screens which have an ordinary window and a |
| 67 | next of the root window is the minibuf window. To find the | 67 | minibuffer, prev of the minibuf window is the root window and next of |
| 68 | root window at any time, do XWINDOW (minibuf_window)->prev. | 68 | the root window is the minibuf window. On minibufferless screens or |
| 69 | minibuffer-only screens, the root window and the minibuffer window are | ||
| 70 | one and the same, so its prev and next members are nil. */ | ||
| 69 | 71 | ||
| 70 | */ | ||
| 71 | 72 | ||
| 72 | struct window | 73 | struct window |
| 73 | { | 74 | { |
| @@ -174,8 +175,7 @@ extern int window_select_count; | |||
| 174 | 175 | ||
| 175 | /* The minibuffer window of the selected frame. | 176 | /* The minibuffer window of the selected frame. |
| 176 | Note that you cannot test for minibufferness of an arbitrary window | 177 | Note that you cannot test for minibufferness of an arbitrary window |
| 177 | by comparing against this; but you can test for minibufferness of | 178 | by comparing against this; use the MINI_WINDOW_P macro instead. */ |
| 178 | the selected window or of any window that is displayed. */ | ||
| 179 | 179 | ||
| 180 | extern Lisp_Object minibuf_window; | 180 | extern Lisp_Object minibuf_window; |
| 181 | 181 | ||
| @@ -247,3 +247,7 @@ extern int windows_or_buffers_changed; | |||
| 247 | /* Number of windows displaying the selected buffer. | 247 | /* Number of windows displaying the selected buffer. |
| 248 | Normally this is 1, but it can be more. */ | 248 | Normally this is 1, but it can be more. */ |
| 249 | extern int buffer_shared; | 249 | extern int buffer_shared; |
| 250 | |||
| 251 | /* If *ROWS or *COLS are too small a size for FRAME, set them to the | ||
| 252 | minimum allowable size. */ | ||
| 253 | extern void check_frame_size ( /* FRAME_PTR frame, int *rows, int *cols */ ); | ||