[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1c7a872 31/38: Merge pull request #983 from qhuyduong/make
From: |
Dmitry Gutov |
Subject: |
[elpa] master 1c7a872 31/38: Merge pull request #983 from qhuyduong/make-post-completion-command-dedicated-function |
Date: |
Sat, 25 Jul 2020 19:51:16 -0400 (EDT) |
branch: master
commit 1c7a87283146f429c5076e8ea0a559556a4d4272
Merge: 6333fc4 e93b3dc
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: GitHub <noreply@github.com>
Merge pull request #983 from
qhuyduong/make-post-completion-command-dedicated-function
[company-files] Make post-completion command a dedicated function
---
company-files.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/company-files.el b/company-files.el
index 91de1c6..8859266 100644
--- a/company-files.el
+++ b/company-files.el
@@ -127,6 +127,10 @@ The values should use the same format as
`completion-ignored-extensions'."
(and (equal (cdr old) (cdr new))
(string-prefix-p (car old) (car new))))
+(defun company-files--post-completion (arg)
+ (when (company-files--trailing-slash-p arg)
+ (delete-char -1)))
+
;;;###autoload
(defun company-files (command &optional arg &rest ignored)
"`company-mode' completion backend existing file names.
@@ -139,8 +143,7 @@ File paths with spaces are only supported inside strings."
(candidates (company-files--complete arg))
(location (cons (dired-noselect
(file-name-directory (directory-file-name arg))) 1))
- (post-completion (when (company-files--trailing-slash-p arg)
- (delete-char -1)))
+ (post-completion (company-files--post-completion arg))
(sorted t)
(no-cache t)))
- [elpa] master 3262c18 09/38: use symbol-value to get major-mode value, (continued)
- [elpa] master 3262c18 09/38: use symbol-value to get major-mode value, Dmitry Gutov, 2020/07/25
- [elpa] master 033358c 11/38: Merge pull request #965 from taigacute/master, Dmitry Gutov, 2020/07/25
- [elpa] master 04d3766 14/38: config the company-yasnippet-doc buffer-file-name, Dmitry Gutov, 2020/07/25
- [elpa] master e25c459 18/38: let-bind buffer-file-name instead of setting it, Dmitry Gutov, 2020/07/25
- [elpa] master d38d64b 20/38: Keyworks complete for c++-mode and c-mode, Dmitry Gutov, 2020/07/25
- [elpa] master b9b0577 22/38: Make company-auto-complete condition more reliable, Dmitry Gutov, 2020/07/25
- [elpa] master 56a846c 25/38: Add a NEWS entry, Dmitry Gutov, 2020/07/25
- [elpa] master 6cf5169 23/38: Update copyright years, Dmitry Gutov, 2020/07/25
- [elpa] master c59c85b 24/38: Merge branch 'master' into company-tng-with-post-completion, Dmitry Gutov, 2020/07/25
- [elpa] master e93b3dc 30/38: [company-files] Make post-completion command a dedicated function, Dmitry Gutov, 2020/07/25
- [elpa] master 1c7a872 31/38: Merge pull request #983 from qhuyduong/make-post-completion-command-dedicated-function,
Dmitry Gutov <=
- [elpa] master 6a39f31 38/38: Merge commit '656ad10670512e135a0a5881f127bb7a789ef8ca' from company, Dmitry Gutov, 2020/07/25
- [elpa] master 955f80e 19/38: company-doc-buffer: Make sure to reset the major mode, Dmitry Gutov, 2020/07/25
- [elpa] master db0596b 26/38: Merge branch 'master' of github.com:company-mode/company-mode, Dmitry Gutov, 2020/07/25
- [elpa] master 1f56bec 36/38: company-diag: Print out completion-at-point-functions too, Dmitry Gutov, 2020/07/25
- [elpa] master 6333fc4 29/38: Mention when, Dmitry Gutov, 2020/07/25
- [elpa] master f24b794 32/38: Make sure the error text is present before trying to use it, Dmitry Gutov, 2020/07/25
- [elpa] master 7d9d72c 33/38: Set tooltip background color for terminals with less than 88 colors, Dmitry Gutov, 2020/07/25
- [elpa] master 8ec972b 17/38: Defer company-reformat a little, Dmitry Gutov, 2020/07/25
- [elpa] master 61ddd9a 21/38: Merge pull request #968 from condy0919/master, Dmitry Gutov, 2020/07/25
- [elpa] master fdde3d1 27/38: Merge pull request #946 from company-mode/company-tng-with-post-completion, Dmitry Gutov, 2020/07/25