From: Richard M. Stallman Date: Tue, 1 Feb 1994 00:16:31 +0000 (+0000) Subject: (tabify): Don't delete back before initial START. X-Git-Tag: emacs-19.34~10136 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d8e81a591552ec3b66b35f08b29f9d3f1d1866c;p=emacs.git (tabify): Don't delete back before initial START. --- diff --git a/lisp/tabify.el b/lisp/tabify.el index ac2004dccda..16e65bddcde 100644 --- a/lisp/tabify.el +++ b/lisp/tabify.el @@ -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