(insert "12345")
(search-backward "4")
(undo-boundary)
- (delete-forward-char 1)
+ (funcall-interactively 'delete-forward-char 1)
(search-backward "1")
(undo-boundary)
(insert "xxxx")
(insert "ddd")
(search-backward "ad")
(undo-boundary)
- (delete-forward-char 2)
+ (funcall-interactively 'delete-forward-char 2)
(undo-boundary)
;; Select "dd"
(push-mark (point) t t)
(let ((m (make-marker)))
(set-marker m 2 (current-buffer))
(goto-char (point-min))
- (delete-forward-char 3)
+ (funcall-interactively 'delete-forward-char 3)
(undo-boundary)
(should (= (point-min) (marker-position m)))
(undo)
(push-mark (point) t t)
(setq mark-active t)
(goto-char (point-min))
- (delete-forward-char 1) ;; delete region covering "ab"
+ (funcall-interactively 'delete-forward-char 1) ; delete region covering "ab"
(undo-boundary)
(should (= (point-min) (marker-position m)))
;; Resurrect "ab". m's insertion type means the reinsertion
(let ((m (make-marker)))
(set-marker m 2 (current-buffer)) ; m at b
(goto-char (point-min))
- (delete-forward-char 3) ; m at d
+ (funcall-interactively 'delete-forward-char 3) ; m at d
(undo-boundary)
(set-marker m 4) ; m at g
(undo)
(push-mark (point) t t)
(setq mark-active t)
(goto-char (- (point) 3))
- (delete-forward-char 1)
+ (funcall-interactively 'delete-forward-char 1)
(undo-boundary)
(insert "bbb")