emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 9dbabd1 08/12: company-diag: Output major mode as well


From: Dmitry Gutov
Subject: [elpa] master 9dbabd1 08/12: company-diag: Output major mode as well
Date: Sat, 15 Jul 2017 13:36:45 -0400 (EDT)

branch: master
commit 9dbabd146c5884c1a1940eef010bcf834510a8e2
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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:"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]