Commit 8b44bc06 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(fill-comment-paragraph): Obey indent-tabs-mode.

parent c536bb39
......@@ -811,9 +811,13 @@ can take care of filling. JUSTIFY is used as in `fill-paragraph'."
(goto-char comstart)
(if has-code-and-comment
(concat (make-string (/ (current-column) tab-width) ?\t)
(make-string (% (current-column) tab-width) ?\ )
(buffer-substring (point) comin))
(if (not indent-tabs-mode)
(make-string (current-column) ?\ )
(make-string (/ (current-column) tab-width) ?\t)
(make-string (% (current-column) tab-width) ?\ )))
(buffer-substring (point) comin))
(buffer-substring (line-beginning-position) comin))))
beg end)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment