]> git.eshelyaron.com Git - emacs.git/commitdiff
Test interactive-only spec of with-suppressed-warnings
authorStefan Kangas <stefan@marxist.se>
Sun, 22 Nov 2020 02:24:26 +0000 (03:24 +0100)
committerStefan Kangas <stefan@marxist.se>
Sun, 22 Nov 2020 02:24:26 +0000 (03:24 +0100)
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test--with-suppressed-warnings): Test suppressing warning
with interactive-only.

test/lisp/emacs-lisp/bytecomp-tests.el

index 13cbedfe1f731f7ec48c7469a917bff8ffe3b693..e0a3cc2fb823000b8e29252397644fac0b7f0e89 100644 (file)
@@ -808,6 +808,12 @@ literals (Bug#20852)."
    '((obsolete obsolete-variable))
    "obsolete")
 
+  (test-suppression
+   '(defun zot ()
+      (next-line))
+   '((interactive-only next-line))
+   "interactive use only")
+
   (test-suppression
    '(defun zot ()
       (mapcar #'list '(1 2 3))