summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2020-08-28 17:18:15 +0200
committerStefan Kangas <stefankangas@gmail.com>2020-08-28 17:33:44 +0200
commit766cd0c7c337d34aeb7ec43b80a5008c713ddf0f (patch)
tree62ddf978576e4a8b44d8f057d65dc33938f8c1ee /lisp/emacs-lisp
parent7974422dfc59419503c588dd96ec2a083bdd5c34 (diff)
downloademacs-766cd0c7c337d34aeb7ec43b80a5008c713ddf0f.tar.gz
emacs-766cd0c7c337d34aeb7ec43b80a5008c713ddf0f.tar.bz2
emacs-766cd0c7c337d34aeb7ec43b80a5008c713ddf0f.zip
Use lexical-binding in warnings.el and add tests
* lisp/warnings.el: Use lexical-binding. Remove redundant :group args. * test/lisp/warnings-tests.el: New file.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/warnings.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el
index cd960618a0a..07b45433301 100644
--- a/lisp/emacs-lisp/warnings.el
+++ b/lisp/emacs-lisp/warnings.el
@@ -1,4 +1,4 @@
-;;; warnings.el --- log and display warnings
+;;; warnings.el --- log and display warnings -*- lexical-binding:t -*-
;; Copyright (C) 2002-2020 Free Software Foundation, Inc.
@@ -74,7 +74,6 @@ it may not itself be an alias.")
If a warning's severity level is lower than this,
the warning is logged in the warnings buffer, but the buffer
is not immediately displayed. See also `warning-minimum-log-level'."
- :group 'warnings
:type '(choice (const :emergency) (const :error)
(const :warning) (const :debug))
:version "22.1")
@@ -86,7 +85,6 @@ If a warning severity level is lower than this,
the warning is completely ignored.
Value must be lower or equal than `warning-minimum-level',
because warnings not logged aren't displayed either."
- :group 'warnings
:type '(choice (const :emergency) (const :error)
(const :warning) (const :debug))
:version "22.1")
@@ -100,7 +98,6 @@ Thus, (foo bar) as an element matches (foo bar)
or (foo bar ANYTHING...) as TYPE.
If TYPE is a symbol FOO, that is equivalent to the list (FOO),
so only the element (FOO) will match it."
- :group 'warnings
:type '(repeat (repeat symbol))
:version "22.1")
@@ -115,7 +112,6 @@ or (foo bar ANYTHING...) as TYPE.
If TYPE is a symbol FOO, that is equivalent to the list (FOO),
so only the element (FOO) will match it.
See also `warning-suppress-log-types'."
- :group 'warnings
:type '(repeat (repeat symbol))
:version "22.1")