summaryrefslogtreecommitdiff
path: root/doc/lispref/text.texi
diff options
context:
space:
mode:
authorJimmy Aguilar Mena <spacibba@aol.com>2022-03-17 19:16:36 +0100
committerJimmy Aguilar Mena <spacibba@aol.com>2022-03-17 19:36:08 +0100
commitd7d0f5b5a2d9705e6e3cf667677edc3e3f8ac9fc (patch)
tree9a21fb60b9c32d37362206573473a6601ec615ac /doc/lispref/text.texi
parentf96669e0a4a905cc857db389bf4c6b2d8382f3a5 (diff)
downloademacs-d7d0f5b5a2d9705e6e3cf667677edc3e3f8ac9fc.tar.gz
Add new variable cursor-face-highlight-nonselected-window
* lisp/simple.el (cursor-face-highlight-nonselected-window) : New custom default to cursor-in-non-selected-windows. (redisplay--update-cursor-face-highlight) : Extend highlight condition to consider the new variable.
Diffstat (limited to 'doc/lispref/text.texi')
-rw-r--r--doc/lispref/text.texi14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index b7377d3156d..30036675e10 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -3553,11 +3553,15 @@ unhighlighted text.
@item cursor-face
@kindex cursor-face @r{(text property)}
-This property is similar to @code{mouse-face} but the face is used the
-cursor (instead of mouse) is on or near the character. Near has the
-same meaning than in @code{mouse-face} and the highlight only takes
-effect if the mode @code{cursor-face-highlight-mode} is enabled;
-otherwise no highlight is performed.
+This property is similar to @code{mouse-face} but the face is used if
+the cursor (instead of mouse) is on or near the character. Near has
+the same meaning than in @code{mouse-face} and the highlight only
+takes effect if the mode @code{cursor-face-highlight-mode} is enabled;
+otherwise no highlight is performed. When the variable
+@code{cursor-face-highlight-nonselected-window} is non-@code{nil} the
+text is highlighted even if the window is not selected similar to
+@code{highlight-nonselected-windows} for the region. The default
+value is the same of @code{cursor-in-non-selected-windows}.
@item fontified
@kindex fontified @r{(text property)}