[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 9407824 21/34: Company doesn't like nils, remove those
From: |
Vitalie Spinu |
Subject: |
[elpa] master 9407824 21/34: Company doesn't like nils, remove those |
Date: |
Tue, 7 May 2019 16:05:28 -0400 (EDT) |
branch: master
commit 9407824d2b29d427ed5732aa01cb0a8530a8259f
Author: Vitalie Spinu <address@hidden>
Commit: Vitalie Spinu <address@hidden>
Company doesn't like nils, remove those
---
company-math.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/company-math.el b/company-math.el
index be437bb..8ba059a 100644
--- a/company-math.el
+++ b/company-math.el
@@ -157,10 +157,11 @@ good support for mathematical symbols.
(annotation (concat " " (get-text-property 0 :symbol arg)))
;; Space added to ensure that completions are never typed in full.
;; See https://github.com/company-mode/company-mode/issues/476
- (candidates (mapcar (lambda (candidate)
- (when (get-text-property 0 :symbol candidate)
- (concat candidate " ")))
- (all-completions arg company-math--symbols)))
+ (candidates (delq nil
+ (mapcar (lambda (candidate)
+ (when (get-text-property 0 :symbol candidate)
+ (concat candidate " ")))
+ (all-completions arg company-math--symbols))))
(post-completion (company-math--substitute-unicode
(get-text-property 0 :symbol arg)))))
- [elpa] master 389cebc 06/34: Looks back instead of re-search-backward, (continued)
- [elpa] master 389cebc 06/34: Looks back instead of re-search-backward, Vitalie Spinu, 2019/05/07
- [elpa] master 9c5fe4c 05/34: Readme, Vitalie Spinu, 2019/05/07
- [elpa] master c970a21 03/34: Adjust to `math-symbol-lists` name change, Vitalie Spinu, 2019/05/07
- [elpa] master 9a960df 02/34: Readme, Vitalie Spinu, 2019/05/07
- [elpa] master 7999062 01/34: Add initial stuff, Vitalie Spinu, 2019/05/07
- [elpa] master f5cedcf 12/34: Use generic `tex-mode-hook` in readme, Vitalie Spinu, 2019/05/07
- [elpa] master 8190924 07/34: [#1] Fix typo in readme, Vitalie Spinu, 2019/05/07
- [elpa] master e82c91d 10/34: Bump version, Vitalie Spinu, 2019/05/07
- [elpa] master 8e64cae 17/34: Untabify and add .dir-locals, Vitalie Spinu, 2019/05/07
- [elpa] master 55f0a03 08/34: require cl-lib, Vitalie Spinu, 2019/05/07
- [elpa] master 9407824 21/34: Company doesn't like nils, remove those,
Vitalie Spinu <=
- [elpa] master 96e55e6 20/34: [Fix #8] Don't propose Unicode completions if no Ucode, Vitalie Spinu, 2019/05/07
- [elpa] master 3c906cd 15/34: Always offer completions (workaround for company issue #476), Vitalie Spinu, 2019/05/07
- [elpa] master d0db15e 13/34: [Fix #6] Add `tex-math` to `company-math-allow-latex-symbols-in-faces`, Vitalie Spinu, 2019/05/07
- [elpa] master 26bf67b 34/34: [company-math] Merge from upstream, Vitalie Spinu, 2019/05/07
- [elpa] master a8a98e3 24/34: [Fix #11] Don't require at least one character in prefix regexp, Vitalie Spinu, 2019/05/07
- [elpa] master ce46d91 16/34: Merge pull request #7 from cpitclaudel/always-offer-completions, Vitalie Spinu, 2019/05/07
- [elpa] master 2cb03c4 23/34: Version 1.2, Vitalie Spinu, 2019/05/07
- [elpa] master 0263e9c 27/34: [Fix #12] Make default sub/super-script prefix __ and ^^, Vitalie Spinu, 2019/05/07
- [elpa] master 3481f03 32/34: Merge pull request #15 from Kaligule/patch-1, Vitalie Spinu, 2019/05/07
- [elpa] master e89ddb2 31/34: Enable latex backend in org-mode per default, Vitalie Spinu, 2019/05/07