all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Fixing "Unknown slot" warnings
@ 2017-01-29 12:39 David Engster
  2017-01-29 14:41 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: David Engster @ 2017-01-29 12:39 UTC (permalink / raw)
  To: emacs-devel

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 ‘bounds’

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-29 21:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-29 12:39 Fixing "Unknown slot" warnings David Engster
2017-01-29 14:41 ` Stefan Monnier
2017-01-29 15:35   ` David Engster
2017-01-29 17:07     ` Stefan Monnier
2017-01-29 21:26       ` David Engster

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.