mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 23:10:47 -08:00
Use lexical-binding in check-declare.el and add tests
* lisp/emacs-lisp/check-declare.el: Use lexical-binding. (check-declare-warn): Silence byte compiler warning about unused lexical argument. * test/lisp/emacs-lisp/check-declare-tests.el: New file with tests for check-declare.el.
This commit is contained in:
parent
82c506192b
commit
7db0093bc2
2 changed files with 118 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
;;; check-declare.el --- Check declare-function statements
|
||||
;;; check-declare.el --- Check declare-function statements -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2007-2020 Free Software Foundation, Inc.
|
||||
|
||||
|
|
@ -248,7 +248,7 @@ TYPE is a string giving the nature of the error.
|
|||
Optional LINE is the claim's line number; otherwise, search for the claim.
|
||||
Display warning in `check-declare-warning-buffer'."
|
||||
(let ((warning-prefix-function
|
||||
(lambda (level entry)
|
||||
(lambda (_level entry)
|
||||
(insert (format "%s:%d:" (file-relative-name file) (or line 0)))
|
||||
entry))
|
||||
(warning-fill-prefix " "))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue