]> git.eshelyaron.com Git - emacs.git/commit
Handle single-line comments correctly (Bug#26049)
authorAntonin Houska <ah@melesmeles.cz>
Mon, 6 Nov 2017 08:59:07 +0000 (09:59 +0100)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 7 Nov 2017 00:01:19 +0000 (19:01 -0500)
commitdb949166ecb9aeaa15aa41369a55b3ea6ceaa3b0
treedb0339fb9b613b1614643ffaf3f014db580d9a72
parent795bb233a5451d506826a912025d9fd313625920
Handle single-line comments correctly (Bug#26049)

* lisp/newcomment.el (comment-region-internal): Previously, the
comment text had to contain at least one line break character for the
ending extra line to be added.  Make the behavior more consistent by
looking for end of line instead.
(comment-region-internal): Remove trailing white space from the
comment's initial line.

Copyright-paperwork-exempt: yes
lisp/newcomment.el