summaryrefslogtreecommitdiff
path: root/helm-eval.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2013-08-23 14:56:44 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2013-08-23 14:56:44 +0200
commit86a50f99c5a4efba63d8413c534962a0b9cd4801 (patch)
tree529fa1b4212faf07be1a6b5b15ae7c8b0ff0d63a /helm-eval.el
parent2869b1802c4e3350536dae6becc0408e584d7f72 (diff)
* helm-eval.el: Simplify according to eldoc-eval.
Diffstat (limited to 'helm-eval.el')
-rw-r--r--helm-eval.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/helm-eval.el b/helm-eval.el
index 292ede15..bcd21c8f 100644
--- a/helm-eval.el
+++ b/helm-eval.el
@@ -92,12 +92,11 @@ Should take one arg: the string to display."
(defun helm-eldoc-store-minibuffer ()
"Store minibuffer buffer name in `helm-eldoc-active-minibuffers-list'."
(with-selected-window (minibuffer-window)
- (push (buffer-name) helm-eldoc-active-minibuffers-list)))
+ (push (current-buffer) helm-eldoc-active-minibuffers-list)))
(defun helm-eldoc-show-in-eval ()
"Return eldoc in mode-line for current minibuffer input."
- (let ((buf (with-selected-window (minibuffer-window)
- (buffer-name))))
+ (let ((buf (window-buffer (active-minibuffer-window))))
(condition-case err
(when (member buf helm-eldoc-active-minibuffers-list)
(with-current-buffer buf