From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Wed, 10 Dec 2014 14:06:40 -0500 Message-ID: References: <20141102151524.0d9c665c@forcix> <85ppc0qf9a.fsf@stephe-leake.org> <85zjb3o09d.fsf@stephe-leake.org> <85tx1amnyg.fsf@stephe-leake.org> <85egsem1u2.fsf@stephe-leake.org> <867fy0or7p.fsf@yandex.ru> <85bnnb98dq.fsf@stephe-leake.org> <861to7lktc.fsf@yandex.ru> <8561dj784g.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418238430 15187 80.91.229.3 (10 Dec 2014 19:07:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2014 19:07:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 10 20:07:03 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 1XymbH-0005ku-Ef for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2014 20:07:03 +0100 Original-Received: from localhost ([::1]:47429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XymbG-0002ke-V1 for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2014 14:07:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xymb5-0002kQ-Tr for emacs-devel@gnu.org; Wed, 10 Dec 2014 14:06:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xymax-0000Av-Mn for emacs-devel@gnu.org; Wed, 10 Dec 2014 14:06:51 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:54000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xymax-0000Ad-Hz for emacs-devel@gnu.org; Wed, 10 Dec 2014 14:06:43 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id sBAJ6fJS002758; Wed, 10 Dec 2014 14:06:42 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 024E06610C; Wed, 10 Dec 2014 14:06:40 -0500 (EST) In-Reply-To: <8561dj784g.fsf@stephe-leake.org> (Stephen Leake's message of "Wed, 10 Dec 2014 11:00:15 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5151=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5151> : inlines <1621> : streams <1354789> : uri <1838050> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:179682 Archived-At: > On the other hand, the required code is three lines: > (defclass xref-ada-backend (xref-backend-class) ()) > (defvar xref--ada-backend (make-instance 'xref-ada-backend)) > (defun xref-ada-backend-function () xref--ada-backend) You also need to define the corresponding methods. IOW, all the visible part of the API relies on EIEIO. Stefan