From f8ed1894e730aa9fd10e1a24e3349d2ff4a68704 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 30 Dec 2019 17:07:39 -0500 Subject: [PATCH] Strip text properties from recentf entries Causing tremendous bloat in recentf lists included with TRAMP paths. --- core/core-editor.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index 847c35578..a5989a581 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -196,9 +196,11 @@ possible." (not (file-remote-p file))) (file-truename file) file)) - (setq recentf-filename-handlers '(doom--recent-file-truename abbreviate-file-name)) - - (setq recentf-save-file (concat doom-cache-dir "recentf") + (setq recentf-filename-handlers + '(substring-no-properties + doom--recent-file-truename + abbreviate-file-name) + recentf-save-file (concat doom-cache-dir "recentf") recentf-auto-cleanup 'never recentf-max-menu-items 0 recentf-max-saved-items 200)