branch: externals/calibre
commit df4fad93837c42b4e5b112f2c524a912372fa1f3
Author: Kjartan Oli Agustsson <[email protected]>
Commit: Kjartan Oli Agustsson <[email protected]>
Use rx-to-string instead of manual string concatenation
* calibre.el (calibre-font-lock-keywords): Use rx-to-string instead of
manual string concatenation.
---
calibre.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/calibre.el b/calibre.el
index 2dbf7d4f23..fa6ac90bcc 100644
--- a/calibre.el
+++ b/calibre.el
@@ -83,10 +83,10 @@
(defvar calibre-font-lock-keywords
(list
- (list (concat "^[" (char-to-string calibre-del-marker) "]")
+ (list (rx-to-string `(seq line-start ,calibre-del-marker))
'(".+" (beginning-of-line) nil (0 calibre-flagged-face)))
- (list (concat "^[" (char-to-string calibre-mod-marker) "]")
- '(".+" (beginning-of-line) nil (0 calibre-modified-face)))))
+ (list (rx-to-string `(seq line-start ,calibre-mod-marker))
+ '(".+" (beginning-of-line) nil (0 calibre-modified-face)))
(provide 'calibre)
;;; calibre.el ends here