From c074e7ea3bbe8c80273707cbb7c2e947a7b32474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Mon, 29 Jun 2020 10:23:39 +0100 Subject: [PATCH] mu4e/mu4e-utils: only set so-long-mode once Ideally we should separate the log buffer creation code so this van be done a bit more cleanly. For now however only set so-long-mode once otherwise you end up spamming the messages with constant: Changed to so-long-mode (from fundamental-mode) on account of line length. C-c C-c to revert. [36 times] As the messages keep rolling in. --- mu4e/mu4e-utils.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-utils.el b/mu4e/mu4e-utils.el index 148368f0..f909217b 100644 --- a/mu4e/mu4e-utils.el +++ b/mu4e/mu4e-utils.el @@ -1009,7 +1009,8 @@ either 'to-server, 'from-server or 'misc. This function is meant for debugging." (view-mode) (when (fboundp 'so-long-mode) - (eval '(so-long-mode))) + (unless (eq major-mode 'so-long-mode) + (eval '(so-long-mode)))) (setq buffer-undo-list t) (let* ((inhibit-read-only t)