summaryrefslogtreecommitdiff
path: root/paredit.el
diff options
context:
space:
mode:
authorTaylor R Campbell <campbell@mumble.net>2011-03-22 07:53:38 +0000
committerTaylor R Campbell <campbell@mumble.net>2011-03-22 07:53:38 +0000
commitbd439e3b74cefe471dad5c8a553cf6af27444955 (patch)
treedb97a9ef699826f21b3691f5a487d23e2ff3eab0 /paredit.el
parenta79aa2c61e8127ff3f2c0c63a772b6d3b12cf785 (diff)
Avoid trailing space when `paredit-comment-dwim' inserts code comments.
Ignore-this: ad4e061915d387d246846932d5860919 darcs-hash:20110322075338-00fcc-ac9a1c13fd14ea9dd9b5070b66cdd3549cadc25a
Diffstat (limited to 'paredit.el')
-rw-r--r--paredit.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/paredit.el b/paredit.el
index a887ddc..6c9907c 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1170,8 +1170,9 @@ This is expected to be called only in `paredit-comment-dwim'; do not
(insert ";;; "))
((or code-after-p (not code-before-p))
;; Code comment
- (if code-before-p (newline))
- (lisp-indent-line)
+ (if code-before-p
+ (newline-and-indent)
+ (lisp-indent-line))
(insert ";; ")
(if code-after-p
(save-excursion