emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 12/16: company-css-property-values: delete duplicates


From: Dmitry Gutov
Subject: [elpa] 12/16: company-css-property-values: delete duplicates
Date: Sat, 26 Jul 2014 04:53:23 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 03387e61380f0c2f83e9c5d170c529b32abdaee0
Author: Dmitry Gutov <address@hidden>
Date:   Mon Jul 21 04:26:04 2014 +0300

    company-css-property-values: delete duplicates
---
 company-css.el |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/company-css.el b/company-css.el
index 0caf617..ec48653 100644
--- a/company-css.el
+++ b/company-css.el
@@ -345,7 +345,11 @@
                 (push child results))
             (push value results)))
         (setq results (sort results 'string<))
-        (puthash attribute results company-css-property-cache)
+        (puthash attribute
+                 (if (fboundp 'delete-consecutive-dups)
+                     (delete-consecutive-dups results)
+                   (delete-dups results))
+                 company-css-property-cache)
         results)))
 
 ;;; bracket detection



reply via email to

[Prev in Thread] Current Thread [Next in Thread]