b->display_count_ = val;
}
INLINE void
+bset_left_margin_cols (struct buffer *b, Lisp_Object val)
+{
+ b->left_margin_cols_ = val;
+}
+INLINE void
+bset_right_margin_cols (struct buffer *b, Lisp_Object val)
+{
+ b->right_margin_cols_ = val;
+}
+INLINE void
bset_display_time (struct buffer *b, Lisp_Object val)
{
b->display_time_ = val;
ptrdiff_t count = SPECPDL_INDEX ();
ptrdiff_t count_1;
Lisp_Object window, size;
+ Lisp_Object tip_buf;
AUTO_STRING (tip, " *tip*");
specbind (Qinhibit_redisplay, Qt);
tip_f = XFRAME (tip_frame);
window = FRAME_ROOT_WINDOW (tip_f);
- set_window_buffer (window, Fget_buffer_create (tip), false, false);
+ tip_buf = Fget_buffer_create (tip);
+ /* We will mark the tip window a "pseudo-window" below, and such
+ windows cannot have display margins. */
+ bset_left_margin_cols (XBUFFER (tip_buf), make_number (0));
+ bset_right_margin_cols (XBUFFER (tip_buf), make_number (0));
+ set_window_buffer (window, tip_buf, false, false);
w = XWINDOW (window);
w->pseudo_window_p = true;
bool_bf must_be_updated_p : 1;
/* Flag indicating that this window is not a real one.
- Currently only used for menu bar windows of frames. */
+ Currently only used for menu bar windows, for tool bar windows,
+ and for tooltips. */
bool_bf pseudo_window_p : 1;
/* True means fringes are drawn outside display margins.
ptrdiff_t count = SPECPDL_INDEX ();
ptrdiff_t count_1;
Lisp_Object window, size;
+ Lisp_Object tip_buf;
AUTO_STRING (tip, " *tip*");
specbind (Qinhibit_redisplay, Qt);
tip_f = XFRAME (tip_frame);
window = FRAME_ROOT_WINDOW (tip_f);
- set_window_buffer (window, Fget_buffer_create (tip), false, false);
+ tip_buf = Fget_buffer_create (tip);
+ /* We will mark the tip window a "pseudo-window" below, and such
+ windows cannot have display margins. */
+ bset_left_margin_cols (XBUFFER (tip_buf), make_number (0));
+ bset_right_margin_cols (XBUFFER (tip_buf), make_number (0));
+ set_window_buffer (window, tip_buf, false, false);
w = XWINDOW (window);
w->pseudo_window_p = true;