From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Fixing "Unknown slot" warnings Date: Sun, 29 Jan 2017 13:39:31 +0100 Message-ID: <87sho2m458.fsf@engster.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1485693638 4903 195.159.176.226 (29 Jan 2017 12:40:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2017 12:40:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 29 13:40:34 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXomC-0007WX-M9 for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2017 13:40:12 +0100 Original-Received: from localhost ([::1]:55043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXomI-0005CE-00 for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2017 07:40:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXolh-0005Bv-P8 for emacs-devel@gnu.org; Sun, 29 Jan 2017 07:39:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXolc-0006Ab-T4 for emacs-devel@gnu.org; Sun, 29 Jan 2017 07:39:41 -0500 Original-Received: from randomsample.de ([5.45.97.173]:47710) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXolc-00069y-JH for emacs-devel@gnu.org; Sun, 29 Jan 2017 07:39:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=NRQNEviaVQ1h7Xd8CXc4SqyuHSqXnydInnRvr6XA/KQ=; b=hzryXpnSl5Kym3NqZWS7FxOPJ2EPOAgjQYmnr2j/lZHCJr9D5zVqg3V5o2GF8uzHidI+Ff1lqV+xWSJms/VXivyBXT+3rjlGlBo0qxbXNv50/KDYGJmN+KutxqZE7a4o; Original-Received: from ip4d16b353.dynamic.kabel-deutschland.de ([77.22.179.83] helo=isaac) by randomsample.de with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cXolb-00021R-09 for emacs-devel@gnu.org; Sun, 29 Jan 2017 13:39:35 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.45.97.173 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211721 Archived-At: I'm currently fixing the above byte-compiler warnings for CEDET. I've replaced all the 'oref' with 'slot-value' and properly used quotes for the slot names, but there are some warnings remaining. The reason is that the byte-compiler has not seen the class declaration, so it does not know about the available slots. However, I cannot simply eval-when-compile-require the file with the class as it would create a circular dependency. Example: Compiling lisp/cedet/semantic.el issues In semantic-analyze-completion-at-point-function: cedet/semantic.el:1188:15:Warning: Unknown slot =E2=80=98bounds=E2=80=99 The class declaration for `semantic-analyze-context' is in semantic/analyze.el, which however itself requires semantic. How can I tell the compiler everything will be OK at runtime, similar to what 'declare-function' does for functions? -David