From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: refactoring DEFUN Date: Mon, 25 Mar 2013 12:55:39 +0000 Message-ID: References: <51503B6D.1060203@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364216162 5593 80.91.229.3 (25 Mar 2013 12:56:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2013 12:56:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 25 13:56:29 2013 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 1UK6wr-0003E7-Gr for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2013 13:56:25 +0100 Original-Received: from localhost ([::1]:41050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK6wT-0007Iv-Rs for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2013 08:56:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK6wM-0007DM-56 for emacs-devel@gnu.org; Mon, 25 Mar 2013 08:55:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UK6wJ-0006pa-06 for emacs-devel@gnu.org; Mon, 25 Mar 2013 08:55:54 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK6wI-0006pL-L9 for emacs-devel@gnu.org; Mon, 25 Mar 2013 08:55:50 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UK6we-000306-Ic for emacs-devel@gnu.org; Mon, 25 Mar 2013 13:56:12 +0100 Original-Received: from uk.solarflare.com ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Mar 2013 13:56:12 +0100 Original-Received: from andrewjmoreton by uk.solarflare.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Mar 2013 13:56:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: uk.solarflare.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) Cancel-Lock: sha1:BAPmJFs4vRgQtLYSfayll7vHWgI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:158123 Archived-At: On Mon 25 Mar 2013, Dmitry Antipov wrote: > Although C preprocessor can't transform the text too much, it's > still possible to use concatenation to avoid silly typing like: > > DEFUN ("foo", Ffoo, Sfoo, ...) > > and use: > > DEFUN ("foo", foo, ...) > > instead. The core change is simple, but the obvious rest is ~450K > uncompressed (99.9% was generated by elisp program, BTW). It would help to show the elisp program you used to generate the patch, as that would make it easier to check that the results of the transform are correct. Did you find any cases where the names did not match up ? AndyM