Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6ae948d8
Commit
6ae948d8
authored
Jan 13, 2014
by
Stefan Monnier
Browse files
* lisp/indent.el (indent-according-to-mode): Flush to column 0 in text-mode
after an empty line.
parent
7d29a37a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/indent.el
lisp/indent.el
+4
-3
No files found.
lisp/ChangeLog
View file @
6ae948d8
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.
...
...
lisp/indent.el
View file @
6ae948d8
...
...
@@ -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
))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment