[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 63ab036 62/78: Clean the annotation string before strippin
From: |
Dmitry Gutov |
Subject: |
[elpa] master 63ab036 62/78: Clean the annotation string before stripping it |
Date: |
Sun, 18 Feb 2018 07:40:27 -0500 (EST) |
branch: master
commit 63ab0365ce2f48a28d4f5fd1b8af9109c3334d34
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Clean the annotation string before stripping it
Fixes #758
---
company.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/company.el b/company.el
index 68fcaaa..20e885e 100644
--- a/company.el
+++ b/company.el
@@ -2713,10 +2713,10 @@ If SHOW-VERSION is non-nil, show the version in the
echo area."
(annotation (company-call-backend 'annotation value)))
(setq value (company--clean-string (company-reformat value)))
(when annotation
+ (setq annotation (company--clean-string annotation))
(when company-tooltip-align-annotations
;; `lisp-completion-at-point' adds a space.
- (setq annotation (comment-string-strip annotation t nil)))
- (setq annotation (company--clean-string annotation)))
+ (setq annotation (comment-string-strip annotation t nil))))
(push (cons value annotation) items)
(setq width (max (+ (length value)
(if (and annotation
company-tooltip-align-annotations)
- [elpa] master 78cbc69 32/78: Test in Emacs 25, too, (continued)
- [elpa] master 78cbc69 32/78: Test in Emacs 25, too, Dmitry Gutov, 2018/02/18
- [elpa] master cf89f7c 27/78: Abort dabbrev search on input pending, Dmitry Gutov, 2018/02/18
- [elpa] master 1de463a 29/78: company--window-width: Account for display-line-numbers, Dmitry Gutov, 2018/02/18
- [elpa] master 47f3b9b 34/78: Which version?, Dmitry Gutov, 2018/02/18
- [elpa] master 098a907 35/78: Nah, Dmitry Gutov, 2018/02/18
- [elpa] master 27316ec 33/78: Try 'emacs', Dmitry Gutov, 2018/02/18
- [elpa] master 4884a5e 44/78: Fall back to earlier behavior with Clang < 4.0, Dmitry Gutov, 2018/02/18
- [elpa] master 157e8af 55/78: company-etags: Don't set tags-file-name globally, Dmitry Gutov, 2018/02/18
- [elpa] master 3b14294 56/78: Remove dup, Dmitry Gutov, 2018/02/18
- [elpa] master fd9a0fb 53/78: defcustom: prefer t instead of (meaningless) descriptive symbols, Dmitry Gutov, 2018/02/18
- [elpa] master 63ab036 62/78: Clean the annotation string before stripping it,
Dmitry Gutov <=
- [elpa] master a870b69 24/78: Merge pull request #712 from nikital/tng-defaults, Dmitry Gutov, 2018/02/18
- [elpa] master 24e2aa7 36/78: Change to container-based Travis-CI build, Dmitry Gutov, 2018/02/18
- [elpa] master 4a8289d 50/78: Merge pull request #751 from jojojames/kotlin-keywords, Dmitry Gutov, 2018/02/18
- [elpa] master c51df8f 76/78: Fix #760 in a different way, Dmitry Gutov, 2018/02/18
- [elpa] master 285419b 66/78: Add a NEWS entry, Dmitry Gutov, 2018/02/18
- [elpa] master bf94032 68/78: More NEWS entries, Dmitry Gutov, 2018/02/18
- [elpa] master 0284f41 67/78: Merge branch 'simpler-async', Dmitry Gutov, 2018/02/18
- [elpa] master aaae46b 74/78: M-x copyright-update, Dmitry Gutov, 2018/02/18
- [elpa] master 66e43a3 31/78: Add interactive tags and skip-unless, Dmitry Gutov, 2018/02/18
- [elpa] master cb2ae50 38/78: Don't restart semantics after ::, Dmitry Gutov, 2018/02/18