]> code.delx.au - gnu-emacs/commitdiff
(tabify): Don't delete back before initial START.
authorRichard M. Stallman <rms@gnu.org>
Tue, 1 Feb 1994 00:16:31 +0000 (00:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 1 Feb 1994 00:16:31 +0000 (00:16 +0000)
lisp/tabify.el

index ac2004dccda774ccc9a58e08406184771b6bd262..16e65bddcde10e85e02eb15047a28b1e4bcd594a 100644 (file)
@@ -39,11 +39,11 @@ The variable `tab-width' controls the spacing of tab stops."
       (narrow-to-region (point-min) end)
       (goto-char start)
       (while (search-forward "\t" nil t)       ; faster than re-search
-       (let ((start (point))
+       (let ((tab-beg (point))
              (column (current-column))
              (indent-tabs-mode nil))
-         (skip-chars-backward "\t")
-         (delete-region start (point))
+         (skip-chars-backward "\t" start)
+         (delete-region tab-beg (point))
          (indent-to column))))))
 
 ;;;###autoload