]> git.eshelyaron.com Git - emacs.git/commitdiff
(Help Functions): Document new macro `with-help-window'.
authorMartin Rudalics <rudalics@gmx.at>
Tue, 13 Nov 2007 07:50:36 +0000 (07:50 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 13 Nov 2007 07:50:36 +0000 (07:50 +0000)
doc/lispref/ChangeLog
doc/lispref/help.texi

index 284809bdac119734f285f1a80b26fc60a1128196..0af60709be4603ca7edcf0001ce19fc07bb9bd33 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-13  Martin Rudalics  <rudalics@gmx.at>
+
+       * help.texi (Help Functions): Document new macro `with-help-window'.
+
 2007-11-10  Paul Pogonyshev  <pogonyshev@gmx.net>
 
        * searching.texi (Replacing Match): Describe new
index 64b6a6ecfa2f212a06b912b67d0e859e87e92388..c23d6808488994b9194724aeb8a9444ae7de4ab9 100644 (file)
@@ -687,6 +687,17 @@ This macro is used in the command @code{help-for-help} which is the
 binding of @kbd{C-h C-h}.
 @end defmac
 
+@defmac with-help-window buffer-name body@dots{}
+This macro evaluates the @var{body} forms inserting any output they
+produce into a buffer named @var{buffer-name}.  @code{with-help-window}
+behaves like @code{with-output-to-temp-buffer} (@pxref{Temporary
+Displays}) but does more accurately restore the previous window
+configuration when quitting Help.  It also generates the message
+informing the user how to quit and scroll the help window by itself.
+Hence you will regret it if you use @code{print-help-return-message} in
+the body of this macro.
+@end defmac
+
 @defopt three-step-help
 If this variable is non-@code{nil}, commands defined with
 @code{make-help-screen} display their @var{help-line} strings in the