From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Getting ideas from other editors: Postfix Code Completion Date: Thu, 06 Mar 2014 22:37:04 +0100 Message-ID: References: <87ppm0vwje.fsf@yandex.ru> <87mwh38dmw.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394141839 32708 80.91.229.3 (6 Mar 2014 21:37:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2014 21:37:19 +0000 (UTC) Cc: Tom , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 06 22:37:26 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 1WLfyo-00024Q-7r for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2014 22:37:26 +0100 Original-Received: from localhost ([::1]:60528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLfyn-0005MN-Mg for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2014 16:37:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLfyf-0005M6-8p for emacs-devel@gnu.org; Thu, 06 Mar 2014 16:37:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLfyY-0000ld-Os for emacs-devel@gnu.org; Thu, 06 Mar 2014 16:37:17 -0500 Original-Received: from mx2.bahnhof.se ([213.80.101.12]:61039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLfyY-0000lK-IF for emacs-devel@gnu.org; Thu, 06 Mar 2014 16:37:10 -0500 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx2-reinject (Postfix) with ESMTP id 61B5E7AF35F; Thu, 6 Mar 2014 22:37:09 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF3) Original-Received: from mf3.bahnhof.se ([127.0.0.1]) by localhost (mf3.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GcIVcBto-3VY; Thu, 6 Mar 2014 22:37:05 +0100 (CET) Original-Received: from mta.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf3.bahnhof.se (Postfix) with ESMTP id 092A03E8C8E; Thu, 6 Mar 2014 22:37:04 +0100 (CET) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id BE0B54F592E; Thu, 6 Mar 2014 21:37:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona.se Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jDRzpjUtQs4o; Thu, 6 Mar 2014 22:37:04 +0100 (CET) Original-Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id 0C0C84F592C; Thu, 6 Mar 2014 22:37:04 +0100 (CET) In-Reply-To: <87mwh38dmw.fsf@yandex.ru> (Dmitry Gutov's message of "Thu, 06 Mar 2014 19:01:43 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 213.80.101.12 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:170192 Archived-At: Dmitry Gutov writes: > joakim@verona.se writes: > >> Cedet has SRecode, which is useful for refactoring. > > Looks like a code generation tool. Can you give an example of it being > used for refactoring (i.e. taking an existing piece of code and changing > it according to some rules)? > You can feed it tags from the semantic parser. You can transform the tags with lisp before you feed them to the generator. This is not like the Eclipse refactoring tool I saw demoed once. My own cases are a bit specialized. I do have a more useful example of the code generation half of the process for generation of C code from lisp for the Ergodox keyboard firmware. -- Joakim Verona