]> git.eshelyaron.com Git - emacs.git/commit
Fix infloop in uncomment-region-default (Bug#27112)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 2 Jun 2017 03:09:36 +0000 (23:09 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 5 Jul 2017 00:04:42 +0000 (20:04 -0400)
commit2a9d7394e36524c84fcbd61e4058b9fb89e3cc2b
tree7c109e4589a638f770bc72f8cb16472a919c2344
parent903c874d1018270643d63d8f258e0cc7dfd89951
Fix infloop in uncomment-region-default (Bug#27112)

When `comment-continue' has only blanks, `comment-padright' produces a
regexp that matches the empty string, so `uncomment-region-default'
will loop infinitely.
* lisp/newcomment.el (comment-padright): Only return a regexp if STR
has nonblank characters.
lisp/newcomment.el