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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3B23F158094 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 3ECDAE0908; Tue, 16 Aug 2022 23:50:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 F0AF2E0908 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 B447B341368 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 16E19578 for ; Tue, 16 Aug 2022 23:50:40 +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: <1660688193.f40b7d38a472395dac81808ab3ff57a0119c5ebc.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: f40b7d38a472395dac81808ab3ff57a0119c5ebc X-VCS-Branch: master Date: Tue, 16 Aug 2022 23:50:40 +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: 9e9d5e31-2195-439e-9a16-913a1cd51b68 X-Archives-Hash: c388ec698638ffc410218c59f75c2298 commit: f40b7d38a472395dac81808ab3ff57a0119c5ebc Author: Maciej Barć gentoo org> AuthorDate: Tue Aug 16 22:16:33 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Aug 16 22:16:33 2022 +0000 URL: https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=f40b7d38 company-ebuild.el: do not require a match Signed-off-by: Maciej Barć gentoo.org> company-ebuild.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/company-ebuild.el b/company-ebuild.el index 8ef299d..65c5aef 100644 --- a/company-ebuild.el +++ b/company-ebuild.el @@ -228,10 +228,6 @@ COMMAND is matched with `cl-case'. ARG is the completion argument for annotation and candidates." (interactive (list 'interactive)) (cl-case command - (interactive - (company-begin-backend 'company-ebuild)) - (prefix - (and (eq major-mode 'ebuild-mode) (company-grab-symbol))) (annotation (company-ebuild--annotation arg)) (candidates @@ -240,7 +236,13 @@ ARG is the completion argument for annotation and candidates." (string-prefix-p arg candidate t)) (append company-ebuild--constant-keywords (company-ebuild--dynamic-keywords) - (company-ebuild--executables arg)))))) + (company-ebuild--executables arg)))) + (interactive + (company-begin-backend 'company-ebuild)) + (prefix + (and (eq major-mode 'ebuild-mode) (company-grab-symbol))) + (require-match + nil))) ;;;###autoload (defun company-ebuild-setup () @@ -266,7 +268,8 @@ or `require' Company-Ebuild: (t (add-to-list 'company-backends 'company-ebuild))) ;; Because some completions have length 1: - (setq-local company-minimum-prefix-length 1)) + (setq-local company-minimum-prefix-length 1) + (setq-local company-require-match nil)) ;;;###autoload (add-hook 'ebuild-mode-hook 'company-ebuild-setup)