Commit 6ae948d8 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/indent.el (indent-according-to-mode): Flush to column 0 in text-mode

after an empty line.
parent 7d29a37a
2014-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
* indent.el (indent-according-to-mode): Flush to column 0 in text-mode
after an empty line.
2014-01-12 Stefan Monnier <monnier@iro.umontreal.ca>
* net/shr.el (shr-render-region): Autoload.
......
......@@ -76,9 +76,10 @@ that case, indent by aligning to the previous non-blank line."
;; indenting. Replace with something ad-hoc.
(let ((column (save-excursion
(beginning-of-line)
(skip-chars-backward "\n \t")
(beginning-of-line)
(current-indentation))))
(if (bobp) 0
(beginning-of-line 0)
(if (looking-at "[ \t]*$") 0
(current-indentation))))))
(if (<= (current-column) (current-indentation))
(indent-line-to column)
(save-excursion (indent-line-to column))))
......
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