Subject: 29.0.60; command `undo-redo` don't restore cursor position

From: yinz Liu <[email-masked]>
Date: Sat, 17 Dec 2022 09:42:28 +0800

aaaa ! bbbb @ cccc #

1. when cursor at position "#", call `undo', cursor jump to "@"

2. when cursor at position "@", call `undo-redo', text "cccc" restore,

   but cursor still remain in "@", don't move to "#".

my workaround fow now:

in function primitive-undo
<https://github.com/emacs-mirror/emacs/blob/149e6e03b3f860c3d78031bf3377d8a4c99a7a64/lisp/simple.el#L3622-L3624>
 :

change L3624 to : `(goto-char (+ pos (length string)))`