From: Dmitry Gutov Date: Wed, 17 Jun 2015 20:18:02 +0000 (+0300) Subject: company--begin-new: Reorder statements X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/4ba4264679532f1e223c17cff9b5d191f1dd7d24?ds=sidebyside company--begin-new: Reorder statements --- 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)