From c0d9a34a7f0a5955002429da0480aaf3913cd061 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Fri, 27 Aug 2021 16:14:08 +0200 Subject: [PATCH] lisp/newcomment.el: Uncommenting with whitespace `comment-continue' Content-Type: text/plain; charset="utf-8" --- lisp/newcomment.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 57a52effd1..b458f0356d 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -932,7 +932,8 @@ uncomment-region-default-1 (setq end (copy-marker end)) (let* ((numarg (prefix-numeric-value arg)) (ccs comment-continue) - (srei (comment-padright ccs 're)) + (srei (or (comment-padright ccs 're) + (and (stringp comment-continue) comment-continue))) (csre (comment-padright comment-start 're)) (sre (and srei (concat "^\\s-*?\\(" srei "\\)"))) spt) -- 2.32.0