From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Wed, 11 Feb 2015 05:26:12 -0800 Organization: UCLA Computer Science Department Message-ID: <54DB5874.1000402@cs.ucla.edu> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423661198 17849 80.91.229.3 (11 Feb 2015 13:26:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2015 13:26:38 +0000 (UTC) Cc: Stephen Leake , Emacs development discussions To: =?UTF-8?B?QXVyw6lsaWVuIEFwdGVs?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 11 14:26:31 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 1YLXJG-00063Z-UE for ged-emacs-devel@m.gmane.org; Wed, 11 Feb 2015 14:26:31 +0100 Original-Received: from localhost ([::1]:45039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLXJG-0007cy-9m for ged-emacs-devel@m.gmane.org; Wed, 11 Feb 2015 08:26:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLXJD-0007cq-Ox for emacs-devel@gnu.org; Wed, 11 Feb 2015 08:26:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLXJ9-00071R-Oa for emacs-devel@gnu.org; Wed, 11 Feb 2015 08:26:27 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:44738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLXJ9-00070U-Gu for emacs-devel@gnu.org; Wed, 11 Feb 2015 08:26:23 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6B741A6002B; Wed, 11 Feb 2015 05:26:16 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ppQt8agV6THj; Wed, 11 Feb 2015 05:26:16 -0800 (PST) Original-Received: from [192.168.1.9] (pool-173-55-11-52.lsanca.fios.verizon.net [173.55.11.52]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 25B4EA60021; Wed, 11 Feb 2015 05:26:16 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 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:182879 Archived-At: Aur=C3=A9lien Aptel wrote: > disabling it for modules might be a solution? Yes, that's the idea. A kludgey way to do that right now is to have your = module=20 do this: #include #undef Qfoo #undef Qbar ... with an #undef for every Qfoo symbol your code uses either directly or=20 indirectly via macros or inline functions. Obviously we need something b= etter=20 than that, namely, we modify make-docfile.c so that instead of generating= this: #define Qfoo builtin_lisp_symbol (iQfoo) it generates this: #ifndef EMACS_MODULE # define Qfoo builtin_lisp_symbol (iQfoo) #endif (and similarly for Qbar, etc.), and then you start your module this way: #define EMACS_MODULE #include or better, we package up an file the way Stefan suggested.