diff options
| author | Nick Helm | 2018-03-18 21:05:44 +1300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-03-20 14:19:14 +0200 |
| commit | 2fb52abd9e74f722c08c5e59f63dee8821789e1a (patch) | |
| tree | a7d20dff222e9077f40ac7b7587abb192bd3649c /doc | |
| parent | ec08c62f036c3c86f1e00d54a47c405299a19993 (diff) | |
| download | emacs-2fb52abd9e74f722c08c5e59f63dee8821789e1a.tar.gz emacs-2fb52abd9e74f722c08c5e59f63dee8821789e1a.zip | |
Improve documentation of 'with-help-window'
* doc/lispref/help.texi (Help Functions): Change variable name
to 'buffer-or-name'.
* lisp/help.el (with-help-window): Change variable name to
'buffer-or-name' and rewrite the doc string, adding reference
to 'help-window-setup'. (Bug#30792)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/help.texi | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi index 33cc2f0d55b..6dd55d0b256 100644 --- a/doc/lispref/help.texi +++ b/doc/lispref/help.texi | |||
| @@ -744,16 +744,17 @@ This function returns the name of the help buffer, which is normally | |||
| 744 | @end defun | 744 | @end defun |
| 745 | 745 | ||
| 746 | @vindex help-window-select | 746 | @vindex help-window-select |
| 747 | @defmac with-help-window buffer-name body@dots{} | 747 | @defmac with-help-window buffer-or-name body@dots{} |
| 748 | This macro evaluates @var{body} like @code{with-output-to-temp-buffer} | 748 | This macro evaluates @var{body} like @code{with-output-to-temp-buffer} |
| 749 | (@pxref{Temporary Displays}), inserting any output produced by its forms | 749 | (@pxref{Temporary Displays}), inserting any output produced by its |
| 750 | into a buffer named @var{buffer-name}. (Usually, @var{buffer-name} | 750 | forms into a buffer specified by @var{buffer-or-name}, which can be a |
| 751 | should be the value returned by the function @code{help-buffer}.) It | 751 | buffer or the name of a buffer. (Frequently, @var{buffer-or-name} is |
| 752 | also puts the specified buffer into Help mode and displays a message | 752 | the value returned by the function @code{help-buffer}.) This macro |
| 753 | telling the user how to quit and scroll the help window. It selects the | 753 | puts the specified buffer into Help mode and displays a message |
| 754 | help window if the current value of the user option | 754 | telling the user how to quit and scroll the help window. It selects |
| 755 | @code{help-window-select} has been set accordingly. It returns the last | 755 | the help window if the current value of the user option |
| 756 | value in @var{body}. | 756 | @code{help-window-select} has been set accordingly. It returns the |
| 757 | last value in @var{body}. | ||
| 757 | @end defmac | 758 | @end defmac |
| 758 | 759 | ||
| 759 | @defun help-setup-xref item interactive-p | 760 | @defun help-setup-xref item interactive-p |