diff options
| author | Juanma Barranquero | 2006-01-30 14:21:54 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-01-30 14:21:54 +0000 |
| commit | 7017d2546b98df39fd82ac05980c3469a893b0fe (patch) | |
| tree | ca29c9a7b70ca7780935317553d1a96896a46c33 | |
| parent | 0868cd7045274b08107a5659421fc617643e3e67 (diff) | |
| download | emacs-7017d2546b98df39fd82ac05980c3469a893b0fe.tar.gz emacs-7017d2546b98df39fd82ac05980c3469a893b0fe.zip | |
(bw-dir, bw-eqdir, balance-windows, split-window-keep-point):
Fix typos in docstrings.
| -rw-r--r-- | lisp/window.el | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lisp/window.el b/lisp/window.el index 6cb553c3799..917edaac57f 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -297,24 +297,24 @@ then the smallest tree containing that window is returned." | |||
| 297 | 297 | ||
| 298 | ;;; Window or object edges | 298 | ;;; Window or object edges |
| 299 | 299 | ||
| 300 | (defun bw-l(obj) | 300 | (defun bw-l (obj) |
| 301 | "Left edge of OBJ." | 301 | "Left edge of OBJ." |
| 302 | (if (windowp obj) (nth 0 (window-edges obj)) (cdr (assq 'l obj)))) | 302 | (if (windowp obj) (nth 0 (window-edges obj)) (cdr (assq 'l obj)))) |
| 303 | (defun bw-t(obj) | 303 | (defun bw-t (obj) |
| 304 | "Top edge of OBJ." | 304 | "Top edge of OBJ." |
| 305 | (if (windowp obj) (nth 1 (window-edges obj)) (cdr (assq 't obj)))) | 305 | (if (windowp obj) (nth 1 (window-edges obj)) (cdr (assq 't obj)))) |
| 306 | (defun bw-r(obj) | 306 | (defun bw-r (obj) |
| 307 | "Right edge of OBJ." | 307 | "Right edge of OBJ." |
| 308 | (if (windowp obj) (nth 2 (window-edges obj)) (cdr (assq 'r obj)))) | 308 | (if (windowp obj) (nth 2 (window-edges obj)) (cdr (assq 'r obj)))) |
| 309 | (defun bw-b(obj) | 309 | (defun bw-b (obj) |
| 310 | "Bottom edge of OBJ." | 310 | "Bottom edge of OBJ." |
| 311 | (if (windowp obj) (nth 3 (window-edges obj)) (cdr (assq 'b obj)))) | 311 | (if (windowp obj) (nth 3 (window-edges obj)) (cdr (assq 'b obj)))) |
| 312 | 312 | ||
| 313 | ;;; Split directions | 313 | ;;; Split directions |
| 314 | 314 | ||
| 315 | (defun bw-dir(obj) | 315 | (defun bw-dir (obj) |
| 316 | "Return window split tree direction if OBJ. | 316 | "Return window split tree direction if OBJ. |
| 317 | If OBJ is a window return 'both. If it is a window split tree | 317 | If OBJ is a window return 'both. If it is a window split tree |
| 318 | then return its direction." | 318 | then return its direction." |
| 319 | (if (symbolp obj) | 319 | (if (symbolp obj) |
| 320 | obj | 320 | obj |
| @@ -325,10 +325,10 @@ then return its direction." | |||
| 325 | (error "Can't find dir in %s" obj)) | 325 | (error "Can't find dir in %s" obj)) |
| 326 | dir)))) | 326 | dir)))) |
| 327 | 327 | ||
| 328 | (defun bw-eqdir(obj1 obj2) | 328 | (defun bw-eqdir (obj1 obj2) |
| 329 | "Return t if window split tree directions are equal. | 329 | "Return t if window split tree directions are equal. |
| 330 | OBJ1 and OBJ2 should be either windows or window split trees in | 330 | OBJ1 and OBJ2 should be either windows or window split trees in |
| 331 | our format. The directions returned by `bw-dir' are compared and | 331 | our format. The directions returned by `bw-dir' are compared and |
| 332 | t is returned if they are `eq' or one of them is 'both." | 332 | t is returned if they are `eq' or one of them is 'both." |
| 333 | (let ((dir1 (bw-dir obj1)) | 333 | (let ((dir1 (bw-dir obj1)) |
| 334 | (dir2 (bw-dir obj2))) | 334 | (dir2 (bw-dir obj2))) |
| @@ -338,7 +338,7 @@ t is returned if they are `eq' or one of them is 'both." | |||
| 338 | 338 | ||
| 339 | ;;; Building split tree | 339 | ;;; Building split tree |
| 340 | 340 | ||
| 341 | (defun bw-refresh-edges(obj) | 341 | (defun bw-refresh-edges (obj) |
| 342 | "Refresh the edge information of OBJ and return OBJ." | 342 | "Refresh the edge information of OBJ and return OBJ." |
| 343 | (unless (windowp obj) | 343 | (unless (windowp obj) |
| 344 | (let ((childs (cdr (assq 'childs obj))) | 344 | (let ((childs (cdr (assq 'childs obj))) |
| @@ -364,12 +364,12 @@ t is returned if they are `eq' or one of them is 'both." | |||
| 364 | 364 | ||
| 365 | ;;; Balance windows | 365 | ;;; Balance windows |
| 366 | 366 | ||
| 367 | (defun balance-windows(&optional window-or-frame) | 367 | (defun balance-windows (&optional window-or-frame) |
| 368 | "Make windows the same heights or widths in window split subtrees. | 368 | "Make windows the same heights or widths in window split subtrees. |
| 369 | 369 | ||
| 370 | When called non-interactively WINDOW-OR-FRAME may be either a | 370 | When called non-interactively WINDOW-OR-FRAME may be either a |
| 371 | window or a frame. It then balances the windows on the implied | 371 | window or a frame. It then balances the windows on the implied |
| 372 | frame. If the parameter is a window only the corresponding window | 372 | frame. If the parameter is a window only the corresponding window |
| 373 | subtree is balanced." | 373 | subtree is balanced." |
| 374 | (interactive) | 374 | (interactive) |
| 375 | (let ( | 375 | (let ( |
| @@ -383,7 +383,7 @@ subtree is balanced." | |||
| 383 | (when wt | 383 | (when wt |
| 384 | (while (not (member last-sizes tried-sizes)) | 384 | (while (not (member last-sizes tried-sizes)) |
| 385 | (when last-sizes (setq tried-sizes (cons last-sizes tried-sizes))) | 385 | (when last-sizes (setq tried-sizes (cons last-sizes tried-sizes))) |
| 386 | (setq last-sizes (mapcar (lambda(w) | 386 | (setq last-sizes (mapcar (lambda (w) |
| 387 | (window-edges w)) | 387 | (window-edges w)) |
| 388 | windows)) | 388 | windows)) |
| 389 | (when (eq 'hor (bw-dir wt)) | 389 | (when (eq 'hor (bw-dir wt)) |
| @@ -392,7 +392,7 @@ subtree is balanced." | |||
| 392 | (setq h (- (bw-b wt) (bw-t wt)))) | 392 | (setq h (- (bw-b wt) (bw-t wt)))) |
| 393 | (bw-balance-sub wt w h))))) | 393 | (bw-balance-sub wt w h))))) |
| 394 | 394 | ||
| 395 | (defun bw-adjust-window(window delta horizontal) | 395 | (defun bw-adjust-window (window delta horizontal) |
| 396 | "Wrapper around `adjust-window-trailing-edge' with error checking. | 396 | "Wrapper around `adjust-window-trailing-edge' with error checking. |
| 397 | Arguments WINDOW, DELTA and HORIZONTAL are passed on to that function." | 397 | Arguments WINDOW, DELTA and HORIZONTAL are passed on to that function." |
| 398 | (condition-case err | 398 | (condition-case err |
| @@ -401,7 +401,7 @@ Arguments WINDOW, DELTA and HORIZONTAL are passed on to that function." | |||
| 401 | ;;(message "adjust: %s" (error-message-string err)) | 401 | ;;(message "adjust: %s" (error-message-string err)) |
| 402 | ))) | 402 | ))) |
| 403 | 403 | ||
| 404 | (defun bw-balance-sub(wt w h) | 404 | (defun bw-balance-sub (wt w h) |
| 405 | (setq wt (bw-refresh-edges wt)) | 405 | (setq wt (bw-refresh-edges wt)) |
| 406 | (unless w (setq w (- (bw-r wt) (bw-l wt)))) | 406 | (unless w (setq w (- (bw-r wt) (bw-l wt)))) |
| 407 | (unless h (setq h (- (bw-b wt) (bw-t wt)))) | 407 | (unless h (setq h (- (bw-b wt) (bw-t wt)))) |
| @@ -434,7 +434,7 @@ This is convenient on slow terminals, but point can move strangely. | |||
| 434 | 434 | ||
| 435 | This option applies only to `split-window-vertically' and | 435 | This option applies only to `split-window-vertically' and |
| 436 | functions that call it. `split-window' always keeps the original | 436 | functions that call it. `split-window' always keeps the original |
| 437 | point in both children," | 437 | point in both children." |
| 438 | :type 'boolean | 438 | :type 'boolean |
| 439 | :group 'windows) | 439 | :group 'windows) |
| 440 | 440 | ||