branch: master
commit 9dbabd146c5884c1a1940eef010bcf834510a8e2
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
company-diag: Output major mode as well
---
company.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/company.el b/company.el
index 9a3a725..f361bb7 100644
--- a/company.el
+++ b/company.el
@@ -2340,6 +2340,7 @@ If SHOW-VERSION is non-nil, show the version in the echo
area."
"Pop a buffer with information about completions at point."
(interactive)
(let* ((bb company-backends)
+ (mode (symbol-name major-mode))
backend
(prefix (cl-loop for b in bb
thereis (let ((company-backend b))
@@ -2365,6 +2366,8 @@ If SHOW-VERSION is non-nil, show the version in the echo
area."
(insert "\n")
(insert "Used backend: " (pp-to-string backend))
(insert "\n")
+ (insert "Major mode: " mode)
+ (insert "\n")
(insert "Prefix: " (pp-to-string prefix))
(insert "\n")
(insert (message "Completions:"))