From d7d0f5b5a2d9705e6e3cf667677edc3e3f8ac9fc Mon Sep 17 00:00:00 2001 From: Jimmy Aguilar Mena Date: Thu, 17 Mar 2022 19:16:36 +0100 Subject: 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. --- doc/lispref/text.texi | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'doc') 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)} -- cgit v1.2.1