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'."
(save-excursion
(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))
(concat
(if (not indent-tabs-mode)
(make-string (current-column) ?\ )
(concat
(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)
(save-excursion
......
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