Fix 'toggle-window-dedicated' documentation
authorRobert Pluim <rpluim@gmail.com>
Wed, 17 Jul 2024 07:38:43 +0000 (09:38 +0200)
committerRobert Pluim <rpluim@gmail.com>
Wed, 17 Jul 2024 07:47:28 +0000 (09:47 +0200)
* doc/emacs/windows.texi (Displaying Buffers): Fix the cross reference
to the elisp manual.  Add missing 'toggle-window-dedicated'.
* doc/lispref/windows.texi (Dedicated Windows): Mention
'toggle-window-dedicated'.

doc/emacs/windows.texi
doc/lispref/windows.texi

index 60599d42020b0cf28be2cbbb8d8cdc028d47681c..7b9c414670041959d932e457813a134e02f47eac 100644 (file)
@@ -418,7 +418,7 @@ these commands are bound in the @kbd{C-x 5} prefix key.
 
 @cindex dedicated window
   Sometimes, a window is ``dedicated'' to its current buffer.
-@xref{Dedicated Windows,, elisp, The Emacs Lisp Reference Manual}.
+@xref{Dedicated Windows,,, elisp, The Emacs Lisp Reference Manual}.
 @code{display-buffer} will avoid reusing dedicated windows most of the
 time.  This is indicated by a @samp{d} in the mode line (@pxref{Mode
 Line}).  A window can also be strongly dedicated, which prevents any
@@ -434,9 +434,9 @@ you dedicate a window to that buffer, the command (through
 
 @kindex C-x w d
 @findex toggle-window-dedicated
-  Toggle whether the selected window is dedicated to the current
-buffer.  With a prefix argument, make the window strongly dedicated
-instead.
+  You can use the command @code{toggle-window-dedicated} to toggle
+whether the selected window is dedicated to the current buffer.  With a
+prefix argument, make the window strongly dedicated instead.
 
 @menu
 * Window Choice::   How @code{display-buffer} works.
index 01ec2a6ecd5a4c51a87f90a222860a10da94f70f..9e47d12c42bd669b75c1267e19b5c5799701fa09 100644 (file)
@@ -4450,6 +4450,7 @@ selected window.
 @defun set-window-dedicated-p window flag
 This function marks @var{window} as dedicated to its buffer if
 @var{flag} is non-@code{nil}, and non-dedicated otherwise.
+Interactively you can use the @code{toggle-window-dedicated} command.
 
 As a special case, if @var{flag} is @code{t}, @var{window} becomes
 @dfn{strongly} dedicated to its buffer.  @code{set-window-buffer}