X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/ab3b9137facc977cf39bb407cb1d7763b2e9a449..fa30e182cb9621e109df0525f9abafc7f6bc6028:/packages/company/company-xcode.el diff --git a/packages/company/company-xcode.el b/packages/company/company-xcode.el index 91ae60b85..c7a6f80a2 100644 --- a/packages/company/company-xcode.el +++ b/packages/company/company-xcode.el @@ -1,6 +1,6 @@ ;;; company-xcode.el --- company-mode completion back-end for Xcode projects -;; Copyright (C) 2009-2011 Free Software Foundation, Inc. +;; Copyright (C) 2009-2011, 2014 Free Software Foundation, Inc. ;; Author: Nikolaj Schumacher @@ -80,7 +80,7 @@ valid in most contexts." "\t[^\t\n]*\t[^\t\n]*")) candidates) (while (re-search-forward regexp nil t) - (add-to-list 'candidates (match-string 1))) + (cl-pushnew (match-string 1) candidates :test #'equal)) (message "Retrieving dump from %s...done" project-bundle) candidates))))