[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/newcomment.el
From: |
Dave Love |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/newcomment.el |
Date: |
Thu, 13 Feb 2003 10:54:20 -0500 |
Index: emacs/lisp/newcomment.el
diff -c emacs/lisp/newcomment.el:1.56 emacs/lisp/newcomment.el:1.57
*** emacs/lisp/newcomment.el:1.56 Tue Feb 4 06:49:38 2003
--- emacs/lisp/newcomment.el Thu Feb 13 10:54:19 2003
***************
*** 473,478 ****
--- 473,482 ----
;; 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)))