From 44c29155526dd2f3d749c2e91c9d0854e00f42ab Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sun, 30 Oct 2022 19:36:06 +0200 Subject: [PATCH] * lisp/tab-line.el: Escape %-constructs in tab names (bug#57848) (tab-line-tab-name-format-default): Replace % with %% in tab name to escape %-constructs from processing by mode-line-format. --- lisp/tab-line.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/tab-line.el b/lisp/tab-line.el index a4e95bbc755..3aa03e543a8 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -483,7 +483,7 @@ which the tab will represent." (dolist (fn tab-line-tab-face-functions) (setf face (funcall fn tab tabs face buffer-p selected-p))) (apply 'propertize - (concat (propertize name + (concat (propertize (string-replace "%" "%%" name) ;; (bug#57848) 'keymap tab-line-tab-map 'help-echo (if selected-p "Current tab" "Click to select tab") -- 2.39.2