summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-01-31 16:50:23 -0500
committerKyle Meyer <kyle@kyleam.com>2021-02-06 12:24:13 -0500
commit0ec86c9e1b8d3ce8080b724893068be5f729cc3c (patch)
treedb08cf09123b8289ed68cc5e5cd51624e5088517
parentbb9878a64a6a892dcd090ded56e60a20b7fa918b (diff)
downloademacs.d-0ec86c9e1b8d3ce8080b724893068be5f729cc3c.tar.gz
km/magit-patch-create-series: Improve subject regexp
Noticed this for a series generated with --rfc.
-rw-r--r--lisp/km-magit.el6
1 files changed, 5 insertions, 1 deletions
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)))))