Make `indent-line-to' respect field boundaries (Bug#26891)
* lisp/indent.el (indent-line-to): Use `back-to-indentation' instead of `backward-to-indentation'.
This commit is contained in:
parent
750f0e2e79
commit
4635016869
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
(backward-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)
|
||||
|
|
Loading…
Add table
Reference in a new issue