* Doc suggestion for `cursor-type' in buffer.c
@ 2008-11-07 9:42 Ben North
2008-11-16 18:57 ` martin rudalics
0 siblings, 1 reply; 2+ messages in thread
From: Ben North @ 2008-11-07 9:42 UTC (permalink / raw)
To: emacs-devel
The docstring for the variable `cursor-type' ends with the text
When the buffer is displayed in a nonselected window,
this variable has no effect; the cursor appears as a hollow box.
which suggests the user has no control over the cursor when in a
non-selected window. In fact the user can control this, by means of the
variable `cursor-in-non-selected-windows'. Would a patch like the below
(made against CVS 1.571) clarify the docstring?
Ben.
diff -Nur ORIG/buffer.c NEW/buffer.c
--- ORIG/buffer.c 2008-11-07 09:28:13.621444300 +0000
+++ NEW/buffer.c 2008-11-07 09:32:17.647201000 +0000
@@ -6213,8 +6213,9 @@
(hbar . HEIGHT) display a horizontal bar cursor with height HEIGHT
ANYTHING ELSE display a hollow box cursor
-When the buffer is displayed in a nonselected window,
-this variable has no effect; the cursor appears as a hollow box. */);
+When the buffer is displayed in a nonselected window, the cursor's
+appearance is instead controlled by the variable
+`cursor-in-non-selected-windows'. */);
DEFVAR_PER_BUFFER ("line-spacing",
¤t_buffer->extra_line_spacing, Qnil,
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Doc suggestion for `cursor-type' in buffer.c
2008-11-07 9:42 Doc suggestion for `cursor-type' in buffer.c Ben North
@ 2008-11-16 18:57 ` martin rudalics
0 siblings, 0 replies; 2+ messages in thread
From: martin rudalics @ 2008-11-16 18:57 UTC (permalink / raw)
To: Ben North; +Cc: emacs-devel
> Would a patch like the below
> (made against CVS 1.571) clarify the docstring?
[...]
> -When the buffer is displayed in a nonselected window,
> -this variable has no effect; the cursor appears as a hollow box. */);
> +When the buffer is displayed in a nonselected window, the cursor's
> +appearance is instead controlled by the variable
> +`cursor-in-non-selected-windows'. */);
Thank you, applied.
martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-16 18:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-07 9:42 Doc suggestion for `cursor-type' in buffer.c Ben North
2008-11-16 18:57 ` martin rudalics
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.