[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 05a934b 02/23: Simplify
From: |
Dmitry Gutov |
Subject: |
[elpa] master 05a934b 02/23: Simplify |
Date: |
Fri, 11 Nov 2016 22:21:41 +0000 (UTC) |
branch: master
commit 05a934b48512da83aa04d876dbfdcc7fd36791c7
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Simplify
---
company.el | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/company.el b/company.el
index cb123e0..9ce11a6 100644
--- a/company.el
+++ b/company.el
@@ -2865,17 +2865,11 @@ Returns a negative number if the tooltip should be
displayed above point."
(defun company-pseudo-tooltip-unless-just-one-frontend-with-delay (command)
"`compandy-pseudo-tooltip-frontend', but shown after a delay.
Delay is determined by `company-tooltip-idle-delay'."
+ (when (and (memq command '(pre-command hide))
+ company-tooltip-timer)
+ (cancel-timer company-tooltip-timer)
+ (setq company-tooltip-timer nil))
(cl-case command
- (pre-command
- (company-pseudo-tooltip-unless-just-one-frontend command)
- (when company-tooltip-timer
- (cancel-timer company-tooltip-timer)
- (setq company-tooltip-timer nil)))
- (hide
- (when company-tooltip-timer
- (cancel-timer company-tooltip-timer)
- (setq company-tooltip-timer nil))
- (company-pseudo-tooltip-unless-just-one-frontend command))
(post-command
(if (or company-tooltip-timer
(overlayp company-pseudo-tooltip-overlay))
- [elpa] master updated (ec15f45 -> 85bd83e), Dmitry Gutov, 2016/11/11
- [elpa] master 99d2e84 01/23: Cancel the tooltip-with-delay timer on hide, Dmitry Gutov, 2016/11/11
- [elpa] master 05a934b 02/23: Simplify,
Dmitry Gutov <=
- [elpa] master 5fe2c23 04/23: Consider any frontend deriving from company-preview-frontend, Dmitry Gutov, 2016/11/11
- [elpa] master d3032e2 06/23: company-next-page: Wrap only when at the last item, Dmitry Gutov, 2016/11/11
- [elpa] master 63d4332 07/23: Reword, Dmitry Gutov, 2016/11/11
- [elpa] master e53f150 05/23: Mention the previous change, too, Dmitry Gutov, 2016/11/11
- [elpa] master 8e321eb 03/23: Auto-adjust company-idle-delay when it's zero, Dmitry Gutov, 2016/11/11
- [elpa] master 3d369e1 11/23: Don't convert user-error signals to error (#560), Dmitry Gutov, 2016/11/11
- [elpa] master 86c1f60 10/23: company-dabbrev-code: Look inside comments and strings when appropriate, Dmitry Gutov, 2016/11/11
- [elpa] master ac2606a 18/23: Add JSX modes to javascript aliases, Dmitry Gutov, 2016/11/11
- [elpa] master fc39277 15/23: Add keywords for rust-mode to company-keywords., Dmitry Gutov, 2016/11/11
- [elpa] master f78f9c1 21/23: Initialize grouped backends on the fly as well, Dmitry Gutov, 2016/11/11