From 339d6ac56291c6e4039201f05156d957a0c7eea0 Mon Sep 17 00:00:00 2001 From: djcb Date: Fri, 21 Mar 2014 07:30:37 +0200 Subject: [PATCH] * mu4e: workaround; limit subject to 600 chars (thanks to Toni Reina); fixes #394. --- mu4e/mu4e-headers.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index b87d4f02..49c44645 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -451,7 +451,10 @@ if provided, or at the end of the buffer otherwise." (concat ;; prefix subject with a thread indicator (mu4e~headers-thread-prefix (mu4e-message-field msg :thread)) ;; "["(plist-get (mu4e-message-field msg :thread) :path) "] " - val)) + + ;; work-around: emacs' display gets really slow when lines are too long; + ;; so limit subject length to 600 + (truncate-string-to-width val 600))) ((:maildir :path :message-id) val) ((:to :from :cc :bcc) (mu4e~headers-contact-str val)) ;; if we (ie. `user-mail-address' is the 'From', show