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: Tue, 09 Dec 2014 15:47:11 +0100 Message-ID: References: <20141102151524.0d9c665c@forcix> <20141117211039.37f03409@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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418136477 26467 80.91.229.3 (9 Dec 2014 14:47:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2014 14:47:57 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 09 15:47:50 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 1XyM4r-0000Mb-I1 for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2014 15:47:49 +0100 Original-Received: from localhost ([::1]:40906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyM4r-0007fh-3O for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2014 09:47:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyM4T-0007eP-0G for emacs-devel@gnu.org; Tue, 09 Dec 2014 09:47:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyM4J-0003Br-W3 for emacs-devel@gnu.org; Tue, 09 Dec 2014 09:47:24 -0500 Original-Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:55562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyM4J-0003Bh-Q5 for emacs-devel@gnu.org; Tue, 09 Dec 2014 09:47:15 -0500 Original-Received: by mail-wi0-f178.google.com with SMTP id em10so1928266wid.17 for ; Tue, 09 Dec 2014 06:47:14 -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=EUFei6lswjbO4YGyg0KyY+NNhkqooQdjSxjQG/PrkaQ=; b=A1WJBHcCrRjmehasVpp17E9FIIjMRozqasQGxNBe5PvNS+9qpCqhGrHrmC23VcxPWG MWr5GXqhDVw4sPW0D1OJpktM80wwsbAQ+3gtJ3K004dD6ljSyoaPpLVc067qk9DNQspY TJtTsBfNa7YSCFmvGxNmxv2c0XCPiuGqWEuH/j6PLLBt6t/tvPdUXnlkT6siQCLcCH6f /67hjyqmcZdfWfUWYuFRfUpip8BNMPrRegTpkKNrTSHX7ouqc2tuKscH3LFM6kO0gxVZ z7ppInXsBmipzEr+UDo2Cs4KEasNk2r/Owr5uabOHSm2g+RaROi/TzR83kjW2pvgdNyc zm0Q== X-Received: by 10.194.222.98 with SMTP id ql2mr5782557wjc.36.1418136434904; Tue, 09 Dec 2014 06:47:14 -0800 (PST) Original-Received: from ix ([212.46.172.140]) by mx.google.com with ESMTPSA id kv6sm2041045wjb.9.2014.12.09.06.47.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 09 Dec 2014 06:47:13 -0800 (PST) Original-Received: from helmut by ix with local (Exim 4.80) (envelope-from ) id 1XyM4F-0001uK-QT; Tue, 09 Dec 2014 15:47:11 +0100 In-Reply-To: <867fy0or7p.fsf@yandex.ru> (Dmitry Gutov's message of "Tue, 09 Dec 2014 16:03:38 +0200") 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::232 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:179561 Archived-At: On Tue, Dec 09 2014, Dmitry Gutov wrote: > Would anyone mind if I try my hand at porting this code to the "plain > functions" approach? I don't mind. Rewrites welcome! > For the location value, using cl-defstruct seems to be > appropriate, but using plain functions and vars for everything else > should be simpler. Actually, the location stuff was the primary reason I started using EIEIO. In SLIME we have quite a zoo of location variants (not based on EIEIO), e.g. file+byteoffset, file+charoffsets, search-strings, and something that we call "source-paths". A source-path describes a path in the SEXP tree; sounds weird but works surprisingly well for Lisp syntax. Just want to say that locations should be very flexible. Helmut