From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Thu, 11 Dec 2014 20:21:35 +0100 Message-ID: <8761diro00.fsf@engster.org> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418325745 22203 80.91.229.3 (11 Dec 2014 19:22:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2014 19:22:25 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 11 20:22:19 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 1Xz9JU-0006V7-Oj for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 20:22:12 +0100 Original-Received: from localhost ([::1]:53949 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz9JU-0001SB-Ab for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 14:22:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz9JA-0001Ka-3I for emacs-devel@gnu.org; Thu, 11 Dec 2014 14:21:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz9J4-0006jA-0q for emacs-devel@gnu.org; Thu, 11 Dec 2014 14:21:52 -0500 Original-Received: from randomsample.de ([5.45.97.173]:42483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz9J3-0006h6-OF for emacs-devel@gnu.org; Thu, 11 Dec 2014 14:21:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=sb+lE0CC9gTc/9ftKTqtBzZzuMiU8k0YBSYoJo8kLHM=; b=cA2sEfV3Epco9RzwfKg5kmQg1do2FE5SELdSM/bOpeLRVmao2CGvlozconwU6hURjxL84jBHu+Vi2n3TQafg2qDxrjfbPuJMDD9/HF/uhfM00E40TvLHcEl+CFwhQW8C; Original-Received: from ip4d154cb9.dynamic.kabel-deutschland.de ([77.21.76.185] helo=spaten) by randomsample.de with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Xz9Iv-0004Ac-Of; Thu, 11 Dec 2014 20:21:37 +0100 In-Reply-To: (Helmut Eller's message of "Thu, 11 Dec 2014 19:36:44 +0100") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.45.97.173 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:179820 Archived-At: Helmut Eller writes: >> Too bad that classes can't be autoloaded. They can. CEDET does that all the time. > ;;;###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'). 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. -David