aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorZajcev Evgeny2020-01-27 15:49:46 +0300
committerEli Zaretskii2020-02-07 12:00:14 +0200
commit63fd6c9ef050f8077823b3a45c841dc255257f3b (patch)
treeeeb5071fe9162229d658d46a238b2fe95af642c3 /src/buffer.c
parentc4be80112556e06bd7e92138e44051cc8c62e709 (diff)
downloademacs-63fd6c9ef050f8077823b3a45c841dc255257f3b.tar.gz
emacs-63fd6c9ef050f8077823b3a45c841dc255257f3b.zip
Support for (box . SIZE) 'cursor-type'
This allows control of the minimum size of a masked image under which the box cursor becomes hollow. * buffer.c (cursor-type): Add commentary about (box . SIZE) 'cursor-type'. * xdisp.c (get_specified_cursor_type): Check for 'cursor-type' of the form (box . SIZE). (get_window_cursor_type): Check masked image size for (box . SIZE) 'cursor-type'. * doc/emacs/display.texi (Cursor Display): * doc/emacs/display.texi (Cursor Parameters): Add description of (box . SIZE) 'cursor-type'. * etc/NEWS: Mention the new (box . SIZE) 'cursor-type'.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 5c65d4d4d19..cc7d4e4817c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -6247,6 +6247,9 @@ Values are interpreted as follows:
6247 t use the cursor specified for the frame 6247 t use the cursor specified for the frame
6248 nil don't display a cursor 6248 nil don't display a cursor
6249 box display a filled box cursor 6249 box display a filled box cursor
6250 (box . SIZE) display a filled box cursor, but make it
6251 hollow if cursor is under masked image larger than
6252 SIZE pixels in either dimension.
6250 hollow display a hollow box cursor 6253 hollow display a hollow box cursor
6251 bar display a vertical bar cursor with default width 6254 bar display a vertical bar cursor with default width
6252 (bar . WIDTH) display a vertical bar cursor with width WIDTH 6255 (bar . WIDTH) display a vertical bar cursor with width WIDTH