]> code.delx.au - gnu-emacs/blobdiff - admin/bzrmerge.el
Improve regex to not trigger stack overflow
[gnu-emacs] / admin / bzrmerge.el
index 7d4cd19230d6fcae92f21d1b96b767b0b44a29d6..1bcbaa24085ca2ccb5ab7f00919fe6c4904d6e6f 100644 (file)
@@ -140,11 +140,11 @@ are both lists of revnos, in oldest-first order."
                     (setq str (substring str (match-end 0))))
                   (when (string-match "[.!;, ]+\\'" str)
                     (setq str (substring str 0 (match-beginning 0))))
-                  (let ((help-form "\
+                  (let ((help-form (substitute-command-keys "\
 Type `y' to skip this revision,
 `N' to include it and go on to the next revision,
 `n' to not skip, but continue to search this log entry for skip regexps,
-`q' to quit merging."))
+`q' to quit merging.")))
                     (pcase (save-excursion
                             (read-char-choice
                              (format "%s: Skip (y/n/N/q/%s)? " str