Luc Teirlinck
90dc192227
(save-selected-window, one-window-p)
...
(split-window-keep-point, split-window-vertically)
(split-window-horizontally): Doc fixes.
2004-07-11 00:56:17 +00:00
Richard M. Stallman
1c795a0e15
Comment change.
2004-05-29 14:33:28 +00:00
Richard M. Stallman
6b3b4dbbfc
(split-window-save-restore-data):
...
Don't update the data if OLD-INFO is nil.
2004-04-20 20:58:30 +00:00
Stefan Monnier
fc4d69e139
(window-safely-shrinkable-p): Don't change the buffer-list.
...
Don't allow shrink if there's a window on our right.
2004-02-09 00:56:25 +00:00
Kim F. Storm
22f9c48c82
(window-current-scroll-bars): New defun.
2003-09-24 22:55:42 +00:00
Richard M. Stallman
0f790c74e1
(kill-buffer-and-window): Remove `yes-or-no-p' so that
...
the function is less noisy. Now only `kill-buffer' can ask questions.
2003-09-12 00:52:08 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Juanma Barranquero
f1180544bb
Trailing whitespace deleted.
2003-02-04 12:29:42 +00:00
Richard M. Stallman
991ce47378
(save-selected-window): Save and restore selected windows of all frames.
2002-12-23 17:57:12 +00:00
Stefan Monnier
4a4accf705
(split-window-save-restore-data): Use push and with-current-buffer.
...
(handle-select-window): Don't do anything if the window has
disappeared since the event was generated.
2002-08-15 00:34:04 +00:00
Pavel Janík
4e1a58d5f8
Update copyright.
2002-04-01 13:40:37 +00:00
Pavel Janík
aa8d51340b
(handle-select-window): New function.
2002-04-01 13:38:34 +00:00
Andreas Schwab
e1ff49ba1e
(balance-windows): Fix misplaced parenthesis.
2002-02-03 16:21:03 +00:00
Andreas Schwab
471af22c5f
(save-selected-window): Move macro before first use.
2002-02-03 15:35:39 +00:00
Richard M. Stallman
9df6e63856
(window-body-height): Handle minibuffer window specially.
...
Otherwise, don't return less than 1.
2002-01-21 08:55:32 +00:00
Richard M. Stallman
e58bff5990
(window-body-height): New function.
2002-01-18 05:42:23 +00:00
Richard M. Stallman
0d6c5d1849
(balance-windows): Use new PRESERVE-BEFORE arg
...
to enlarge-window. Use save-selected-window. Don't try
to resize windows that end at the bottom "level".
Retry changing the sizes until the windows get the desired sizes.
Discount the minibuffer when computing total height available.
2001-12-25 10:34:39 +00:00
Richard M. Stallman
f9fa0e8aea
(save-selected-window): No error if saved window is dead.
2001-11-26 10:09:56 +00:00
Gerd Moellmann
d4d986f24e
(get-window-with-predicate): Renamed from some-window.
...
(some-window): Make it an alias.
2001-09-07 11:29:48 +00:00
Gerd Moellmann
284b3043c0
Add Keywords header.
2001-09-04 12:54:14 +00:00
Pavel Janík
5553563924
Some fixes to follow coding conventions in files maintained by FSF.
2001-07-15 16:15:35 +00:00
Gerd Moellmann
f92c5e7d08
(shrink-window-if-larger-than-buffer): Handle frame
...
parameter `(minibuffer . t)'.
2001-03-08 15:03:44 +00:00
Eli Zaretskii
119171dd3d
(fit-window-to-buffer, window-safely-shrinkable-p)
...
(shrink-window-if-larger-than-buffer): Doc fix.
2001-02-23 21:35:45 +00:00
Miles Bader
c595f69adf
(mode-line-window-height-fudge):
...
Function removed.
(height-affecting-face-attributes, mode-line-window-height-fudge):
Variables removed.
2000-12-15 01:11:04 +00:00
Miles Bader
a4c22453ea
(window-text-height): Function removed (now in C).
2000-12-11 07:31:08 +00:00
Miles Bader
df0677c365
(fit-window-to-buffer): Don't pass last argument to
...
pos-visible-in-window-p, now that its meaning is inverted.
2000-12-08 18:14:23 +00:00
Miles Bader
45450dd56d
(fit-window-to-buffer): Handle non-nil `truncate-lines'.
2000-12-01 08:11:55 +00:00
Stefan Monnier
fe7a0e7dfd
General comment and spacing fixes.
...
(save-selected-window): Use backquotes.
(window-safely-shrinkable-p): New function.
(shrink-window-if-larger-than-buffer): Use it.
2000-11-21 21:44:25 +00:00
Kenichi Handa
edb08287fb
(fit-window-to-buffer): Fix previous change.
2000-11-16 06:33:25 +00:00
Kenichi Handa
b1491763bb
(fit-window-to-buffer): Be sure to acquire at least
...
one text line even if the buffer is empty.
2000-11-16 06:15:55 +00:00
Miles Bader
88f0a1eb89
(fit-window-to-buffer): Handle windows without mode-lines.
...
Handle header-lines. Don't loop forever if we can't enlarge the
window anymore. Simplify a bit.
2000-11-14 12:58:47 +00:00
Kenichi Handa
87eb48b95e
(fit-window-to-buffer): Don't check
...
window-text-height. Assure that the last line is fully visible.
2000-11-14 11:46:01 +00:00
Kenichi Handa
2bd8a1db5e
(fit-window-to-buffer): Adjust point of the window buffer, not that of
...
the current buffer.
2000-10-24 10:52:22 +00:00
Miles Bader
3511cde8e7
(fit-window-to-buffer): Change defaulting of MAX-HEIGHT slightly.
2000-10-22 04:21:36 +00:00
Miles Bader
582b0985f5
(window-text-height): Don't expect minibuffers to have mode-lines.
2000-10-22 04:18:14 +00:00
Miles Bader
65e742bdea
(fit-window-to-buffer): New function.
...
(shrink-window-if-larger-than-buffer): Use it.
2000-10-21 05:38:11 +00:00
Miles Bader
38f99c2720
(set-window-text-height): Force window-min-height to 1.
2000-10-20 16:33:54 +00:00
Miles Bader
361691dc0d
(window-text-height, set-window-text-height): New functions.
...
(shrink-window-if-larger-than-buffer): Use `window-text-height'
instead of `window-height' & `mode-line-window-height-fudge'.
(mode-line-window-height-fudge): Add FACE parameter.
2000-10-20 15:16:46 +00:00
Miles Bader
ffb8fabb9e
(height-affecting-face-attributes): Use `defconst'.
2000-10-20 12:21:30 +00:00
Miles Bader
8075a11058
(mode-line-window-height-fudge): New variable.
...
(height-affecting-face-attributes): New variable.
(mode-line-window-height-fudge): New function.
(shrink-window-if-larger-than-buffer): Use it.
2000-10-20 09:21:59 +00:00
Gerd Moellmann
1ec082d4f7
(shrink-window-if-larger-than-buffer): If face
...
`mode-line' has a :box, and we're on a graphical frame, add 1
to the needed window height.
2000-09-20 19:32:17 +00:00
Gerd Moellmann
d4aff7ccfc
(some-window): New function.
...
(walk-windows): Remove reference to walk-windows-start.
(walk-windows): Guarantee termination by keeping a list
of all the windows already handled.
2000-07-03 09:17:25 +00:00
Gerd Moellmann
c16c855b51
(count-screen-lines): New function.
...
(shrink-window-if-larger-than-buffer): Use count-screen-lines
instead of window-buffer-height.
2000-04-19 19:07:56 +00:00
Gerd Moellmann
aeb721fe9c
(walk-windows): If ALL-FRAMES is a frame,
...
start on that frame. Use save-selected-window.
1999-11-01 12:15:41 +00:00
Karl Heuer
f848e2e028
(shrink-window-if-larger-than-buffer): Don't try to
...
back up from beginning of buffer.
1999-08-15 04:56:33 +00:00
Karl Heuer
2de3834bb5
(shrink-window-if-larger-than-buffer):
...
Don't try to redisplay with the cursor at the end
on its own line--that would force a scroll and spoil things.
1999-03-17 04:49:21 +00:00
Richard M. Stallman
3b134005bb
(window-buffer-height): New function, split from
...
shrink-window-if-larger-than-buffer.
(shrink-window-if-larger-than-buffer): Use window-buffer-height.
1998-11-22 17:26:33 +00:00
Richard M. Stallman
dd1455c208
(split-window-horizontally): Doc fix.
1998-08-06 05:50:47 +00:00
Karl Heuer
b70b2dd2c0
(shrink-window-if-larger-than-buffer):
...
Switch to the specified window and its buffer at the outset.
(count-windows): Doc fix.
1998-06-01 21:49:43 +00:00
Richard M. Stallman
3e9890d1eb
(split-window-vertically): Doc fix.
1998-05-24 18:29:22 +00:00