Glenn Morris
6dc3311d25
Define risky-local-variable property here rather than in files.el.
2009-08-26 03:07:25 +00:00
Martin Rudalics
8b10a2d198
(split-window-sensibly): New function.
...
(split-height-threshold, split-width-threshold): State in
doc-string that these affect split-window-sensibly. Change
customization subtype from number to integer.
(window--splittable-p): Rename to window-splittable-p since it's
referred to in doc-string of split-window-sensibly. Update
doc-string.
(window--try-to-split-window): Unconditionally call
split-window-preferred-function and move splitting functionality
to split-window-sensibly (Bug#3142).
(split-window-preferred-function): Rewrite doc-string. Don't
allow nil as customization type.
2009-05-07 09:21:23 +00:00
Martin Rudalics
0e8ade71d7
Remove experimental code inadvertently introduced when reverting the
...
2009-01-14 change of special-display-p. (Bug#1929, Bug#1930)
2009-01-16 16:51:54 +00:00
Martin Rudalics
987220737d
(special-display-p): Revert 2009-01-14 change.
2009-01-15 07:56:58 +00:00
Martin Rudalics
56f31926ae
(special-display-buffer-names)
...
(special-display-regexps): Add customization support for
function/other-args elements. Rewrite doc-strings.
(special-display-function): Rewrite doc-strings
(same-window-buffer-names, same-window-regexps): Minor
doc-string fixes.
(special-display-p): Minor rewrite.
2009-01-14 09:56:11 +00:00
Martin Rudalics
dcb50c02f5
(special-display-buffer-names)
...
(special-display-regexps, special-display-function): In
doc-strings say "same-window" instead of "same-buffer".
2009-01-09 09:55:38 +00:00
Martin Rudalics
29c4550005
(display-buffer): Fix last fix.
2009-01-05 09:52:53 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Martin Rudalics
e331bbf3be
(display-buffer): When a buffer is displayed in the
...
selected and some other window, and not-this-window is non-nil,
try to return that other window instead of popping up a new
frame. (Bug#30)
2009-01-04 19:03:09 +00:00
Martin Rudalics
9992ea0cb4
(set-window-text-height): Fix doc-string.
2008-12-21 11:03:30 +00:00
Martin Rudalics
9adf1f0652
(fit-window-to-buffer): Return non-nil when height
...
was orderly adjusted, nil otherwise.
2008-12-12 09:32:02 +00:00
Martin Rudalics
f7baca2087
(fit-window-to-buffer): Use with-selected-window and
...
condition-case. Do not delete more windows than necessary in
the shrinking (delta < 0) case. Do not raise an error when the
containing frame is too small to show all of buffer. (Bug#1488)
2008-12-11 17:17:44 +00:00
Martin Rudalics
a9d451f034
(display-buffer): Fix handling of not-this-window
...
argument. (Bug#1415)
2008-11-27 13:20:15 +00:00
Stefan Monnier
064e57de23
(window--frame-usable-p): Consider dedicated windows as usable.
2008-11-18 20:45:21 +00:00
Martin Rudalics
a0c859f043
(quit-window): Bind window to selected window when
...
trying to delete it.
2008-11-17 09:58:50 +00:00
Stefan Monnier
4afba8195e
(window--frame-usable-p): Allow use for soft-dedication.
2008-11-17 04:53:55 +00:00
Martin Rudalics
3c448ab65e
Fix EOLs broken with last commit.
2008-11-15 08:54:12 +00:00
Martin Rudalics
f4f45fc52c
(quit-window): Restore delete window with second
...
arg non-nil behavior as of before 2008-10-30 change.
2008-11-15 08:51:13 +00:00
Martin Rudalics
f417bc0a9c
(quit-window): Restore prefix argument behavior
...
removed in 2008-10-30 change. (Bug#1308)
2008-11-05 16:45:19 +00:00
Martin Rudalics
ee434cb1a6
(save-selected-window): Make it behave like
...
save-selected-window-norecord.
(save-selected-window-norecord): Remove, since functionality
fully taken over by save-selected-window.
(walk-windows, set-window-text-height, fit-window-to-buffer):
Use save-selected-window instead of save-selected-window-norecord.
2008-11-04 06:53:44 +00:00
Martin Rudalics
ad91ba4413
(save-selected-window-norecord): New macro
...
(walk-windows): Use save-selected-window-norecord and call
select-window with NORECORD set. (Bug#1237)
(set-window-text-height, fit-window-to-buffer): Use
save-selected-window-norecord and call select-window with
NORECORD set.
2008-11-02 11:02:24 +00:00
Martin Rudalics
5c17a89126
(window-body-height, window-current-scroll-bars)
...
(walk-windows, get-window-with-predicate, get-buffer-window-list)
(minibuffer-window-active-p, count-windows)
(window-safely-shrinkable-p, window--splittable-p)
(window--try-to-split-window, window--frame-usable-p)
(window--even-window-heights, window--display-buffer-1)
(window--display-buffer-2, set-window-text-height)
(fit-window-to-buffer, shrink-window-if-larger-than-buffer)
(truncated-partial-width-window-p): Rewrite doc-string.
(window-fixed-size-p): Simplify code. Rewrite doc-string.
(split-window-vertically, split-window-horizontally):
Rename args, rewrite doc-string, and simplify code.
(split-window-save-restore-data): Rename args and use
when instead of if.
2008-10-31 13:39:37 +00:00
Martin Rudalics
9045be38cd
(quit-window): Simplify code. Say in doc-string
...
that it operates on the selected window's buffer. (Bug#1259)
2008-10-30 15:41:43 +00:00
Martin Rudalics
cf20330bba
(get-buffer-window-list): Rename buffer argument to
...
buffer-or-name and make it optional.
2008-10-25 08:08:19 +00:00
Martin Rudalics
3ad8faa7ff
(enlarge-window-horizontally, shrink-window-horizontally):
...
Make argument names follow Elisp manual.
2008-10-19 13:58:11 +00:00
Martin Rudalics
e6001b5823
(pop-to-buffer): Fix misplacement of arg norecord in
...
call of select-window.
2008-10-10 15:07:28 +00:00
Martin Rudalics
d5f98c51df
(pop-up-frames): Add choice graphic-only.
...
(display-buffer): When pop-up-frames equals graphic-only do
not pop up new frame on text-only terminals. (Bug#1061)
2008-10-09 08:12:41 +00:00
Martin Rudalics
feb1e9103f
(window--display-buffer-1): Don't care about
...
visibility since raise-frame does.
2008-10-03 11:18:24 +00:00
Martin Rudalics
c1567cc72d
(pop-to-buffer): Select window before calling
...
select-frame-set-input-focus.
2008-09-13 08:29:27 +00:00
Martin Rudalics
a4f41c95a9
(pop-to-buffer): If the window for buffer-or-name is
...
not on the selected frame, raise that window's frame and give it
input focus. (Bug#745)
2008-09-11 06:39:30 +00:00
Juanma Barranquero
bd0f7af8bc
Fix EOL mishap in previous commit.
2008-09-10 23:43:54 +00:00
Martin Rudalics
2564beceac
*** empty log message ***
2008-09-10 08:53:26 +00:00
Martin Rudalics
7042033274
(window--try-to-split-window): Don't split when window
...
is not splittable in last disjunct. (Bug#888)
2008-09-05 07:12:23 +00:00
Martin Rudalics
dab49a2070
(pop-up-frame-function): Move to frame.el.
2008-09-03 09:15:44 +00:00
Chong Yidong
a6665c37eb
(recenter-top-bottom): Doc fix.
2008-09-01 17:47:51 +00:00
Chong Yidong
46f2aa14ba
(recenter-top-bottom): Determine top and bottom positions using
...
scroll-margin instead of scroll-conservatively.
2008-08-18 03:46:51 +00:00
Chong Yidong
cf37ed4f23
(truncated-partial-width-window-p): New function.
2008-07-10 04:27:32 +00:00
Glenn Morris
549c0a9664
Spelling fix.
2008-07-01 03:02:37 +00:00
Martin Rudalics
1662c19ba9
(split-height-threshold): Remove spurious extra line.
2008-06-17 16:33:29 +00:00
Martin Rudalics
106f594c71
(window--even-window-heights): Even window heights
...
only if the selected window is higher than WINDOW.
2008-06-14 08:58:56 +00:00
Martin Rudalics
71b50c9351
(window--splittable-p, window--try-to-split-window):
...
Don't use with-selected-window to avoid messing up get-lru-window.
2008-06-10 07:45:23 +00:00
Martin Rudalics
2bd0c2e02f
(split-height-threshold, split-width-threshold): Add
...
choice nil.
(split-window-preferred-function): Allow either nil or a function.
(window--splittable-p, window--try-to-split-window): Handle
changed option values.
(window--frame-usable-p): Handle nil argument.
(display-buffer): Call get-lru-window when pop-up-windows is nil
and window can't be split.
2008-06-08 13:02:38 +00:00
Andreas Schwab
73f60406a5
(display-buffer): Use lru window if current window
...
cannot be split.
2008-06-08 07:54:25 +00:00
Stefan Monnier
415da97ac4
(special-display-p, display-buffer): Fix up C->Elisp transcription error.
2008-06-08 02:07:47 +00:00
Martin Rudalics
0a3a94b3d2
(display-buffer): Remove dead call to get-lru-window.
2008-06-06 08:01:29 +00:00
Stefan Monnier
87478b52f9
* window.el (display-buffer-function, special-display-p)
...
(special-display-buffer-names, special-display-regexps)
(special-display-function, same-window-p, same-window-buffer-names)
(same-window-regexps, pop-up-frames, display-buffer-reuse-frames)
(pop-up-frame-function, pop-up-windows)
(split-window-preferred-function, split-height-threshold)
(split-width-threshold, window--splittable-p)
(window--try-to-split-window, window--frame-usable-p)
(even-window-heights, window--even-window-heights)
(window--display-buffer-1, window--display-buffer-2, display-buffer)
(pop-to-buffer): Move from window.c and buffer.c.
(split-window-preferred-horizontally): Remove.
* cus-start.el: Remove corresponding declarations.
* window.c (pop_up_windows, pop_up_frames)
(display_buffer_reuse_frames, Vpop_up_frame_function)
(Vdisplay_buffer_function, Veven_window_heights)
(Vspecial_display_buffer_names, Vspecial_display_regexps)
(Vspecial_display_function, Vsame_window_buffer_names)
(Vsame_window_regexps, split_height_threshold)
(Vsplit_window_preferred_function): Move those vars to window.el.
(display_buffer_1, Fspecial_display_p, Fsame_window_p)
(Fdisplay_buffer): Move those functions to window.el.
(syms_of_window): Remove corresponding declarations.
(display_buffer): New function.
(temp_output_buffer_show, Fother_window_for_scrolling): Use it.
* dispnew.c (Flast_nonminibuf_frame): New function.
* buffer.c (Fpop_to_buffer): Move to window.el.
2008-06-05 18:00:36 +00:00
Andreas Schwab
51a0cb3534
Require 'cl when compiling.
2008-05-07 12:52:22 +00:00
Glenn Morris
eb3fa2cfcf
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 08:06:51 +00:00
Sam Steingold
4ecc0b6787
(delete-other-windows-vertically): New function.
2008-05-05 20:12:24 +00:00
Juri Linkov
b0b0ffa3f8
(split-window-preferred-horizontally): New function.
2008-03-29 23:03:18 +00:00