aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.h
diff options
context:
space:
mode:
authorEshel Yaron2024-04-27 20:47:34 +0200
committerEshel Yaron2024-05-18 15:42:19 +0200
commit3b890bf2bd2fec54433f35d61e30542b3dadb612 (patch)
treed7d99ccc4cdc502daaaccff9be24dd51d68109cf /src/window.h
parent6badb1260a5e5107887d244507a7289fa1a30a91 (diff)
downloademacs-3b890bf2bd2fec54433f35d61e30542b3dadb612.tar.gz
emacs-3b890bf2bd2fec54433f35d61e30542b3dadb612.zip
New functions '(set-)window-cursor-type'
* src/window.h (struct window): Add 'cursor_type' slot. (wset_cursor_type): New inline function. * src/xdisp.c (get_window_cursor_type): Consult 'cursor_type'. * src/window.c (make_window): Initialize 'cursor_type' to t. (Fset_window_cursor_type, Fwindow_cursor_type): New functions. (syms_of_window): List their symbols. * doc/lispref/windows.texi (Window Point): Document them. * doc/lispref/frames.texi (Cursor Parameters): Mention new 'set-window-cursor-type'. * etc/NEWS: Announce new functions. (Bug#70622)
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
index 19283725931..86932181252 100644
--- a/src/window.h
+++ b/src/window.h
@@ -205,6 +205,9 @@ struct window
205 /* An alist with parameters. */ 205 /* An alist with parameters. */
206 Lisp_Object window_parameters; 206 Lisp_Object window_parameters;
207 207
208 /* `cursor-type' to use in this window. */
209 Lisp_Object cursor_type;
210
208 /* The help echo text for this window. Qnil if there's none. */ 211 /* The help echo text for this window. Qnil if there's none. */
209 Lisp_Object mode_line_help_echo; 212 Lisp_Object mode_line_help_echo;
210 213
@@ -543,6 +546,12 @@ wset_horizontal_scroll_bar_type (struct window *w, Lisp_Object val)
543} 546}
544 547
545INLINE void 548INLINE void
549wset_cursor_type (struct window *w, Lisp_Object val)
550{
551 w->cursor_type = val;
552}
553
554INLINE void
546wset_prev_buffers (struct window *w, Lisp_Object val) 555wset_prev_buffers (struct window *w, Lisp_Object val)
547{ 556{
548 w->prev_buffers = val; 557 w->prev_buffers = val;