From 0ec86c9e1b8d3ce8080b724893068be5f729cc3c Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 31 Jan 2021 16:50:23 -0500 Subject: km/magit-patch-create-series: Improve subject regexp Noticed this for a series generated with --rfc. --- lisp/km-magit.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/km-magit.el b/lisp/km-magit.el index de39bc9..f204944 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -919,7 +919,11 @@ appending [M/N] to each entry." (when cover (find-file-other-window cover) (goto-char (point-min)) - (re-search-forward (rx "Subject: [PATCH" (zero-or-more not-newline) "] ")) + (re-search-forward (rx "Subject: [" + (zero-or-more (not (any "]" "\n"))) + "PATCH" + (zero-or-more (not (any "]" "\n"))) + "]" (one-or-more space))) (setq buffer-read-only nil) (auto-fill-mode 1) (flyspell-mode 1))))) -- cgit v1.2.3