diff options
| author | Vasilij Schneidermann <mail@vasilij.de> | 2023-04-11 20:33:58 +0200 |
|---|---|---|
| committer | Vasilij Schneidermann <mail@vasilij.de> | 2023-04-11 20:33:58 +0200 |
| commit | df8cf5308e3c55e97027d95e4af2df8d73799ac3 (patch) | |
| tree | 79d43e22a3415cac0cf4a21e5303de47a5a2af1c | |
| parent | 6c992c2c5c4ad03a0f432a74fe4d0cde3b6da4bd (diff) | |
Avoid use of string-replace (Emacs 28.1+)
| -rw-r--r-- | nov.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)))))))) |
