unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* windows.texi doc fix
@ 2004-10-19 10:11 david.ponce
  2004-10-21  1:46 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: david.ponce @ 2004-10-19 10:11 UTC (permalink / raw)


Hi,

Following is a small patch to the Elisp manual that fixes the missing
documentation of the `preserve-before' optional argument of the
functions `enlarge-window' and `shrink-window'.  I just added the
description I found in doc strings.

David

2004-10-19  David Ponce  <david@dponce.com>

	* windows.texi (Resizing Windows): Document the `preserve-before'
	argument of the functions `enlarge-window' and `shrink-window'.

Index: windows.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/lispref/windows.texi,v
retrieving revision 1.75
diff -c -r1.75 windows.texi
*** windows.texi	24 Jul 2004 15:33:15 -0000	1.75
--- windows.texi	19 Oct 2004 09:57:54 -0000
***************
*** 1922,1928 ****
  window size.  Emacs does not permit overlapping windows or gaps between
  windows, so resizing one window affects other windows.
  
! @deffn Command enlarge-window size &optional horizontal
  This function makes the selected window @var{size} lines taller,
  stealing lines from neighboring windows.  It takes the lines from one
  window at a time until that window is used up, then takes from another.
--- 1922,1928 ----
  window size.  Emacs does not permit overlapping windows or gaps between
  windows, so resizing one window affects other windows.
  
! @deffn Command enlarge-window size &optional horizontal preserve-before
  This function makes the selected window @var{size} lines taller,
  stealing lines from neighboring windows.  It takes the lines from one
  window at a time until that window is used up, then takes from another.
***************
*** 1950,1955 ****
--- 1950,1959 ----
  than the minimum size (@code{window-min-height} and
  @code{window-min-width}), @code{enlarge-window} deletes the window.
  
+ Optional third arg @var{preserve-before}, if non-@code{nil}, means do
+ not change the size of the siblings above or to the left of the
+ selected window.  Only siblings to the right or below are changed.
+ 
  @code{enlarge-window} returns @code{nil}.
  @end deffn
  
***************
*** 1965,1971 ****
  @end example
  @end deffn
  
! @deffn Command shrink-window size &optional horizontal
  This function is like @code{enlarge-window} but negates the argument
  @var{size}, making the selected window smaller by giving lines (or
  columns) to the other windows.  If the window shrinks below
--- 1969,1975 ----
  @end example
  @end deffn
  
! @deffn Command shrink-window size &optional horizontal preserve-before
  This function is like @code{enlarge-window} but negates the argument
  @var{size}, making the selected window smaller by giving lines (or
  columns) to the other windows.  If the window shrinks below
***************
*** 1973,1978 ****
--- 1977,1986 ----
  
  If @var{size} is negative, the window is enlarged by @minus{}@var{size}
  lines or columns.
+ 
+ Optional third arg @var{preserve-before}, if non-@code{nil}, means do
+ not change the size of the siblings above or to the left of the
+ selected window.  Only siblings to the right or below are changed.
  @end deffn
  
  @deffn Command shrink-window-horizontally columns

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: windows.texi doc fix
  2004-10-19 10:11 windows.texi doc fix david.ponce
@ 2004-10-21  1:46 ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2004-10-21  1:46 UTC (permalink / raw)
  Cc: emacs-devel

    Following is a small patch to the Elisp manual that fixes the missing
    documentation of the `preserve-before' optional argument of the
    functions `enlarge-window' and `shrink-window'.  I just added the
    description I found in doc strings.

It is good to notice that this needed to be fixed, but the style that
we use in doc strings is too terse and not correct enough for the
manual.  The former uses incomplete sentences, such as this:

    + Optional third arg @var{preserve-before}, if non-@code{nil}, means 

Could you please try rewriting this text using the style that we use
for such cases elsewhere in the manual?  Please just try your best--I
can polish it up after you install it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: windows.texi doc fix
@ 2004-10-21 10:31 David PONCE
  2004-10-22 10:46 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David PONCE @ 2004-10-21 10:31 UTC (permalink / raw)
  Cc: emacs-devel

> It is good to notice that this needed to be fixed, but the style that
> we use in doc strings is too terse and not correct enough for the
> manual.  The former uses incomplete sentences, such as this:
> 
>     + Optional third arg @var{preserve-before}, if non-@code{nil}, means 
> 
> Could you please try rewriting this text using the style that we use
> for such cases elsewhere in the manual?  Please just try your best--I
> can polish it up after you install it.

OK.  WDYT of this version, which is much simpler.  As the
documentation explicitly says that `shrink-window' is like
`enlarge-window' but negates the size argument, I didn't duplicated
the description of `preserve-before'.

David

*** windows.texi.orig	2004-07-24 17:33:15.000000000 +0200
--- windows.texi	2004-10-21 12:32:38.681402600 +0200
***************
*** 1922,1928 ****
  window size.  Emacs does not permit overlapping windows or gaps between
  windows, so resizing one window affects other windows.
  
! @deffn Command enlarge-window size &optional horizontal
  This function makes the selected window @var{size} lines taller,
  stealing lines from neighboring windows.  It takes the lines from one
  window at a time until that window is used up, then takes from another.
--- 1922,1928 ----
  window size.  Emacs does not permit overlapping windows or gaps between
  windows, so resizing one window affects other windows.
  
! @deffn Command enlarge-window size &optional horizontal preserve-before
  This function makes the selected window @var{size} lines taller,
  stealing lines from neighboring windows.  It takes the lines from one
  window at a time until that window is used up, then takes from another.
***************
*** 1945,1950 ****
--- 1945,1955 ----
  size of a fixed-size window, @code{enlarge-window} gets an error
  instead.
  
+ If @var{preserve-before} is non-@code{nil}, this function does not
+ changes the size of the siblings above or to the left of the selected
+ window.  Only the size of the siblings below or to the right of the
+ selected window are changed.
+ 
  If @var{size} is negative, this function shrinks the window by
  @minus{}@var{size} lines or columns.  If that makes the window smaller
  than the minimum size (@code{window-min-height} and
***************
*** 1965,1971 ****
  @end example
  @end deffn
  
! @deffn Command shrink-window size &optional horizontal
  This function is like @code{enlarge-window} but negates the argument
  @var{size}, making the selected window smaller by giving lines (or
  columns) to the other windows.  If the window shrinks below
--- 1970,1976 ----
  @end example
  @end deffn
  
! @deffn Command shrink-window size &optional horizontal preserve-before
  This function is like @code{enlarge-window} but negates the argument
  @var{size}, making the selected window smaller by giving lines (or
  columns) to the other windows.  If the window shrinks below

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: windows.texi doc fix
  2004-10-21 10:31 David PONCE
@ 2004-10-22 10:46 ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2004-10-22 10:46 UTC (permalink / raw)
  Cc: emacs-devel

    + If @var{preserve-before} is non-@code{nil}, this function does not
    + changes the size of the siblings above or to the left of the selected
    + window.  Only the size of the siblings below or to the right of the
    + selected window are changed.

This is good now.  There's only a spelling error: "does not changes".
So please install it, fixing that.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-22 10:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-19 10:11 windows.texi doc fix david.ponce
2004-10-21  1:46 ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-10-21 10:31 David PONCE
2004-10-22 10:46 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).