From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15880: Compute C declarations for DEFSYMs automatically. Date: Wed, 13 Nov 2013 08:36:08 -0500 Message-ID: References: <5282C8F4.5010806@cs.ucla.edu> <52830A35.2020005@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384349836 4803 80.91.229.3 (13 Nov 2013 13:37:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Nov 2013 13:37:16 +0000 (UTC) Cc: 15880@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 13 14:37:20 2013 Return-path: Envelope-to: geb-bug-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 1VgadE-000162-9B for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2013 14:37:20 +0100 Original-Received: from localhost ([::1]:48790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgadD-0000IW-Ue for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2013 08:37:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgad4-0000IG-Cj for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 08:37:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgacw-0002Fl-Hi for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 08:37:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgacw-0002FP-EJ for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 08:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vgacv-00050c-TK for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 08:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2013 13:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15880 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15880-submit@debbugs.gnu.org id=B15880.138434978719204 (code B ref 15880); Wed, 13 Nov 2013 13:37:01 +0000 Original-Received: (at 15880) by debbugs.gnu.org; 13 Nov 2013 13:36:27 +0000 Original-Received: from localhost ([127.0.0.1]:49730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VgacM-0004zf-KV for submit@debbugs.gnu.org; Wed, 13 Nov 2013 08:36:26 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:46582) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VgacK-0004zW-15 for 15880@debbugs.gnu.org; Wed, 13 Nov 2013 08:36:24 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id rADDaExw008990; Wed, 13 Nov 2013 08:36:14 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id CF76060354; Wed, 13 Nov 2013 08:36:08 -0500 (EST) In-Reply-To: <52830A35.2020005@cs.ucla.edu> (Paul Eggert's message of "Tue, 12 Nov 2013 21:12:21 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4761=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4761> : inlines <213> : streams <1073034> : uri <1594037> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80358 Archived-At: >> this creates a "big single file >> dependency", so addition/removal of a DEFSYM somewhere causes >> recompilation of all files. Would it be possible to trick the deps/* >> rules so they pretend this file is not a dependency? > Possibly, but that would run into the opposite problem. > If you add or remove DEFVAR_LISP somewhere so that > the layout of struct emacs_globals changes, then > omitting the dependency and compiling some files > but not others would make Emacs misbehave badly. Of course, we don't want that for DEFVARs or DEFUNs. I was thinking of doing it only for the DEFSYMs (which would obviously need to be kept in a separate file). Stefan