emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 4635016 2/2: Make `indent-line-to' respect field bo


From: Noam Postavsky
Subject: [Emacs-diffs] master 4635016 2/2: Make `indent-line-to' respect field boundaries (Bug#26891)
Date: Mon, 15 May 2017 23:01:59 -0400 (EDT)

branch: master
commit 4635016869f7b85dfe37669674677a7dcaab20c4
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Make `indent-line-to' respect field boundaries (Bug#26891)
    
    * lisp/indent.el (indent-line-to): Use `back-to-indentation' instead
    of `backward-to-indentation'.
---
 lisp/indent.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/indent.el b/lisp/indent.el
index fdd184c..e7a30b8 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]