From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.help Subject: Re: How to avoid warning, with undefined functions in a package Date: Mon, 19 Oct 2020 10:34:59 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35411"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 19 10:35:41 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kUQdp-00096V-MQ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 10:35:41 +0200 Original-Received: from localhost ([::1]:35666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUQdo-0005ne-NE for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 04:35:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUQdQ-0005kV-Hm for help-gnu-emacs@gnu.org; Mon, 19 Oct 2020 04:35:16 -0400 Original-Received: from sonic301-21.consmr.mail.ir2.yahoo.com ([77.238.176.98]:42019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUQdM-0006OK-4n for help-gnu-emacs@gnu.org; Mon, 19 Oct 2020 04:35:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1603096501; bh=ZaM9z0ygaPV+jGjdu0e2DSJsuFKPYRZHVj3lefp61aE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=U02mtnLa2D6rVDYrFeglgIx9vu2SMqz6Z0RvD0kZ+zt7pW+WFR472cUfH9e6Qhk+5I8H36JoHMwBqN6RTePdOjB4Ux+4eNVrNB84SjtUIpo1dRFxnG0WpM0X1K0REG9lPoa5SCPQJN185Nx3tqrEdJbDJIZRmbfa45TuEn6QuBKcCpW4TVtqJkCge7SHGty3fqWa/CIXpXX4O36QmVyJjQivt6QTQkBZ8lT3chLJkLDLFAw7whx26Fd++tpCpst/wjHuC1Cmk9EDgCHIrwMX7NJ6H/iqnP/2ArHvH/wj5uDmh00F79Yx+CtDV4Wd8UehtS8Bo1eHC8iv0Xi680xYdw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1603096501; bh=pEfJkxkn14VD3YgQ4HrZqsjXmYP/HSlAGijBZIrGi4G=; h=From:To:Subject:Date; b=ZISqawEn0fUhW769o093zaogOhxIemN5vhOhC93SgchEHxqmeO0LDrP/cYxg/8O6l8xRXq2WxoHmWopccB3Ig18+kLk9ZJTjJtqPDKFpxCNVL+Na72pc5lLHbc015TNbWPhzfDCYqS4YG1BOBuz/UrjVM1XMZupNOwv0quCMdnxMGmVjslRUEKXR9fRKGLbnfHRCPmrkfsPpBmJ6PNYXM4tT7UR5nxpGQQBYDpezocf/ivmiFK306l+iR7hf6k9EN4mVzvcMy38DesTNUyCBKuISkFIZQMOOblb6PuryDpjH1YOtm1nRNcwhBjcIwwQl8g7A0EoWGWyAcZFebrRVHA== X-YMail-OSG: 9pE8gk8VM1mHswHAPG.OKxuiCiy2toHYiuICYMvAyry1k9bG8BidkuR9JRxJFsj oFAT8hATNv6IyNdY_5nmIauIbzODgJrEjZoqhmOrBKJndVRNetme5i5MC4Z2b9p8Kp.cNb.21Xga 3kEGV5rYxGr49Thy4k_Z3bAQUDlMBZaAtAT5pqH0.j3cTMN95n3VCys6kgwZpEBi.0jkycBAvzbz pHkS.lw.Z_d428Rh3yUaZdS08gdQUtuZ_9EWtIxfhneZRzYes0qlE5V_lppVIK3smiQyA06.ecU8 4z9e7oYs6TOVAwo6DGG3GvC4JOXVEA8OY77cuM6VydOBC8IvfJ6eWRnEQIiViYBMSbdnM1l2aSdI Q5GVYHRo6SUGFMnKsuiMyzdlGOIzQ_Db3ONEJdGkdGaB34HSacLGGGS.8hYvlfESTjVPYXxCjwLD 7mpcQ_MYC9N4VvFsE9Jpx1mPukGkDfXQbZ0XenBysxUMuWJmAJSAe5lHugVm3653E0DDdmHM5652 VdTAEECC8NYRgVqp59Qio8yaka3Aj4UtovsQ1UoJVWWTFwhfxtnwoONQlWdFtsIBZHNBTrvi51lY l9S0G0SeHGJddufTkRpz7Uc7Jw3VwxchzEX38A.9vSYizCJqnqTCcng7we2NjYd_aAHBJC6YtgVe R67qZsxiLJBCpn9vbPeluF6LnueHnMlKGj9RQZ4pb6uy_WmQ.dPVWIk.Qn9vfaDpgqYONkp155f4 Tc86ldwx6uUx3jW2s_LqLJWcBJtUj1drv4ac2vkk53I3xpUESjte3Z6opgxC_d4kxAUe2wacKcLW Jc23VcK51LJNBCMgkMTRKrAAQ9W4cIDjG3CD9ie0nz Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ir2.yahoo.com with HTTP; Mon, 19 Oct 2020 08:35:01 +0000 Original-Received: by smtp404.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 96bd4ef1f26c1aeac3f47512185d7ed2; Mon, 19 Oct 2020 08:34:59 +0000 (UTC) In-Reply-To: (Jean Louis's message of "Mon, 19 Oct 2020 08:58:11 +0300") X-Mailer: WebService/1.1.16868 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=77.238.176.98; envelope-from=mardani29@yahoo.es; helo=sonic301-21.consmr.mail.ir2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/19 04:35:01 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124573 Archived-At: Jean Louis writes: > Let us say I have some speech functions, but do not want to > (require 'festival) for the package rcd-utilities.el > > Those are undefined functions and variables, but I would not like > defining them, or requiring them, unless user has that other package. > > What would be good approach to solve that, and that there are no > compiler warnings? > > In rcd-speak-festival: > rcd-utilities.el:121:23: Warning: reference to free variable > =E2=80=98festival-program-name=E2=80=99 > > In end of data: > rcd-utilities.el:205:1: Warning: the function =E2=80=98festival-say-strin= g=E2=80=99 is not > known to be defined. There are several possible techniques. The Elisp manual explains some of them: C-h i m Elisp RET i byte-compiler warnings RET