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: Dynamic loading progress Date: Tue, 10 Feb 2015 20:45:03 -0500 Message-ID: References: <87y4t9m76w.fsf@lifelogs.com> <85k31coixa.fsf@stephe-leake.org> <85oapy5kt6.fsf@stephe-leake.org> <83y4oiiw81.fsf@gnu.org> <838ugdf251.fsf@gnu.org> <54D80098.3020209@cs.ucla.edu> <54D85304.1030600@cs.ucla.edu> <54D9AC29.2020603@cs.ucla.edu> <54DA8539.1020905@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423619147 7253 80.91.229.3 (11 Feb 2015 01:45:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2015 01:45:47 +0000 (UTC) Cc: =?windows-1252?Q?Aur=E9lien?= Aptel , Stephen Leake , Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 11 02:45:38 2015 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 1YLMMx-00015G-Qh for ged-emacs-devel@m.gmane.org; Wed, 11 Feb 2015 02:45:35 +0100 Original-Received: from localhost ([::1]:42695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLMMw-00087A-TI for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2015 20:45:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLMMf-000873-KT for emacs-devel@gnu.org; Tue, 10 Feb 2015 20:45:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLMMZ-0001hf-1G for emacs-devel@gnu.org; Tue, 10 Feb 2015 20:45:17 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:43904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLMMY-0001h6-RK for emacs-devel@gnu.org; Tue, 10 Feb 2015 20:45:10 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t1B1j2M6011090; Tue, 10 Feb 2015 20:45:02 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 60A80AE13C; Tue, 10 Feb 2015 20:45:03 -0500 (EST) In-Reply-To: <54DA8539.1020905@cs.ucla.edu> (Paul Eggert's message of "Tue, 10 Feb 2015 14:24:57 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.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 RV5213=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5213> : inlines <2107> : streams <1388197> : uri <1851878> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:182856 Archived-At: >> I think what this boils down to, is that we need a "emacs.h" or >> something like that which modules would include instead of including >> lisp.h. > Yes, I was thinking of something along those lines as well. "emacs.h" could, > for example, define a symbol EMACS_MODULE that is 1 (whereas it's 0 for core > Emacs code), and then globals.h could conditionally define Qxxx to be > something that's dynamically linkable but slower if EMACS_MODULE is 1, and > to be something that's not dynamically linkable but faster if EMACS_MODULE > is 0. I was thinking of making emacs.h a "real file" which would contain a subset of the current lisp.h and then lisp.h would #include it. Stefan