From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Patch for fields of `struct buffer' Date: Tue, 08 Feb 2011 09:38:07 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297183104 26574 80.91.229.12 (8 Feb 2011 16:38:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Feb 2011 16:38:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 08 17:38:20 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pmqa4-00074i-1v for ged-emacs-devel@m.gmane.org; Tue, 08 Feb 2011 17:38:20 +0100 Original-Received: from localhost ([127.0.0.1]:36131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmqa3-0002rm-L3 for ged-emacs-devel@m.gmane.org; Tue, 08 Feb 2011 11:38:19 -0500 Original-Received: from [140.186.70.92] (port=36826 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmqZw-0002rI-JK for emacs-devel@gnu.org; Tue, 08 Feb 2011 11:38:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmqZv-0001b0-EO for emacs-devel@gnu.org; Tue, 08 Feb 2011 11:38:12 -0500 Original-Received: from mx1.redhat.com ([209.132.183.28]:27681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmqZv-0001at-5R for emacs-devel@gnu.org; Tue, 08 Feb 2011 11:38:11 -0500 Original-Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p18Gc971028368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 Feb 2011 11:38:09 -0500 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p18Gc93X023891; Tue, 8 Feb 2011 11:38:09 -0500 Original-Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p18Gc8rP001999; Tue, 8 Feb 2011 11:38:08 -0500 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id DBC9537817D; Tue, 8 Feb 2011 09:38:07 -0700 (MST) X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Tue, 01 Feb 2011 17:21:45 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135760 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: Stefan> Note that this auto-generation of globals.h might trigger some Stefan> related neurons and bring up related desires. Stefan> E.g. auto-generate the `defsubr' calls and all the Stefan> intern_c_string+staticpro for Q vars ;-) Auto-generating the `defsubr' calls looks reasonably easy. Well -- it looks very easy given sed, I have no clue about the Windows build. I guess I could write a C program in lib-src. I actually did the Q* vars once for another hare-brained hack of mine. I could probably reproduce that. What I did there is have a file that was just a list of Lisp symbols. Then, I generated all the declarations and initialization of the Q* constants from that. I could look into this again, but IIRC it was quite a bit of work. But maybe it would be amenable to automated rewriting now. Really we should just go the extra mile and write Emacs in Lisp ;-) That would solve a lot of problems. Tom