Function: magit--with-temp-position
magit--with-temp-position is a macro defined in magit-base.el.
Signature
(magit--with-temp-position BUF POS &rest BODY)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-base.el
(defmacro magit--with-temp-position (buf pos &rest body)
(declare (indent 2))
`(with-current-buffer ,buf
(save-excursion
(save-restriction
(widen)
(goto-char (or ,pos 1))
,@body))))