aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Kangas2019-08-02 16:46:08 +0200
committerNoam Postavsky2019-08-08 08:26:31 -0400
commit2c0f6c3540ccad4b5832e9e00ece483a6a456bbb (patch)
tree19154aa2c4e7f5ea5dc7fd15317e2f6599bc20f7 /test/src
parentd1ec33eaead82138ba5e65d59fd68c7da6d9e3a5 (diff)
downloademacs-2c0f6c3540ccad4b5832e9e00ece483a6a456bbb.tar.gz
emacs-2c0f6c3540ccad4b5832e9e00ece483a6a456bbb.zip
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.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/undo-tests.el12
1 files changed, 6 insertions, 6 deletions
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 @@
255 (insert "12345") 255 (insert "12345")
256 (search-backward "4") 256 (search-backward "4")
257 (undo-boundary) 257 (undo-boundary)
258 (delete-forward-char 1) 258 (funcall-interactively 'delete-forward-char 1)
259 (search-backward "1") 259 (search-backward "1")
260 (undo-boundary) 260 (undo-boundary)
261 (insert "xxxx") 261 (insert "xxxx")
@@ -299,7 +299,7 @@ undo-make-selective-list."
299 (insert "ddd") 299 (insert "ddd")
300 (search-backward "ad") 300 (search-backward "ad")
301 (undo-boundary) 301 (undo-boundary)
302 (delete-forward-char 2) 302 (funcall-interactively 'delete-forward-char 2)
303 (undo-boundary) 303 (undo-boundary)
304 ;; Select "dd" 304 ;; Select "dd"
305 (push-mark (point) t t) 305 (push-mark (point) t t)
@@ -348,7 +348,7 @@ undo-make-selective-list."
348 (let ((m (make-marker))) 348 (let ((m (make-marker)))
349 (set-marker m 2 (current-buffer)) 349 (set-marker m 2 (current-buffer))
350 (goto-char (point-min)) 350 (goto-char (point-min))
351 (delete-forward-char 3) 351 (funcall-interactively 'delete-forward-char 3)
352 (undo-boundary) 352 (undo-boundary)
353 (should (= (point-min) (marker-position m))) 353 (should (= (point-min) (marker-position m)))
354 (undo) 354 (undo)
@@ -369,7 +369,7 @@ undo-make-selective-list."
369 (push-mark (point) t t) 369 (push-mark (point) t t)
370 (setq mark-active t) 370 (setq mark-active t)
371 (goto-char (point-min)) 371 (goto-char (point-min))
372 (delete-forward-char 1) ;; delete region covering "ab" 372 (funcall-interactively 'delete-forward-char 1) ; delete region covering "ab"
373 (undo-boundary) 373 (undo-boundary)
374 (should (= (point-min) (marker-position m))) 374 (should (= (point-min) (marker-position m)))
375 ;; Resurrect "ab". m's insertion type means the reinsertion 375 ;; Resurrect "ab". m's insertion type means the reinsertion
@@ -389,7 +389,7 @@ Demonstrates bug 16818."
389 (let ((m (make-marker))) 389 (let ((m (make-marker)))
390 (set-marker m 2 (current-buffer)) ; m at b 390 (set-marker m 2 (current-buffer)) ; m at b
391 (goto-char (point-min)) 391 (goto-char (point-min))
392 (delete-forward-char 3) ; m at d 392 (funcall-interactively 'delete-forward-char 3) ; m at d
393 (undo-boundary) 393 (undo-boundary)
394 (set-marker m 4) ; m at g 394 (set-marker m 4) ; m at g
395 (undo) 395 (undo)
@@ -422,7 +422,7 @@ Demonstrates bug 16818."
422 (push-mark (point) t t) 422 (push-mark (point) t t)
423 (setq mark-active t) 423 (setq mark-active t)
424 (goto-char (- (point) 3)) 424 (goto-char (- (point) 3))
425 (delete-forward-char 1) 425 (funcall-interactively 'delete-forward-char 1)
426 (undo-boundary) 426 (undo-boundary)
427 427
428 (insert "bbb") 428 (insert "bbb")