mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
(tabify): Include entire first line in narrowing.
This commit is contained in:
parent
7af318194c
commit
7be313ea3b
@ -57,7 +57,11 @@ The variable `tab-width' controls the spacing of tab stops."
|
||||
(interactive "r")
|
||||
(save-excursion
|
||||
(save-restriction
|
||||
(narrow-to-region start end)
|
||||
;; Include the beginning of the line in the narrowing
|
||||
;; since otherwise it will throw off current-column.
|
||||
(goto-char start)
|
||||
(beginning-of-line)
|
||||
(narrow-to-region (point) end)
|
||||
(goto-char start)
|
||||
(while (re-search-forward "[ \t][ \t][ \t]*" nil t)
|
||||
(let ((column (current-column))
|
||||
|
Loading…
Reference in New Issue
Block a user