From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Thu, 11 Dec 2014 20:36:24 +0100 Message-ID: References: <20141102151524.0d9c665c@forcix> <85zjb3o09d.fsf@stephe-leake.org> <85tx1amnyg.fsf@stephe-leake.org> <85egsem1u2.fsf@stephe-leake.org> <867fy0or7p.fsf@yandex.ru> <86ppbqn841.fsf@yandex.ru> <8761diro00.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418326616 4492 80.91.229.3 (11 Dec 2014 19:36:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2014 19:36:56 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: David Engster Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 11 20:36:49 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xz9Xc-0007Hq-Qf for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 20:36:48 +0100 Original-Received: from localhost ([::1]:54057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz9Xc-0006TQ-Cz for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 14:36:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz9XP-0006G7-Eg for emacs-devel@gnu.org; Thu, 11 Dec 2014 14:36:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz9XG-0004np-7m for emacs-devel@gnu.org; Thu, 11 Dec 2014 14:36:35 -0500 Original-Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:33015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz9XG-0004nk-0H for emacs-devel@gnu.org; Thu, 11 Dec 2014 14:36:26 -0500 Original-Received: by mail-wi0-f173.google.com with SMTP id r20so391480wiv.0 for ; Thu, 11 Dec 2014 11:36:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=krqMZLaV+JwDWcrcuSlsaKAxQ5erAP8QXgDcpX/amUo=; b=r52rRNPm/AUITbTqMnYYqF5qSChXnAd3mp/pw6qRymLARBK371jN8BF9mU1iqYejBC ySwJCpKWPNh0Ve9cxm6AK7Q/lXDSIX3C2czteD7zmLlGmVMHzDdTSTZQ33N00Rb82K0+ v6qubuHha49dbc9uOH4+Ef1ENtxsgfFkKKXhjHbRNy/Pf1cXHFUfeV/oyyk2mU3+uDvp /l23tCabDzEkr5RPNaZsgotobL/EVT8aXxMeiJWkm2USxThCOWtrG6rJ8IY8XdAPGQvL rHYcS6fFdTpCEE9Fka8fKr5Ny3+bo5kBM1JY/6HL+Dvo0iLleETnt2+6sSqPbkfd0gzq CekA== X-Received: by 10.194.189.240 with SMTP id gl16mr19436418wjc.119.1418326585374; Thu, 11 Dec 2014 11:36:25 -0800 (PST) Original-Received: from ix ([212.46.172.140]) by mx.google.com with ESMTPSA id ex9sm396353wib.14.2014.12.11.11.36.24 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 11 Dec 2014 11:36:24 -0800 (PST) Original-Received: from helmut by ix with local (Exim 4.80) (envelope-from ) id 1Xz9XE-0002SS-2x; Thu, 11 Dec 2014 20:36:24 +0100 In-Reply-To: <8761diro00.fsf@engster.org> (David Engster's message of "Thu, 11 Dec 2014 20:21:35 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179825 Archived-At: 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/ ? Helmut