[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct f92d4a730a 1/2: Do not use toggle-truncate-lines
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct f92d4a730a 1/2: Do not use toggle-truncate-lines |
Date: |
Tue, 28 Dec 2021 16:58:25 -0500 (EST) |
branch: externals/mct
commit f92d4a730abc60547aaa3e2249aafa2a1c78deeb
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Do not use toggle-truncate-lines
Simply turn on truncate-lines directly. This avoids flooding the message
buffer
with "Truncate long lines enabled" messages.
---
mct.el | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/mct.el b/mct.el
index 139088f3a1..03c3ab4150 100644
--- a/mct.el
+++ b/mct.el
@@ -886,11 +886,6 @@ Apply APP while inhibiting modification hooks."
(mct--add-stripes)
(mct--remove-stripes)))
-(defun mct--setup-silent-line-truncation ()
- "Toggle line truncation without printing messages."
- (let ((inhibit-message t))
- (toggle-truncate-lines t)))
-
;;;;; Shadowed path
;; Adapted from icomplete.el
@@ -1032,11 +1027,11 @@ region.")
(defun mct--setup-completion-list ()
"Set up the completion-list for Mct."
(when (mct--active-p)
- (setq-local completion-show-help nil)
+ (setq-local completion-show-help nil
+ truncate-lines t)
(mct--setup-clean-completions)
(mct--setup-appearance)
(mct--setup-completion-list-keymap)
- (mct--setup-silent-line-truncation)
(mct--setup-highlighting)
(mct--setup-line-numbers)
(cursor-sensor-mode)))