From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 82145158096 for ; Tue, 16 Aug 2022 23:50:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47C3AE0917; Tue, 16 Aug 2022 23:50:43 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A9FC9E0907 for ; Tue, 16 Aug 2022 23:50:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8DD8034135A for ; Tue, 16 Aug 2022 23:50:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE9EE558 for ; Tue, 16 Aug 2022 23:50:39 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1660685354.f902309ee838fcbf863d95620dabe2d2732c2c10.xgqt@gentoo> Subject: [gentoo-commits] proj/company-ebuild:master commit in: / X-VCS-Repository: proj/company-ebuild X-VCS-Files: company-ebuild.el X-VCS-Directories: / X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: f902309ee838fcbf863d95620dabe2d2732c2c10 X-VCS-Branch: master Date: Tue, 16 Aug 2022 23:50:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 37b92386-c0b6-47bc-bdd1-94b528f9b556 X-Archives-Hash: 31b2ccd51fc505c2db96032adb442a42 commit: f902309ee838fcbf863d95620dabe2d2732c2c10 Author: Maciej Barć gentoo org> AuthorDate: Tue Aug 16 21:29:14 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Aug 16 21:29:14 2022 +0000 URL: https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=f902309e company-ebuild.el: set company-minimum-prefix-length to 1 Signed-off-by: Maciej Barć gentoo.org> company-ebuild.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/company-ebuild.el b/company-ebuild.el index 3f4cceb..0eb20f6 100644 --- a/company-ebuild.el +++ b/company-ebuild.el @@ -87,7 +87,6 @@ " license") ((executable-find candidate) " executable") - ;; TODO: Complete any string that already appears in current buffer. (t ""))) @@ -237,6 +236,7 @@ ARG is the completion argument for annotation and candidates." (company-ebuild--annotation arg)) (candidates ;; FIXME: Can not insert the "/" character. + ;; TODO: Complete any string that already appears in current buffer. (cl-remove-if-not (lambda (candidate) (string-prefix-p arg candidate t)) (append company-ebuild--constant-keywords @@ -262,7 +262,9 @@ or `require' Company-Ebuild: ((fboundp 'company-yasnippet) (add-to-list 'company-backends '(company-ebuild :with company-yasnippet))) (t - (add-to-list 'company-backends 'company-ebuild)))) + (add-to-list 'company-backends 'company-ebuild))) + ;; Because some completions have length 1: + (setq-local company-minimum-prefix-length 1)) ;;;###autoload (add-hook 'ebuild-mode-hook 'company-ebuild-setup)