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: Thu, 14 Apr 2011 22:15:56 -0300 Message-ID: References: <4DA295DB.20709@cs.ucla.edu> <87hba4tnx8.fsf@stupidchicken.com> <4DA3AC70.6070609@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302833220 15722 80.91.229.12 (15 Apr 2011 02:07:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2011 02:07:00 +0000 (UTC) Cc: Chong Yidong , Emacs-Devel devel To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 15 04:06:55 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QAYQv-0005zB-9P for ged-emacs-devel@m.gmane.org; Fri, 15 Apr 2011 04:06:53 +0200 Original-Received: from localhost ([::1]:43616 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAYQu-0007Wk-Fn for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2011 22:06:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAYQs-0007Wa-Mr for emacs-devel@gnu.org; Thu, 14 Apr 2011 22:06:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAYQr-00065E-VK for emacs-devel@gnu.org; Thu, 14 Apr 2011 22:06:50 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAYQr-000658-U0 for emacs-devel@gnu.org; Thu, 14 Apr 2011 22:06:49 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:45882 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QAYQq-0003zV-9Q; Thu, 14 Apr 2011 22:06:48 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 9CCA966535; Thu, 14 Apr 2011 23:06:44 -0300 (ART) In-Reply-To: <4DA3AC70.6070609@cs.ucla.edu> (Paul Eggert's message of "Mon, 11 Apr 2011 18:35:44 -0700") 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 Xref: news.gmane.org gmane.emacs.devel:138490 Archived-At: > How about this idea instead? It would not replace any DEFUNs. > We put the line "static" in front of functions that are not exported. > For example: > static > DEFUN ("subrp", Fsubrp, Ssubrp, 1, 1, 0, > doc: /* Return t if OBJECT is a built-in function. */) > (Lisp_Object object) > { > if (SUBRP (object)) > return Qt; > return Qnil; > } > This works too. Would it be OK? No, this is going in the wrong direction. What we want instead is to extend make-docfile so that the DEFUNs, DEFSYMs (and any other similar thing we may have) automatically create a global foo.h file which declares all those objects, which are global anyway (because they're global on the Lisp side). I.e. we want to make all those C-and-Lisp objects even less static than they are now. We recently did that for DEFVARs and that was a very good change. Stefan