save-excursion during actual reindentation unless bolp
This commit is contained in:
parent
328f82acbc
commit
6db903bd37
|
@ -128,9 +128,12 @@
|
|||
(skip-syntax-forward " ")
|
||||
(current-column)))))))))
|
||||
(when new-indentation
|
||||
(indent-line-to (if (preserves-continuation-line-p)
|
||||
(+ new-indentation preserves-indent-basic)
|
||||
new-indentation)))))
|
||||
(cl-labels ((reindent! () (indent-line-to (if (preserves-continuation-line-p)
|
||||
(+ new-indentation preserves-indent-basic)
|
||||
new-indentation))))
|
||||
(if (bolp)
|
||||
(reindent!)
|
||||
(save-excursion (reindent!)))))))
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode preserves-mode prog-mode "Preserves"
|
||||
|
|
Loading…
Reference in New Issue