[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master ebf1301 04/31: Merge branch 'master' into forced-completio
From: |
Dmitry Gutov |
Subject: |
[elpa] master ebf1301 04/31: Merge branch 'master' into forced-completion-for-unique-match |
Date: |
Sun, 14 Apr 2019 22:06:15 -0400 (EDT) |
branch: master
commit ebf1301b8d86de3144e4732b6d3b854fec37f7b2
Merge: 5d3e689 ac82e87
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Merge branch 'master' into forced-completion-for-unique-match
---
NEWS.md | 4 +++-
company-capf.el | 4 +---
company.el | 10 ++++++++--
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/NEWS.md b/NEWS.md
index d2c0ac6..72f86d7 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,7 +1,9 @@
# History of user-visible changes
-## Next
+## 2018-12-13 (0.9.9)
+* Fix for the changes in the previous release.
+* New hook `company-after-completion-hook`.
* `company-clang` removes identity preprocessor #defines from completions
([#841](https://github.com/company-mode/company-mode/issues/841)).
diff --git a/company-capf.el b/company-capf.el
index 311dd24..64b3de9 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -77,9 +77,7 @@ that accompanied the completion table that's currently is
use.")
(defun company-capf--save-current-data (data)
(setq company-capf--current-completion-data data)
- (add-hook 'company-completion-cancelled-hook
- #'company-capf--clear-current-data nil t)
- (add-hook 'company-completion-finished-hook
+ (add-hook 'company-after-completion-hook
#'company-capf--clear-current-data nil t))
(defun company-capf--clear-current-data (_ignored)
diff --git a/company.el b/company.el
index 973be1b..83b3bb0 100644
--- a/company.el
+++ b/company.el
@@ -5,7 +5,7 @@
;; Author: Nikolaj Schumacher
;; Maintainer: Dmitry Gutov <address@hidden>
;; URL: http://company-mode.github.io/
-;; Version: 0.9.8
+;; Version: 0.9.9
;; Keywords: abbrev, convenience, matching
;; Package-Requires: ((emacs "24.3"))
@@ -511,6 +511,11 @@ If you indend to use it to post-process candidates from a
specific
backend, consider using the `post-completion' command instead."
:type 'hook)
+(defcustom company-after-completion-hook nil
+ "Hook run at the end of completion, successful or not.
+The hook is called with one argument which is either a string or a symbol."
+ :type 'hook)
+
(defcustom company-minimum-prefix-length 3
"The minimum prefix length for idle completion."
:type '(integer :tag "prefix length"))
@@ -1638,7 +1643,8 @@ prefix match (same case) will be prioritized."
(let ((company-backend backend))
(run-hook-with-args 'company-completion-finished-hook result)
(company-call-backend 'post-completion result))
- (run-hook-with-args 'company-completion-cancelled-hook result))))
+ (run-hook-with-args 'company-completion-cancelled-hook result))
+ (run-hook-with-args 'company-after-completion-hook result)))
;; Make return value explicit.
nil)
- [elpa] master updated (a2911f6 -> 5deda28), Dmitry Gutov, 2019/04/14
- [elpa] master 4f2d27e 02/31: Avoid using company-preview-frontend when it'll be invisible, Dmitry Gutov, 2019/04/14
- [elpa] master 201577c 01/31: Begin completion on a unique match if the user really wants that, Dmitry Gutov, 2019/04/14
- [elpa] master efb76d3 06/31: Add a couple of tests for 'unique' behavior, Dmitry Gutov, 2019/04/14
- [elpa] master e5408b5 07/31: Add a clarifying message, Dmitry Gutov, 2019/04/14
- [elpa] master 8576100 08/31: Add a NEWS entry, Dmitry Gutov, 2019/04/14
- [elpa] master 5d3e689 03/31: Update the remaining callers of company-calculate-candidates, Dmitry Gutov, 2019/04/14
- [elpa] master f53327b 12/31: Merge pull request #858 from nikital/tng-fix-lookup-key, Dmitry Gutov, 2019/04/14
- [elpa] master 3873c4a 05/31: Remove outdated comment, Dmitry Gutov, 2019/04/14
- [elpa] master 04b8171 09/31: Fix a typo, Dmitry Gutov, 2019/04/14
- [elpa] master ebf1301 04/31: Merge branch 'master' into forced-completion-for-unique-match,
Dmitry Gutov <=
- [elpa] master 3d4e87c 11/31: company: company--company-command-p: Fix lookup-key, Dmitry Gutov, 2019/04/14
- [elpa] master b696b39 10/31: Don't run company-completed-started-hook unnecessarily, Dmitry Gutov, 2019/04/14
- [elpa] master a7c689a 14/31: Merge pull request #859 from yqrashawn/customizable-numbers, Dmitry Gutov, 2019/04/14
- [elpa] master 66ed6df 13/31: make numbers after candidates customizable, Dmitry Gutov, 2019/04/14
- [elpa] master 2b671ec 15/31: Move inhibit-redisplay higher, Dmitry Gutov, 2019/04/14
- [elpa] master 5bd5745 24/31: Merge pull request #883 from nikital/tng-document-no-post-completion, Dmitry Gutov, 2019/04/14
- [elpa] master 03fa690 27/31: Merge pull request #886 from cburn11/update-company-clang--completetion-pattern, Dmitry Gutov, 2019/04/14
- [elpa] master 23136d3 28/31: Update copyright years, Dmitry Gutov, 2019/04/14
- [elpa] master 87509b1 19/31: company-complete: Don't change last-command if completion exited, Dmitry Gutov, 2019/04/14
- [elpa] master edbb3c5 16/31: Merge branch 'master' of github.com:company-mode/company-mode, Dmitry Gutov, 2019/04/14