[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 19/28: company-pseudo-tooltip-unhide: use local vars
From: |
Dmitry Gutov |
Subject: |
[elpa] 19/28: company-pseudo-tooltip-unhide: use local vars |
Date: |
Wed, 27 Aug 2014 01:26:30 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit 782d1ec3d29d0b96398a6f417cc3f76f411fcf84
Author: Dmitry Gutov <address@hidden>
Date: Sun Aug 24 02:52:43 2014 +0400
company-pseudo-tooltip-unhide: use local vars
---
company.el | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/company.el b/company.el
index d5e500d..777dd31 100644
--- a/company.el
+++ b/company.el
@@ -2447,13 +2447,14 @@ Returns a negative number if the tooltip should be
displayed above point."
(defun company-pseudo-tooltip-unhide ()
(when company-pseudo-tooltip-overlay
- ;; Beat outline's folding overlays, at least.
- (overlay-put company-pseudo-tooltip-overlay 'priority 1)
- ;; No (extra) prefix for the first line.
- (overlay-put company-pseudo-tooltip-overlay 'line-prefix "")
- (overlay-put company-pseudo-tooltip-overlay 'display
- (overlay-get company-pseudo-tooltip-overlay 'company-display))
- (overlay-put company-pseudo-tooltip-overlay 'window (selected-window))))
+ (let* ((ov company-pseudo-tooltip-overlay)
+ (disp (overlay-get ov 'company-display)))
+ ;; Beat outline's folding overlays, at least.
+ (overlay-put ov 'priority 1)
+ ;; No (extra) prefix for the first line.
+ (overlay-put ov 'line-prefix "")
+ (overlay-put ov 'display disp)
+ (overlay-put ov 'window (selected-window)))))
(defun company-pseudo-tooltip-guard ()
(list
- [elpa] 09/28: Merge pull request #164 from holomorph/tooltip-search, (continued)
- [elpa] 09/28: Merge pull request #164 from holomorph/tooltip-search, Dmitry Gutov, 2014/08/26
- [elpa] 10/28: Mention company-tooltip-search in NEWS, Dmitry Gutov, 2014/08/26
- [elpa] 11/28: Use window-screen-lines when available, Dmitry Gutov, 2014/08/26
- [elpa] 05/28: company--show-inline-p: never ignore case, Dmitry Gutov, 2014/08/26
- [elpa] 12/28: Tweak wording, Dmitry Gutov, 2014/08/26
- [elpa] 13/28: Use `posn-actual-col-row' to determine the current col and row, Dmitry Gutov, 2014/08/26
- [elpa] 14/28: Work around http://debbugs.gnu.org/18285, Dmitry Gutov, 2014/08/26
- [elpa] 16/28: company-buffer-lines: handle multiline display better, Dmitry Gutov, 2014/08/26
- [elpa] 17/28: company-input-noop still seems to be needed in the terminal, Dmitry Gutov, 2014/08/26
- [elpa] 18/28: Skip company-buffer-lines tests in terminal, Dmitry Gutov, 2014/08/26
- [elpa] 19/28: company-pseudo-tooltip-unhide: use local vars,
Dmitry Gutov <=
- [elpa] 20/28: company-pseudo-tooltip-unhide: fix rendering at eob, Dmitry Gutov, 2014/08/26
- [elpa] 15/28: Fix the tests, Dmitry Gutov, 2014/08/26
- [elpa] 21/28: Add a comment, Dmitry Gutov, 2014/08/26
- [elpa] 22/28: company--capf-data: use caching, Dmitry Gutov, 2014/08/26
- [elpa] 24/28: Use `company-dabbrev-ignore-case' when searching for candidates, Dmitry Gutov, 2014/08/26
- [elpa] 25/28: Document `company-dabbrev-ignore-case' better, Dmitry Gutov, 2014/08/26
- [elpa] 26/28: company-dabbrev-code-ignore-case: rephrase a bit, Dmitry Gutov, 2014/08/26
- [elpa] 27/28: Bump the version, Dmitry Gutov, 2014/08/26
- [elpa] 28/28: Merge commit 'f4ffe2b47cf6854ff3bc3ca1717efe1258c01547' from company, Dmitry Gutov, 2014/08/26
- [elpa] 23/28: Fix WRT `keep-prefix', Dmitry Gutov, 2014/08/26