summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-12-09 22:06:19 +0200
committerEli Zaretskii <eliz@gnu.org>2017-12-09 22:06:19 +0200
commit122e7264b88049e8d1a0b54dd993f137238c33fb (patch)
tree9db4446dd341a4401c524d1b6790814254adf3f5 /src/buffer.h
parente1cc2037a9183bab9440b7b981a233c95d896aac (diff)
downloademacs-122e7264b88049e8d1a0b54dd993f137238c33fb.tar.gz
Fix tool-tip display when display margins are non-zero by default
* src/buffer.h (bset_left_margin_cols, bset_right_margin_cols): New inline functions. * src/xfns.c (Fx_show_tip): * src/w32fns.c (Fx_show_tip): Force display margins of the tip buffer to zero, as it will be displayed in a pseudo-window, which doesn't support display margins. (Bug#29627)
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 46c7c6e5ad6..ecd2360dbca 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -949,6 +949,16 @@ bset_display_count (struct buffer *b, Lisp_Object val)
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;