diff options
| author | Eli Zaretskii | 2017-12-09 22:06:19 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-12-09 22:06:19 +0200 |
| commit | 122e7264b88049e8d1a0b54dd993f137238c33fb (patch) | |
| tree | 9db4446dd341a4401c524d1b6790814254adf3f5 /src/buffer.h | |
| parent | e1cc2037a9183bab9440b7b981a233c95d896aac (diff) | |
| download | emacs-122e7264b88049e8d1a0b54dd993f137238c33fb.tar.gz emacs-122e7264b88049e8d1a0b54dd993f137238c33fb.zip | |
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.h | 10 |
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) | |||
| 949 | b->display_count_ = val; | 949 | b->display_count_ = val; |
| 950 | } | 950 | } |
| 951 | INLINE void | 951 | INLINE void |
| 952 | bset_left_margin_cols (struct buffer *b, Lisp_Object val) | ||
| 953 | { | ||
| 954 | b->left_margin_cols_ = val; | ||
| 955 | } | ||
| 956 | INLINE void | ||
| 957 | bset_right_margin_cols (struct buffer *b, Lisp_Object val) | ||
| 958 | { | ||
| 959 | b->right_margin_cols_ = val; | ||
| 960 | } | ||
| 961 | INLINE void | ||
| 952 | bset_display_time (struct buffer *b, Lisp_Object val) | 962 | bset_display_time (struct buffer *b, Lisp_Object val) |
| 953 | { | 963 | { |
| 954 | b->display_time_ = val; | 964 | b->display_time_ = val; |