[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master d5ae6a3 30/54: ivy.el (ivy--resize-minibuffer-to-fit): Mak
From: |
Oleh Krehel |
Subject: |
[elpa] master d5ae6a3 30/54: ivy.el (ivy--resize-minibuffer-to-fit): Make compatible with 24.3 |
Date: |
Tue, 29 Sep 2015 14:09:57 +0000 |
branch: master
commit d5ae6a3065a0df488a7cc4d5c6420ac0a1e92dcd
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ivy.el (ivy--resize-minibuffer-to-fit): Make compatible with 24.3
Re #220
---
ivy.el | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ivy.el b/ivy.el
index 2b36d2a..8e5405b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1398,10 +1398,12 @@ Should be run via minibuffer `post-command-hook'."
"Resize the minibuffer window so it has enough space to display
all of the text contained in the minibuffer."
(with-selected-window (minibuffer-window)
- (let ((text-height (cdr (window-text-pixel-size)))
- (body-height (window-body-height nil t)))
- (when (> text-height body-height)
- (window-resize nil (- text-height body-height) nil t t)))))
+ (if (fboundp 'window-text-pixel-size)
+ (let ((text-height (cdr (window-text-pixel-size)))
+ (body-height (window-body-height nil t)))
+ (when (> text-height body-height)
+ (window-resize nil (- text-height body-height) nil t t)))
+ (fit-window-to-buffer))))
(declare-function colir-blend-face-background "ext:colir")
- [elpa] master 6bf2913 25/54: Declare some SLIME functions, (continued)
- [elpa] master 6bf2913 25/54: Declare some SLIME functions, Oleh Krehel, 2015/10/07
- [elpa] master 5db65db 34/54: swiper.el (swiper--ivy): Fix compiler warning, Oleh Krehel, 2015/10/07
- [elpa] master 05d5e63 02/54: (counsel-locate): Allow customizing locate options, Oleh Krehel, 2015/10/07
- [elpa] master 33fa81e 14/54: counsel.el (counsel-jedi): New command, Oleh Krehel, 2015/10/07
- [elpa] master 435f2b6 38/54: Add work-around for minibuffer not re-sizing for many frames, Oleh Krehel, 2015/10/07
- [elpa] master 438e51d 24/54: counsel.el (counsel-git-grep-function): Fix up, Oleh Krehel, 2015/10/07
- [elpa] master 478e4e4 32/54: Make line numbers in swiper into display properties, Oleh Krehel, 2015/10/07
- [elpa] master 8fccfd3 03/54: (counsel-locate): Support OS X, Oleh Krehel, 2015/10/07
- [elpa] master 7684455 15/54: counsel.el (counsel--py-action): Work with "C-M-n", Oleh Krehel, 2015/10/07
- [elpa] master 9a509df 47/54: ivy.el (ivy--resize-minibuffer-to-fit): Make compatible with 24.3, Oleh Krehel, 2015/10/07
- [elpa] master d5ae6a3 30/54: ivy.el (ivy--resize-minibuffer-to-fit): Make compatible with 24.3,
Oleh Krehel <=
- [elpa] master d8d7ed4 42/54: Fix minibuffer collapses to one line, Oleh Krehel, 2015/10/07
- [elpa] master db8fb1b 39/54: Make "<left>" and "<right>" behave as in fundamental-mode, Oleh Krehel, 2015/10/07
- [elpa] master 8b73497 54/54: Merge commit 'ba49407c5b4c719dd5dcc298c260513abf0c70df' from swiper, Oleh Krehel, 2015/10/07
- [elpa] master 9413acb 52/54: counsel.el (counsel--find-symbol): Allow to jump back with pop-tag-mark, Oleh Krehel, 2015/10/07
- [elpa] master aa3e1dd 51/54: swiper.el (swiper-font-lock-ensure): Add mu4e, Oleh Krehel, 2015/10/07
- [elpa] master 680f6e2 44/54: swiper.el (swiper--ivy): Use minibuffer-allow-text-properties, Oleh Krehel, 2015/10/07
- [elpa] master 5fef653 08/54: ivy.el (ivy-completing-read): Fix up last commit, Oleh Krehel, 2015/10/07
- [elpa] master 1f93f40 16/54: counsel.el (counsel-cl): New command, Oleh Krehel, 2015/10/07
- [elpa] master 67cd682 06/54: Fix #126 again., Oleh Krehel, 2015/10/07
- [elpa] master 1f64cb8 11/54: ivy: enlarge the minibuffer window if the candiate list doesn't fit, Oleh Krehel, 2015/10/07