From df8cf5308e3c55e97027d95e4af2df8d73799ac3 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Tue, 11 Apr 2023 20:33:58 +0200 Subject: Avoid use of string-replace (Emacs 28.1+) --- nov.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nov.el') diff --git a/nov.el b/nov.el index 664412d..0d9e524 100644 --- a/nov.el +++ b/nov.el @@ -552,9 +552,9 @@ Sets `header-line-format' according to `nov-header-line-format'." ;; this shouldn't happen for properly authored EPUBs (when (not title) (setq title (propertize "No title" 'face 'italic))) - (string-replace - "%" "%%" - (format-spec + (replace-regexp-in-string + "%" "%%" + (format-spec nov-header-line-format `((?c . ,chapter-title) (?t . ,title)))))))) -- cgit v1.2.3