diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-01-31 16:50:23 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2021-02-06 12:24:13 -0500 |
commit | 0ec86c9e1b8d3ce8080b724893068be5f729cc3c (patch) | |
tree | db08cf09123b8289ed68cc5e5cd51624e5088517 /lisp | |
parent | bb9878a64a6a892dcd090ded56e60a20b7fa918b (diff) | |
download | emacs.d-0ec86c9e1b8d3ce8080b724893068be5f729cc3c.tar.gz |
km/magit-patch-create-series: Improve subject regexp
Noticed this for a series generated with --rfc.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/km-magit.el | 6 |
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))))) |