diff options
| author | Juri Linkov | 2008-03-29 23:04:17 +0000 |
|---|---|---|
| committer | Juri Linkov | 2008-03-29 23:04:17 +0000 |
| commit | f1917c6f19b9386dfcd897d6aa7e001c101b05aa (patch) | |
| tree | 8544c2bac62076867b77d1c78f1f56c49220aeef | |
| parent | b0b0ffa3f8460f9b63c0de606e73e4fd4ab816fc (diff) | |
| download | emacs-f1917c6f19b9386dfcd897d6aa7e001c101b05aa.tar.gz emacs-f1917c6f19b9386dfcd897d6aa7e001c101b05aa.zip | |
(split-window-preferred-function):
Set choice for "vertically" to nil instead of split-window.
Set choice for "horizontally" to split-window-preferred-horizontally
instead of lambda.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/cus-start.el | 5 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1386e1e3d80..9f191d390ad 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2008-03-29 Juri Linkov <juri@jurta.org> | 1 | 2008-03-29 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * window.el (split-window-preferred-horizontally): New function. | ||
| 4 | |||
| 5 | * cus-start.el (split-window-preferred-function): | ||
| 6 | Set choice for "vertically" to nil instead of split-window. | ||
| 7 | Set choice for "horizontally" to split-window-preferred-horizontally | ||
| 8 | instead of lambda. | ||
| 9 | |||
| 10 | 2008-03-29 Juri Linkov <juri@jurta.org> | ||
| 11 | |||
| 3 | * simple.el (minibuffer-default-add-function): New variable with | 12 | * simple.el (minibuffer-default-add-function): New variable with |
| 4 | the default to minibuffer-default-add-completions. | 13 | the default to minibuffer-default-add-completions. |
| 5 | (minibuffer-default-add-done): New variable. Make it buffer-local. | 14 | (minibuffer-default-add-done): New variable. Make it buffer-local. |
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 91dc9087047..f6d4a03563c 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -346,13 +346,12 @@ since it could result in memory overflow and make Emacs crash." | |||
| 346 | (split-height-threshold windows integer) | 346 | (split-height-threshold windows integer) |
| 347 | (split-window-preferred-function | 347 | (split-window-preferred-function |
| 348 | windows | 348 | windows |
| 349 | (choice (const :tag "vertically" split-window) | 349 | (choice (const :tag "vertically" nil) |
| 350 | ;; FIXME: Add `sensibly' which chooses between | 350 | ;; FIXME: Add `sensibly' which chooses between |
| 351 | ;; vertical or horizontal splits depending on the size | 351 | ;; vertical or horizontal splits depending on the size |
| 352 | ;; and shape of the window. | 352 | ;; and shape of the window. |
| 353 | (const :tag "horizontally" | 353 | (const :tag "horizontally" |
| 354 | (lambda (window) | 354 | split-window-preferred-horizontally)) |
| 355 | (split-window window nil 'horiz)))) | ||
| 356 | "23.1") | 355 | "23.1") |
| 357 | (window-min-height windows integer) | 356 | (window-min-height windows integer) |
| 358 | (window-min-width windows integer) | 357 | (window-min-width windows integer) |