mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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.
This commit is contained in:
parent
7974422dfc
commit
766cd0c7c3
2 changed files with 61 additions and 5 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue