From b9d0879b49887a1db7630be9cab7fb60cf09cfd3 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 22 Mar 2012 22:46:31 -0400 Subject: [PATCH] * lisp/newcomment.el (comment-choose-indent): No space after BOL. --- lisp/ChangeLog | 4 ++++ lisp/newcomment.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 652c9ad7e4..59abf190e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2012-03-23 Stefan Monnier + + * newcomment.el (comment-choose-indent): No space after BOL. + 2012-03-22 Sam Steingold * window.el (switch-to-prev-buffer): Revert last patch because the diff --git a/lisp/newcomment.el b/lisp/newcomment.el index ddb6c71d1a..40bb36daf4 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -587,7 +587,7 @@ Point is expected to be at the start of the comment." (save-excursion (end-of-line) (current-column))))) (other nil) (min (save-excursion (skip-chars-backward " \t") - (1+ (current-column))))) + (if (bolp) 0 (1+ (current-column)))))) ;; Fix up the range. (if (< max min) (setq max min)) ;; Don't move past the fill column. -- 2.20.1