unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* let-closure and `declare-function'
@ 2022-10-09 12:14 Emanuel Berg
  0 siblings, 0 replies; only message in thread
From: Emanuel Berg @ 2022-10-09 12:14 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-09 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-09 12:14 let-closure and `declare-function' Emanuel Berg

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).