From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: [RFC] refactoring DEFUN Date: Mon, 25 Mar 2013 06:18:38 -0700 Message-ID: <51504EAE.9080402@dancol.org> References: <51503B6D.1060203@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2SRJGKBWIWPLJHUNGKDEX" X-Trace: ger.gmane.org 1364217543 19775 80.91.229.3 (25 Mar 2013 13:19:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2013 13:19:03 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 25 14:19:26 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 1UK7J8-0000Y6-JU for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2013 14:19:26 +0100 Original-Received: from localhost ([::1]:34758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK7Ik-0006aN-Om for ged-emacs-devel@m.gmane.org; Mon, 25 Mar 2013 09:19:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK7Ic-0006UV-Ur for emacs-devel@gnu.org; Mon, 25 Mar 2013 09:18:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UK7Ib-0006IX-In for emacs-devel@gnu.org; Mon, 25 Mar 2013 09:18:54 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:52702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK7Ib-0006Gc-DM for emacs-devel@gnu.org; Mon, 25 Mar 2013 09:18:53 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[0.0.0.0]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UK7IU-0002qU-3a; Mon, 25 Mar 2013 06:18:46 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: <51503B6D.1060203@yandex.ru> X-Enigmail-Version: 1.5.1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:158127 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2SRJGKBWIWPLJHUNGKDEX Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 3/25/2013 4:56 AM, 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: >=20 > DEFUN ("foo", Ffoo, Sfoo, ...) >=20 I really don't mind the way it is now. Adding a subr isn't a particularly= common endeavor. > and use: >=20 > DEFUN ("foo", foo, ...) >=20 > instead. The core change is simple, but the obvious rest is ~450K > uncompressed (99.9% was generated by elisp program, BTW). I'd prefer to keep it the old way --- it preserves greppability. The new = way involves a lot more magic, and I don't think it buys us much maintainabil= ity because changing buildin function names is rare. ------enig2SRJGKBWIWPLJHUNGKDEX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (Cygwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlFQTrQACgkQ17c2LVA10VvHAwCff2BkV5AM3I+beuqqV13JVStF hegAmwT/Skvm/dnR+laU4pQIjJN1m7CC =eRf7 -----END PGP SIGNATURE----- ------enig2SRJGKBWIWPLJHUNGKDEX--