mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(comment-indent): Ensure space before added comment.
This commit is contained in:
parent
136b7da90a
commit
e6bba95eca
@ -473,6 +473,10 @@ If CONTINUE is non-nil, use the `comment-continue' markers if any."
|
||||
;; are in column 0, so we first go to the likely target column.
|
||||
(indent-to comment-column)
|
||||
(setq begpos (point))
|
||||
;; Ensure there's a space before the comment for things
|
||||
;; like sh where it matters (as well as being neater).
|
||||
(unless (eq ?\ (char-syntax (char-before)))
|
||||
(insert ?\ ))
|
||||
(insert starter)
|
||||
(setq cpos (point-marker))
|
||||
(insert ender)))
|
||||
|
Loading…
Reference in New Issue
Block a user