From: Robert Pluim Date: Wed, 17 Jul 2024 07:38:43 +0000 (+0200) Subject: Fix 'toggle-window-dedicated' documentation X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2054d50a0d1946bc99b9efe4d0873cfaa30241a7;p=emacs.git Fix 'toggle-window-dedicated' documentation * 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'. (cherry picked from commit 3ccebbe17b73488d2d0ba73fda3b70cb6034cc7d) --- diff --git a/doc/emacs/windows.texi b/doc/emacs/windows.texi index 7a973e6b4a7..f13506695fb 100644 --- a/doc/emacs/windows.texi +++ b/doc/emacs/windows.texi @@ -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. diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 01ec2a6ecd5..9e47d12c42b 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi @@ -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}