From: Stefan Kangas Date: Fri, 2 Aug 2019 14:46:08 +0000 (+0200) Subject: Suppress interactive-only warnings in undo-tests.el (Bug#36565) X-Git-Tag: emacs-27.0.90~1670 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2c0f6c3540ccad4b5832e9e00ece483a6a456bbb;p=emacs.git Suppress interactive-only warnings in undo-tests.el (Bug#36565) * test/src/undo-tests.el (undo-test-region-deletion) (undo-test-region-example, undo-test-marker-adjustment-nominal) (undo-test-region-t-marker, undo-test-marker-adjustment-moved) (undo-test-region-mark-adjustment): Suppress interactive-only warnings by using funcall-interactively. --- diff --git a/test/src/undo-tests.el b/test/src/undo-tests.el index 8395ba99099..fc2dfe027e8 100644 --- a/test/src/undo-tests.el +++ b/test/src/undo-tests.el @@ -255,7 +255,7 @@ (insert "12345") (search-backward "4") (undo-boundary) - (delete-forward-char 1) + (funcall-interactively 'delete-forward-char 1) (search-backward "1") (undo-boundary) (insert "xxxx") @@ -299,7 +299,7 @@ undo-make-selective-list." (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) @@ -348,7 +348,7 @@ undo-make-selective-list." (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) @@ -369,7 +369,7 @@ undo-make-selective-list." (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 @@ -389,7 +389,7 @@ Demonstrates bug 16818." (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) @@ -422,7 +422,7 @@ Demonstrates bug 16818." (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")