From: Stefan Monnier Date: Wed, 29 Jun 2005 06:46:37 +0000 (+0000) Subject: (comment-indent-default): Don't get fooled by an early end of buffer. X-Git-Tag: emacs-pretest-22.0.90~8589 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c39e595e800a27816cffb22580ad293b51825ab;p=emacs.git (comment-indent-default): Don't get fooled by an early end of buffer. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d3485a1bf6c..7e5cc987d9e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,11 @@ +2005-06-29 Stefan Monnier + + * newcomment.el (comment-indent-default): Don't get fooled by an early + end of buffer. + 2005-06-28 Vinicius Jose Latorre - * ps-print.el (ps-print-version): Fixed version number. + * ps-print.el (ps-print-version): Fix version number. 2005-06-28 Luc Teirlinck @@ -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. diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 59044da6ef9..590e6ce37ba 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -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