From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: DEFU* macro name for a extern DEFUN: DEFUE? DEFUNEX? Date: Tue, 12 Apr 2011 00:34:50 -0300 Message-ID: References: <4DA295DB.20709@cs.ucla.edu> <87hba4tnx8.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302579303 25246 80.91.229.12 (12 Apr 2011 03:35:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2011 03:35:03 +0000 (UTC) Cc: Paul Eggert , Emacs-Devel devel To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 12 05:34:59 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from [140.186.70.17] (helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9UNX-0002Hh-7U for ged-emacs-devel@m.gmane.org; Tue, 12 Apr 2011 05:34:59 +0200 Original-Received: from localhost ([::1]:53936 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9UNW-0007GN-Q6 for ged-emacs-devel@m.gmane.org; Mon, 11 Apr 2011 23:34:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9UNT-0007Fx-Ns for emacs-devel@gnu.org; Mon, 11 Apr 2011 23:34:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9UNS-0003Z1-R9 for emacs-devel@gnu.org; Mon, 11 Apr 2011 23:34:55 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9UNS-0003Yx-N5 for emacs-devel@gnu.org; Mon, 11 Apr 2011 23:34:54 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:40075 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Q9UNR-0002ZK-H9; Mon, 11 Apr 2011 23:34:53 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0DB13660EF; Mon, 11 Apr 2011 23:34:50 -0400 (EDT) In-Reply-To: <87hba4tnx8.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 11 Apr 2011 18:37:23 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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 X-Broken-Reverse-DNS: no host name found for IP address 140.186.70.17 Xref: news.gmane.org gmane.emacs.devel:138416 Archived-At: >> I've been looking into trimming down the sets of symbols exported and >> imported by each C source file in Emacs, down to the list of symbols >> that are actually needed. This should make it easier to read the >> code, and to do better static analysis, and shrink Emacs a bit by >> removing unused cruft. > I don't think this has been a problem for us in practice; there isn't > sufficient justification to replace DEFUNS throughout the tree. Agreed. I could imagine distinguishing between "function only called from Lisp" and "function both exported to Lisp and called from C", but the static/non-static distinction would rarely if ever be of any help for DEFUNs since those are always "called from some other file" anyway (typically a Lisp file). Stefan