]> code.delx.au - gnu-emacs-elpa/commitdiff
Don't hide the echo message if it isn't shown.
authorNikolaj Schumacher <git@nschum.de>
Fri, 20 Mar 2009 15:36:33 +0000 (16:36 +0100)
committerNikolaj Schumacher <git@nschum.de>
Fri, 20 Mar 2009 16:46:15 +0000 (17:46 +0100)
Previously this blocked all other echo messages.

company.el

index 702233806d4ec995146550064cf43ef89627ea83..6ff460a0d87f663b3b4aadbf6d9a9eaf0d690064 100644 (file)
@@ -55,6 +55,8 @@
 ;;
 ;;; Change Log:
 ;;
+;;    Don't hide the echo message if it isn't shown.
+;;
 ;; 2009-03-20 (0.1)
 ;;    Initial release.
 ;;
@@ -1155,8 +1157,9 @@ when the selection has been changed, the selected candidate is completed."
 (defun company-echo-hide ()
   (when company-echo-timer
     (cancel-timer company-echo-timer))
-  (setq company-echo-last-msg "")
-  (company-echo-show))
+  (unless (equal company-echo-last-msg "")
+    (setq company-echo-last-msg "")
+    (company-echo-show)))
 
 (defun company-echo-frontend (command)
   "A `company-mode' front-end showing the candidates in the echo area."