From: Lars Ingebrigtsen Date: Wed, 9 Oct 2019 22:51:50 +0000 (+0200) Subject: Clarify documentation of show-help-function slightly X-Git-Tag: emacs-27.0.90~1176 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4efab3f03cec69c87b2e3e28bd70f401821d96f;p=emacs.git Clarify documentation of show-help-function slightly * doc/lispref/text.texi (Special Properties): Clarify where the example in Tooltip mode is (bug#35392). --- diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index ef1d8ebc571..ef11ac26690 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -3733,15 +3733,16 @@ effectively disable them. @end defvar @defvar show-help-function -@anchor{Help display} If this variable is non-@code{nil}, it specifies a -function called to display help strings. These may be @code{help-echo} -properties, menu help strings (@pxref{Simple Menu Items}, -@pxref{Extended Menu Items}), or tool bar help strings (@pxref{Tool -Bar}). The specified function is called with one argument, the help -string to display, which is passed through +@anchor{Help display} If this variable is non-@code{nil}, it specifies +a function called to display help strings. These may be +@code{help-echo} properties, menu help strings (@pxref{Simple Menu +Items}, @pxref{Extended Menu Items}), or tool bar help strings +(@pxref{Tool Bar}). The specified function is called with one +argument, the help string to display, which is passed through @code{substitute-command-keys} before being given to the function; see -@ref{Keys in Documentation}. Tooltip mode (@pxref{Tooltips,,, emacs, -The GNU Emacs Manual}) provides an example. +@ref{Keys in Documentation}. See the code of Tooltip mode +(@pxref{Tooltips,,, emacs, The GNU Emacs Manual}) for an example of a +mode that uses @code{show-help-function}. @end defvar @defvar face-filters-always-match