]> git.eshelyaron.com Git - emacs.git/commitdiff
(comment-indent-default): Don't get fooled by an early end of buffer.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 29 Jun 2005 06:46:37 +0000 (06:46 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 29 Jun 2005 06:46:37 +0000 (06:46 +0000)
lisp/ChangeLog
lisp/newcomment.el

index d3485a1bf6c0bd2e1daff7433fbe4c998def2caa..7e5cc987d9e5c42a47b84001e5828eaf6b9de6bf 100644 (file)
@@ -1,6 +1,11 @@
+2005-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * newcomment.el (comment-indent-default): Don't get fooled by an early
+       end of buffer.
+
 2005-06-28  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
 
-       * ps-print.el (ps-print-version): Fixed version number.
+       * ps-print.el (ps-print-version): Fix version number.
 
 2005-06-28  Luc Teirlinck  <teirllm@auburn.edu>
 
@@ -51,8 +56,8 @@
        background color faces.
        (facemenu-get-face): Delete function.
        (facemenu-set-face-from-menu): Don't call facemenu-get-face.
-       (facemenu-add-new-color): Make second argument mandatory.  Create
-       the approprate face and return it.  Simplify.
+       (facemenu-add-new-color): Make second argument mandatory.
+       Create the approprate face and return it.  Simplify.
        (facemenu-set-foreground, facemenu-set-background): Don't check if
        color is defined.  Use return value of facemenu-add-new-color.
 
index 59044da6ef9c78237091f1de127bfe8bd00e324f..590e6ce37bac3880ebff879b1a80fa02639e3819 100644 (file)
@@ -502,7 +502,7 @@ Point is assumed to be just at the end of a comment."
           (or (match-end 1) (/= (current-column) (current-indentation))))
       0
     (when (or (/= (current-column) (current-indentation))
-             (and (> comment-add 0) (looking-at "\\s<\\S<")))
+             (and (> comment-add 0) (looking-at "\\s<\\(\\S<\\|\\'\\)")))
       comment-column)))
 
 ;;;###autoload