summaryrefslogtreecommitdiff
path: root/lisp/newcomment.el
diff options
context:
space:
mode:
authorChristophe Troestler <Christophe.Troestler@umons.ac.be>2021-08-27 16:37:53 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-08-27 17:15:17 +0200
commit0d45ad99da4c7ba0a9928aab91ffa0ccdee5bf73 (patch)
tree7b745a9691c9858d23bb183ceaa6f3ac42306cef /lisp/newcomment.el
parentf7da671493d11969651d76e9bc2676d935c9bb9c (diff)
downloademacs-0d45ad99da4c7ba0a9928aab91ffa0ccdee5bf73.tar.gz
lisp/newcomment.el: Uncommenting with whitespace `comment-continue'
* lisp/newcomment.el (uncomment-region-default-1): Make all-whitespace `comment-continue' work (bug#50226). Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/newcomment.el')
-rw-r--r--lisp/newcomment.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index 57a52effd14..b458f0356de 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -932,7 +932,8 @@ This function is the default value of `uncomment-region-function'."
(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)