From 4ba4264679532f1e223c17cff9b5d191f1dd7d24 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 17 Jun 2015 23:18:02 +0300 Subject: [PATCH] company--begin-new: Reorder statements --- company.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/company.el b/company.el index ed5e14c2f..9160c0def 100644 --- a/company.el +++ b/company.el @@ -1474,11 +1474,11 @@ from the rest of the back-ends in the group, if any, will be left at the end." c (company-calculate-candidates company-prefix)) (if (not (consp c)) (progn + (when company--manual-action + (message "No completion found")) ;; t means complete/unique. ;; Run the hooks anyway, to e.g. clear the cache. - (company-cancel 'unique) - (when company--manual-action - (message "No completion found"))) + (company-cancel 'unique)) (when company--manual-action (setq company--manual-prefix prefix)) (company-update-candidates c) -- 2.39.2