branch: externals/mct commit f92d4a730abc60547aaa3e2249aafa2a1c78deeb Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Protesilaos Stavrou <i...@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)))