diff options
| -rw-r--r-- | lisp/tabify.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/tabify.el b/lisp/tabify.el index aab939550c2..62d50aa0331 100644 --- a/lisp/tabify.el +++ b/lisp/tabify.el | |||
| @@ -57,7 +57,11 @@ The variable `tab-width' controls the spacing of tab stops." | |||
| 57 | (interactive "r") | 57 | (interactive "r") |
| 58 | (save-excursion | 58 | (save-excursion |
| 59 | (save-restriction | 59 | (save-restriction |
| 60 | (narrow-to-region start end) | 60 | ;; Include the beginning of the line in the narrowing |
| 61 | ;; since otherwise it will throw off current-column. | ||
| 62 | (goto-char start) | ||
| 63 | (beginning-of-line) | ||
| 64 | (narrow-to-region (point) end) | ||
| 61 | (goto-char start) | 65 | (goto-char start) |
| 62 | (while (re-search-forward "[ \t][ \t][ \t]*" nil t) | 66 | (while (re-search-forward "[ \t][ \t][ \t]*" nil t) |
| 63 | (let ((column (current-column)) | 67 | (let ((column (current-column)) |