emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

let-closure and `declare-function'


From: Emanuel Berg
Subject: let-closure and `declare-function'
Date: Sun, 09 Oct 2022 14:14:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

I wrote a couple of days ago (?) you didn't need
`declare-function' to silence the byte-compiler when using
lexical let-closures, this however this is incorrect, I just
upgraded [1], tried it, and got the same warnings.

(I don't remember where I wrote that but I write this
HERE anyway.)

The warning

  Warning: the function ‘save-char-table’ is not known to
  be defined.

is silenced like this

  (declare-function save-char-table nil) ;

see full/actual example [2].
  
[1] GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo
    version 1.16.0) of 2022-09-27 [commit
    a2dd9d683a02525183b5e692e42622c65639dda8]

[2] https://dataswamp.org/~incal/emacs-init/cache.el

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]