]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix variable types in warnings-suppress
authorYury Kholodkov <yurykholodkov@gmail.com>
Mon, 15 Aug 2022 07:36:06 +0000 (09:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 15 Aug 2022 07:36:06 +0000 (09:36 +0200)
* lisp/emacs-lisp/warnings.el (warnings-suppress): The type of
these user options is a list of lists of symbols, not a list of
symbols (bug#57183).

Copyright-paperwork-exempt: yes

lisp/emacs-lisp/warnings.el

index d60eedbc9cdb69a5b5f87b55cb144c44913e44b5..3a966957ec523625968eae59eedda9646dbed8ab 100644 (file)
@@ -220,10 +220,10 @@ SUPPRESS-LIST is the list of kinds of warnings to suppress."
              (?q "quit and do nothing"))))
     (?y
      (customize-save-variable 'warning-suppress-log-types
-                              (cons type warning-suppress-log-types)))
+                              (cons (list type) warning-suppress-log-types)))
     (?n
      (customize-save-variable 'warning-suppress-types
-                              (cons type warning-suppress-types)))
+                              (cons (list type) warning-suppress-types)))
     (_ (message "Exiting"))))
 
 ;;;###autoload