aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorZajcev Evgeny2020-01-27 15:49:46 +0300
committerEli Zaretskii2020-02-07 12:00:14 +0200
commit63fd6c9ef050f8077823b3a45c841dc255257f3b (patch)
treeeeb5071fe9162229d658d46a238b2fe95af642c3 /doc
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 'doc')
-rw-r--r--doc/emacs/display.texi2
-rw-r--r--doc/lispref/frames.texi3
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index 8444aef3bdd..dc6fe3a0327 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -1654,6 +1654,8 @@ Customization}). (The other attributes of this face have no effect;
1654the text shown under the cursor is drawn using the frame's background 1654the text shown under the cursor is drawn using the frame's background
1655color.) To change its shape, customize the buffer-local variable 1655color.) To change its shape, customize the buffer-local variable
1656@code{cursor-type}; possible values are @code{box} (the default), 1656@code{cursor-type}; possible values are @code{box} (the default),
1657@code{(box . @var{SIZE})} (box cursor becoming a hollow box under
1658masked images larger than @var{SIZE} pixels in either dimension),
1657@code{hollow} (a hollow box), @code{bar} (a vertical bar), @code{(bar 1659@code{hollow} (a hollow box), @code{bar} (a vertical bar), @code{(bar
1658. @var{n})} (a vertical bar @var{n} pixels wide), @code{hbar} (a 1660. @var{n})} (a vertical bar @var{n} pixels wide), @code{hbar} (a
1659horizontal bar), @code{(hbar . @var{n})} (a horizontal bar @var{n} 1661horizontal bar), @code{(hbar . @var{n})} (a horizontal bar @var{n}
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 2bb505c1c7a..70ebe2e87d7 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -2220,6 +2220,9 @@ How to display the cursor. Legitimate values are:
2220@table @code 2220@table @code
2221@item box 2221@item box
2222Display a filled box. (This is the default.) 2222Display a filled box. (This is the default.)
2223@item (box . @var{SIZE})
2224Display a filled box. However, display it as a hollow box if point is
2225under masked image larger than @var{SIZE} pixels in either dimension.
2223@item hollow 2226@item hollow
2224Display a hollow box. 2227Display a hollow box.
2225@item nil 2228@item nil