From ac0b1b755a78417b96b3d92f5d160a8a6ebc9271 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sun, 14 Feb 2016 20:00:43 +0100 Subject: [PATCH] mu4e: escape % in queries when updating the mode-string --- mu4e/mu4e-headers.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-headers.el b/mu4e/mu4e-headers.el index e78b2881..352154f9 100644 --- a/mu4e/mu4e-headers.el +++ b/mu4e/mu4e-headers.el @@ -998,7 +998,9 @@ the query history stack." global-mode-string '(:eval (concat - (propertize mu4e~headers-last-query 'face 'mu4e-modeline-face) + (propertize + (replace-regexp-in-string "%" "%%" mu4e~headers-last-query t t) + 'face 'mu4e-modeline-face) " " (mu4e-context-label)))))