From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Wed, 10 Dec 2014 11:00:15 -0600 Message-ID: <8561dj784g.fsf@stephe-leake.org> References: <20141102151524.0d9c665c@forcix> <877fymghgb.fsf@bredband.net> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418230967 16454 80.91.229.3 (10 Dec 2014 17:02:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2014 17:02:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 10 18:02:39 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 1Xyket-0005t6-76 for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2014 18:02:39 +0100 Original-Received: from localhost ([::1]:46823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xykes-0004C3-Nc for ged-emacs-devel@m.gmane.org; Wed, 10 Dec 2014 12:02:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XykdP-0001ki-G7 for emacs-devel@gnu.org; Wed, 10 Dec 2014 12:01:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XykdI-00034Y-S5 for emacs-devel@gnu.org; Wed, 10 Dec 2014 12:01:07 -0500 Original-Received: from gproxy6-pub.mail.unifiedlayer.com ([67.222.39.168]:38837) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XykdI-00034U-LA for emacs-devel@gnu.org; Wed, 10 Dec 2014 12:01:00 -0500 Original-Received: (qmail 12850 invoked by uid 0); 10 Dec 2014 17:00:53 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy6.mail.unifiedlayer.com with SMTP; 10 Dec 2014 17:00:53 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw4 with id Rt0W1p01H2UdiVW01t0Zlj; Wed, 10 Dec 2014 10:00:39 -0700 X-Authority-Analysis: v=2.1 cv=B+wqjodM c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=fNEgcOh0sVsA:10 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=jrwKn-8xaegA:10 a=A92cGCtB03wA:10 a=vaJtXVxTAAAA:8 a=-o6bTOTK-csgB9z16MQA:9 Original-Received: from [70.94.38.149] (port=56981 helo=TAKVER) by host114.hostmonster.com with esmtpa (Exim 4.82) (envelope-from ) id 1Xykco-0004NG-9Q for emacs-devel@gnu.org; Wed, 10 Dec 2014 10:00:30 -0700 In-Reply-To: <861to7lktc.fsf@yandex.ru> (Dmitry Gutov's message of "Wed, 10 Dec 2014 15:02:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 70.94.38.149 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.39.168 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:179668 Archived-At: Dmitry Gutov writes: > Stephen Leake writes: > >> This package does not force anyone to know EIEIO; the package API is all >> plain functions. > > The API mandates that `xref-backend-function' returns an instance of a > class derived from xref-backend-class. Ah, right; I forgot about that. 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) xref could provide a macro that does this. Everything else in a major-mode backend can be non-EIEIO. >> But people can use the classes if they want to; I intend to in ada-mode. > > I don't see why this can't happen with a plain-function implementation. Perhaps I've misunderstood what you are proposing. I have the impression you are proposing to entirely delete EIEIO from xref. What are you proposing? -- -- Stephe