org.el: Tiny code cleanup

* lisp/org.el (org-fixup-indentation): Remove redundant
`save-excursion'.
This commit is contained in:
Bastien 2020-02-09 18:25:35 +01:00
parent 97269bc6fa
commit 2096c9c76f
1 changed files with 2 additions and 2 deletions

View File

@ -7252,11 +7252,11 @@ Assume point is at a heading or an inlinetask beginning."
(when (looking-at org-property-drawer-re)
(goto-char (match-end 0))
(forward-line)
(save-excursion (org-indent-region (match-beginning 0) (match-end 0))))
(org-indent-region (match-beginning 0) (match-end 0)))
(when (looking-at org-logbook-drawer-re)
(goto-char (match-end 0))
(forward-line)
(save-excursion (org-indent-region (match-beginning 0) (match-end 0))))
(org-indent-region (match-beginning 0) (match-end 0)))
(catch 'no-shift
(when (or (zerop diff) (not (eq org-adapt-indentation t)))
(throw 'no-shift nil))