projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
750f0e2
)
Make `indent-line-to' respect field boundaries (Bug#26891)
author
Noam Postavsky
<npostavs@gmail.com>
Fri, 12 May 2017 01:06:33 +0000
(21:06 -0400)
committer
Noam Postavsky
<npostavs@gmail.com>
Tue, 16 May 2017 02:58:24 +0000
(22:58 -0400)
* lisp/indent.el (indent-line-to): Use `back-to-indentation' instead
of `backward-to-indentation'.
lisp/indent.el
patch
|
blob
|
history
diff --git
a/lisp/indent.el
b/lisp/indent.el
index fdd184c7998c8b05c42e8fd327304cb37ba2fc43..e7a30b885d7a568b2dc94392fe91df83036632b2 100644
(file)
--- a/
lisp/indent.el
+++ b/
lisp/indent.el
@@
-285,7
+285,7
@@
indentation by specifying a large negative ARG."
"Indent current line to COLUMN.
This function removes or adds spaces and tabs at beginning of line
only if necessary. It leaves point at end of indentation."
- (back
ward-to-indentation 0
)
+ (back
-to-indentation
)
(let ((cur-col (current-column)))
(cond ((< cur-col column)
(if (>= (- column (* (/ cur-col tab-width) tab-width)) tab-width)