help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to avoid warning, with undefined functions in a package


From: Emanuel Berg
Subject: Re: How to avoid warning, with undefined functions in a package
Date: Mon, 19 Oct 2020 20:33:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Jean Louis wrote:

> Thank you, that is also good to know.
>
> What I did is that I made like:
>
> (defvar rcd-festival-function 'festival-say-string
> "Which festival function to be called") (setq
> rcd-speech-function 'rcd-speak-festival)
>
> and I use bound-and-true-p to avoid the
> warning down.

Well ... OK :)

Another way is to put it in an lsd-festival elisp
_file_, which has a `provide' line last.

Then use `require' topmost in the elisp files where
it is used...

As for vars, yes, use `defvar'

Then byte-compile everything (seemingly) at once
using a Makefile.

Examples:
  
  https://dataswamp.org/~incal/emacs-init/isbn-verify.el
  https://dataswamp.org/~incal/emacs-init/issn-verify.el
  https://dataswamp.org/~incal/emacs-init/Makefile
  
-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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