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
Richard M. Stallman
c81845b60c
(quit-window): Fixed FRAME to be the frame and never window.
1998-05-07 04:05:28 +00:00
Richard M. Stallman
eed1360c12
(quit-window): Don't try to switch buffers
...
in a dedicated window or a minibuffer window.
Treat minibuffer window as dedicated in other ways too.
1998-04-30 04:23:59 +00:00
Richard M. Stallman
3d2f23d923
(quit-window): New command.
...
(shrink-window-if-larger-than-buffer):
Bind text-height in the let*.
(view-return-to-alist): Add defvar.
1998-03-09 00:37:11 +00:00
Richard M. Stallman
93289e14f2
(shrink-window-if-larger-than-buffer):
...
Use compute-motion, instead of inserting newlines.
1997-07-01 07:07:44 +00:00
Richard M. Stallman
c361280d2c
(split-window-save-restore-data): New function that
...
for view mode buffers saves information in view-return-to-alist.
(split-window-vertically, split-window-horizontally):
Call split-window-save-restore-data.
1997-06-17 05:10:06 +00:00
Richard M. Stallman
30e19aee85
Use defcustom.
1997-05-05 15:06:25 +00:00
Richard M. Stallman
b691df0c08
(kill-buffer-and-window): New command.
...
Bind it to C-x 4 0.
1996-10-26 16:06:37 +00:00