From: Noam Postavsky Date: Fri, 12 May 2017 01:06:33 +0000 (-0400) Subject: Make `indent-line-to' respect field boundaries (Bug#26891) X-Git-Tag: emacs-26.0.90~521^2~393 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4635016869f7b85dfe37669674677a7dcaab20c4;p=emacs.git Make `indent-line-to' respect field boundaries (Bug#26891) * lisp/indent.el (indent-line-to): Use `back-to-indentation' instead of `backward-to-indentation'. --- diff --git a/lisp/indent.el b/lisp/indent.el index fdd184c7998..e7a30b885d7 100644 --- 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." - (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)