From: Stefan Kangas <stefan@marxist.se>
To: 36565@debbugs.gnu.org
Subject: bug#36565: [PATCH] Suppress interactive-only warnings in undo-tests.el
Date: Wed, 10 Jul 2019 05:40:02 +0200 [thread overview]
Message-ID: <CADwFkm=6B6uD+ywj+SAdsm=es3+9aySTqLfhQk9Ce7HzkDfCdA@mail.gmail.com> (raw)
In-Reply-To: <CADwFkmmDJyc=5_djYaaD+3dZCo7n9TakDS5edcUJDFiQoDbHmA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 477 bytes --]
Stefan Kangas <stefan@marxist.se> writes:
>
> Stefan Kangas <stefan@marxist.se> writes:
> > (I'll send the patch in a separate message once this is assigned a bug
> > number.)
>
> Patch attached.
1. Wrong patch attached, ugh. Please find correct version attached.
2. This actually doesn't work due to an issue with with-suppressed-tests.
I have reported a separate Bug#36568 for this.
This patch therefore unfortunately would have no effect for now.
Thanks,
Stefan Kangas
[-- Attachment #2: 0001-Suppress-interactive-only-warnings-in-undo-tests.el.patch --]
[-- Type: application/octet-stream, Size: 3003 bytes --]
From 5eebeba79f0e9d62daf226ca17bda9ea0248ccc3 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Wed, 10 Jul 2019 03:05:16 +0200
Subject: [PATCH] Suppress interactive-only warnings in undo-tests.el
* 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.
---
test/src/undo-tests.el | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/test/src/undo-tests.el b/test/src/undo-tests.el
index b84f5a5847..14ba0659a3 100644
--- a/test/src/undo-tests.el
+++ b/test/src/undo-tests.el
@@ -255,7 +255,9 @@ undo-test-region-deletion
(insert "12345")
(search-backward "4")
(undo-boundary)
- (delete-forward-char 1)
+ (with-suppressed-warnings
+ (interactive-only delete-forward-char)
+ (delete-forward-char 1))
(search-backward "1")
(undo-boundary)
(insert "xxxx")
@@ -299,7 +301,9 @@ undo-test-region-example
(insert "ddd")
(search-backward "ad")
(undo-boundary)
- (delete-forward-char 2)
+ (with-suppressed-warnings
+ (interactive-only delete-forward-char)
+ (delete-forward-char 2))
(undo-boundary)
;; Select "dd"
(push-mark (point) t t)
@@ -348,7 +352,9 @@ undo-test-marker-adjustment-nominal
(let ((m (make-marker)))
(set-marker m 2 (current-buffer))
(goto-char (point-min))
- (delete-forward-char 3)
+ (with-suppressed-warnings
+ (interactive-only delete-forward-char)
+ (delete-forward-char 3))
(undo-boundary)
(should (= (point-min) (marker-position m)))
(undo)
@@ -369,7 +375,9 @@ undo-test-region-t-marker
(push-mark (point) t t)
(setq mark-active t)
(goto-char (point-min))
- (delete-forward-char 1) ;; delete region covering "ab"
+ (with-suppressed-warnings
+ (interactive-only delete-forward-char)
+ (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 +397,9 @@ undo-test-marker-adjustment-moved
(let ((m (make-marker)))
(set-marker m 2 (current-buffer)) ; m at b
(goto-char (point-min))
- (delete-forward-char 3) ; m at d
+ (with-suppressed-warnings
+ (interactive-only delete-forward-char)
+ (delete-forward-char 3)) ; m at d
(undo-boundary)
(set-marker m 4) ; m at g
(undo)
@@ -422,7 +432,9 @@ undo-test-region-mark-adjustment
(push-mark (point) t t)
(setq mark-active t)
(goto-char (- (point) 3))
- (delete-forward-char 1)
+ (with-suppressed-warnings
+ (interactive-only delete-forward-char)
+ (delete-forward-char 1))
(undo-boundary)
(insert "bbb")
--
2.21.0
next prev parent reply other threads:[~2019-07-10 3:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 1:14 bug#36565: [PATCH] Suppress interactive-only warnings in undo-tests.el Stefan Kangas
2019-07-10 1:24 ` Stefan Kangas
2019-07-10 3:40 ` Stefan Kangas [this message]
2019-07-10 3:53 ` Stefan Kangas
2019-07-17 20:08 ` Noam Postavsky
2019-08-04 16:46 ` Stefan Kangas
2019-08-08 12:30 ` Noam Postavsky
2019-07-10 12:09 ` Lars Ingebrigtsen
2019-07-10 22:53 ` Stefan Kangas
2019-07-11 14:11 ` Lars Ingebrigtsen
2019-07-11 17:31 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkm=6B6uD+ywj+SAdsm=es3+9aySTqLfhQk9Ce7HzkDfCdA@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=36565@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.