emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/newcomment.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/newcomment.el
Date: Fri, 09 May 2003 16:09:04 -0400

Index: emacs/lisp/newcomment.el
diff -c emacs/lisp/newcomment.el:1.63 emacs/lisp/newcomment.el:1.64
*** emacs/lisp/newcomment.el:1.63       Tue May  6 10:55:56 2003
--- emacs/lisp/newcomment.el    Fri May  9 16:09:04 2003
***************
*** 481,491 ****
            ;; Some comment-indent-function insist on not moving comments that
            ;; 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)))
--- 481,491 ----
            ;; Some comment-indent-function insist on not moving comments that
            ;; are in column 0, so we first go to the likely target column.
            (indent-to comment-column)
            ;; Ensure there's a space before the comment for things
            ;; like sh where it matters (as well as being neater).
!           (unless (memq (char-before) '(nil ?\n ?\t ?\ ))
              (insert ?\ ))
+           (setq begpos (point))
            (insert starter)
            (setq cpos (point-marker))
            (insert ender)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]