From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: use Elisp to improve your Elisp - some code issues Date: Fri, 31 Jul 2015 13:24:45 -0700 (PDT) Message-ID: <683844af-0117-4f6e-a64e-aeabc12946e7@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438374318 22315 80.91.229.3 (31 Jul 2015 20:25:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2015 20:25:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 31 22:25:18 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ZLGrl-00056P-NT for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2015 22:25:17 +0200 Original-Received: from localhost ([::1]:45914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLGrk-0001xd-D8 for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2015 16:25:16 -0400 X-Received: by 10.107.26.129 with SMTP id a123mr4514270ioa.17.1438374286087; Fri, 31 Jul 2015 13:24:46 -0700 (PDT) X-Received: by 10.140.81.38 with SMTP id e35mr52054qgd.3.1438374286057; Fri, 31 Jul 2015 13:24:46 -0700 (PDT) Original-Path: usenet.stanford.edu!f3no5593088igg.0!news-out.google.com!b31ni2510qge.0!nntp.google.com!69no3115879qgl.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.13.129.22; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 82.13.129.22 User-Agent: G2/1.0 Injection-Date: Fri, 31 Jul 2015 20:24:46 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:213881 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106166 Archived-At: On Friday, 31 July 2015 01:24:24 UTC+1, Emanuel Berg wrote: > I just wrote some Elisp which can be used on a set of > files to identify for example the construct >=20 > (if a a b) >=20 > if you want to replace those for >=20 > (or a b) >=20 > See the comments for the issues! This is really great! We have plans to do something similar in ENSIME (for = Scala, and soon Java, development). The Scala/Java support is of no relevance to this group, so I shall just sa= y that we have an external process that we communicate with and it can prov= ide async suggestions of code that can be changed. It sounds like what you're doing here and we aim to achieve (albeit it a lo= ng burn) would benefit from a common interface of "code suggestion" --- bot= h a format for the changes (universal diff?) and the method to show and acc= ept the changes. FYI we're tracking this on our github issue tracker https://github.com/ensi= me/ensime-server/issues/848 so please keep us updated if you come up with a= nything reusable. This issue is for the server side support, but the data t= hat is returned is going to have to be driven by the text editor requiremen= ts. Best regards, Sam