Skip to content

Commit 74e7488

Browse files
committed
Save after change.
1 parent 1e77cf5 commit 74e7488

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docstr-writers.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,15 @@ Argument POSTFIX is string behind of return document string."
254254
(docstr-util-insert-args (docstr-form-return return-type-str "" docstr-desc-return))
255255
(when postfix (insert postfix))))
256256

257-
(defun docstr-writers-after (start &optional preserve)
257+
(defun docstr-writers-after (start &optional ind-r ind-l restore-pt)
258258
"Do stuff after document string insertion.
259259
260260
Argument START is the starting point ot the insertion.
261261
262-
If optional argument PRESERVE is non-nil, don't go back to starting position."
263-
(indent-region start (point))
264-
(indent-for-tab-command)
265-
(unless preserve (goto-char start)))
262+
If optional argument RESTORE-PT is non-nil, go back to starting position."
263+
(when ind-r (indent-region start (point)))
264+
(when ind-l (indent-for-tab-command))
265+
(when restore-pt (goto-char start)))
266266

267267
;;
268268
;; (@* "Configurations" )

0 commit comments

Comments
 (0)