[Top][All Lists]

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

Re: Generalizing find-definition

From: Helmut Eller
Subject: Re: Generalizing find-definition
Date: Thu, 11 Dec 2014 20:36:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

On Thu, Dec 11 2014, David Engster wrote:

> Helmut Eller writes:
>>> Too bad that classes can't be autoloaded.
> They can. CEDET does that all the time.

Ah, that's great!

>>   ;;;###autoload (autoload 'etags-xref-backend "etags")
>>   (defclass etags-xref-backend (xref-backend-class eieio-singleton) ())
> Uhm, did you try to simply putting ";;;###autoload" before a class
> definition? It should work just fine (through
> `eieio-defclass-autoload').

Yes, I tried but got this error:

  Loading loaddefs.el (source)...
  Attempt to autoload eieio-defclass-autoload while preparing to dump
  make[1]: *** [emacs] Error 1

> However, there *is* a problem with autoloading classes, namely that
> EIEIO should not be loaded at Emacs startup. This is why this feature is
> currently restricted to the CEDET subsystem which is only loaded when
> you activate Semantic or EDE.

So what's the recommended way to do it for a file in lisp/progmodes/ ?


reply via email to

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