1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(comment-indent-default): Don't get fooled by an early end of buffer.

This commit is contained in:
Stefan Monnier 2005-06-29 06:46:37 +00:00
parent b26860ad0e
commit 8c39e595e8
2 changed files with 9 additions and 4 deletions

View 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.

View 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