[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f9c9e85 24/29: Bind message-truncate-lines around call to
From: |
Dmitry Gutov |
Subject: |
[elpa] master f9c9e85 24/29: Bind message-truncate-lines around call to message in company-echo-show |
Date: |
Tue, 28 Mar 2017 20:50:37 -0400 (EDT) |
branch: master
commit f9c9e85c3d50c4816c2573cf6334a605c5a87106
Author: Clément Pit--Claudel <address@hidden>
Commit: Clément Pit--Claudel <address@hidden>
Bind message-truncate-lines around call to message in company-echo-show
Closes #652.
---
company.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/company.el b/company.el
index 428a27b..7867823 100644
--- a/company.el
+++ b/company.el
@@ -3015,10 +3015,16 @@ Delay is determined by `company-tooltip-idle-delay'."
(defvar company-echo-delay .01)
+(defcustom company-echo-truncate-lines t
+ "Whether frontend messages written to the echo area should be truncated."
+ :type 'boolean
+ :package-version '(company . "0.9.3"))
+
(defun company-echo-show (&optional getter)
(when getter
(setq company-echo-last-msg (funcall getter)))
- (let ((message-log-max nil))
+ (let ((message-log-max nil)
+ (message-truncate-lines company-echo-truncate-lines))
(if company-echo-last-msg
(message "%s" company-echo-last-msg)
(message ""))))
- [elpa] master ec12e27 27/29: Merge branch 'master' of github.com:company-mode/company-mode, (continued)
- [elpa] master ec12e27 27/29: Merge branch 'master' of github.com:company-mode/company-mode, Dmitry Gutov, 2017/03/28
- [elpa] master f149940 28/29: Release 0.9.3, Dmitry Gutov, 2017/03/28
- [elpa] master ce42fcf 23/29: Update copyright years, Dmitry Gutov, 2017/03/28
- [elpa] master 7bd93b8 15/29: Merge pull request #629 from juergenhoetzel/tramp-aware-clang, Dmitry Gutov, 2017/03/28
- [elpa] master 51f3885 10/29: Merge pull request #618 from kkatsuyuki/preview-common, Dmitry Gutov, 2017/03/28
- [elpa] master b74f329 22/29: Track the changes in window width, Dmitry Gutov, 2017/03/28
- [elpa] master 0affd93 21/29: Fix the new test to work in Emacs 24, Dmitry Gutov, 2017/03/28
- [elpa] master f0ff54e 13/29: company-diag: Also show completions if prefix is a cons, Dmitry Gutov, 2017/03/28
- [elpa] master e19e53e 19/29: Remote the overriding-terminal-local-map check, Dmitry Gutov, 2017/03/28
- [elpa] master 90123e7 26/29: Don't use the trailing slash in .elpaignore, Dmitry Gutov, 2017/03/28
- [elpa] master f9c9e85 24/29: Bind message-truncate-lines around call to message in company-echo-show,
Dmitry Gutov <=
- [elpa] master edc5d03 29/29: Merge commit 'f1499404163d8148e7a6303a8598f9c0f696d1cb' from company, Dmitry Gutov, 2017/03/28
- [elpa] master 5e49ddf 08/29: Take the exact candidate as an nonoptional arg, Dmitry Gutov, 2017/03/28
- [elpa] master 906deab 14/29: Merge pull request #625 from juergenhoetzel/company-diag-consp, Dmitry Gutov, 2017/03/28
- [elpa] master f932619 25/29: Merge pull request #656 from cpitclaudel/651-truncate-echo, Dmitry Gutov, 2017/03/28