diff options
| author | Chong Yidong | 2008-10-29 21:42:37 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-29 21:42:37 +0000 |
| commit | 48238d1d4509e9cbd26beccc34abc76f37610771 (patch) | |
| tree | 24b42c2a7e1d2cb2d6b49ca874a629fee8272aaa | |
| parent | bb07cb70dd8ae8c581245058b375256323897026 (diff) | |
| download | emacs-48238d1d4509e9cbd26beccc34abc76f37610771.tar.gz emacs-48238d1d4509e9cbd26beccc34abc76f37610771.zip | |
(Electric-pop-up-window): Don't shrink the window if it's already big
enough.
| -rw-r--r-- | lisp/electric.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/electric.el b/lisp/electric.el index 60a551291a7..289b6ecd147 100644 --- a/lisp/electric.el +++ b/lisp/electric.el | |||
| @@ -153,8 +153,10 @@ | |||
| 153 | (setq win (selected-window))) | 153 | (setq win (selected-window))) |
| 154 | (t | 154 | (t |
| 155 | (switch-to-buffer buf))) | 155 | (switch-to-buffer buf))) |
| 156 | (fit-window-to-buffer win max-height) | 156 | ;; Don't shrink the window, but expand it if necessary. |
| 157 | (goto-char (point-min)) | 157 | (goto-char (point-min)) |
| 158 | (unless (= (point-max) (window-end win)) | ||
| 159 | (fit-window-to-buffer win max-height)) | ||
| 158 | win))) | 160 | win))) |
| 159 | 161 | ||
| 160 | (provide 'electric) | 162 | (provide 'electric) |