emacs-31 ea87a99b843: ; Fix recent improvements in docs of splitting and merging frames

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: emacs-31
commit ea87a99b84315eddd6e9638ff81a77b673ceeb94
Author: Eli Zaretskii <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    ; Fix recent improvements in docs of splitting and merging frames
    
    * lisp/window-x.el (merge-frames): Doc fix.
    
    * doc/lispref/windows.texi (Basic Windows): Fix a typo.
    * doc/lispref/frames.texi (Splitting and Merging Frames): Fix
    wording, markup and indexing.
---
 doc/lispref/frames.texi  | 14 ++++++++------
 doc/lispref/windows.texi |  2 +-
 lisp/window-x.el         |  6 ++++--
 3 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 6fe545ef580..945cb4d0f32 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -3094,7 +3094,7 @@ criteria.
 @section Splitting and Merging Frames
 @cindex splitting a frame
 @cindex merging two frames
-@cindex Transferring window layouts
+@cindex transferring window layouts to frames
 
 The following two functions are useful to transfer parts of the window
 layout (@pxref{Basic Windows}) of one frame to two separate frames and
@@ -3110,7 +3110,7 @@ Interactively, @var{arg} is the prefix argument.
 In a first step, it divides the child windows (@pxref{Windows and
 Frames}) of @var{frame}'s main window (@pxref{Side Windows}) into two
 parts.  The first part includes the first @var{arg} child windows if
-@var{arg} is positive, and the -@var{arg} last child windows if
+@var{arg} is positive, and the @minus{}@var{arg} last child windows if
 @var{arg} is negative.  The second part includes the remaining child
 windows of @var{frame}'s main window.
 
@@ -3133,20 +3133,22 @@ This command transfers the main window (@pxref{Side Windows}) of
 @var{frame2} to @var{frame1}.  Both @var{frame1} and @var{frame2} must
 specify live frames.
 
-In a first step it splits the main window of @var{frame1}.  If
+In the first step it splits the main window of @var{frame1}.  If
 @var{vertical} is non-@code{nil}, it makes the new window below the old
 main window of @var{frame1}.  Otherwise, it makes the new window on the
 right of @var{frame1}'s main window.
 
-In a second step it makes the new window a clone (@pxref{Window
+In the second step it makes the new window a clone (@pxref{Window
 Configurations}) of the main window of @var{frame2}.  The original
 identity (@pxref{Basic Windows}) of the cloned windows is lost in that
-step.  In a final step, it deletes @var{frame2} if the merge completed
+step.  In the final step, it deletes @var{frame2} if the merge completed
 successfully and returns @var{frame1}.
 
 Interactively, @var{vertical} is the prefix argument, @var{frame1} is
 the selected frame and @var{frame2} is the frame following @var{frame1}
-in the list of all frames (@pxref{Finding All Frames}).
+in the list of all frames (@pxref{Finding All Frames}).  If @var{frame1}
+and @var{frame2} are omitted or @code{nil} in calls from Lisp, they
+default to the above values.
 @end deffn
 
 In general you cannot ``undo'' a @code{split-frame} call with a
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 8bb2a7fc9bb..16b82a6a29e 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -89,7 +89,7 @@ tiling operations for that frame.
 @cindex window object
 @cindex window identity
 In Emacs Lisp, windows are represented by a special Lisp object type
-(@pxref{Window Type}).  Two windows are identic if and only if they are
+(@pxref{Window Type}).  Two windows are identical if and only if they are
 represented by the same Lisp object.
 
 @defun windowp object
diff --git a/lisp/window-x.el b/lisp/window-x.el
index 4197d5a0a26..813b8aed9f3 100644
--- a/lisp/window-x.el
+++ b/lisp/window-x.el
@@ -319,8 +319,10 @@ ones in `window--transpose'."
 (defun merge-frames (&optional frame1 frame2 vertical)
   "Merge the main window of FRAME2 into FRAME1.
 Split the main window of FRAME1 and make the new window display the main
-window of FRAME2.  Both FRAME1 and FRAME2 must be live frames.  If
-VERTICAL is non-nil, make the new window below the old main window of
+window of FRAME2.  Both FRAME1 and FRAME2 must be live frames.  FRAME1
+defaults to the selected frame and FRAME2 to the frame that follows FRAME1
+in the frame list.
+If VERTICAL is non-nil, make the new window below the old main window of
 FRAME1.  Otherwise, make the new window on the right of FRAME1's main
 window.  Interactively, VERTICAL is the prefix argument, FRAME1 is the
 selected frame and FRAME2 is the frame following FRAME1 in the frame
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.