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: [Emacs-diffs] master 51e7e46: Font-lock elisp macros/special forms dynamically Date: Sun, 15 Mar 2015 23:07:02 -0400 Message-ID: References: <20150315082509.21193.18465@vcs.savannah.gnu.org> <55054CE9.6010702@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426475256 28848 80.91.229.3 (16 Mar 2015 03:07:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 03:07:36 +0000 (UTC) Cc: Daniel Colascione , emacs-devel , Tassilo Horn To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 16 04:07:27 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 1YXLNG-0006FY-0u for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 04:07:26 +0100 Original-Received: from localhost ([::1]:46869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXLNE-0000KY-UI for ged-emacs-devel@m.gmane.org; Sun, 15 Mar 2015 23:07:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXLN1-0000KQ-R6 for emacs-devel@gnu.org; Sun, 15 Mar 2015 23:07:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXLN1-0006sW-0I for emacs-devel@gnu.org; Sun, 15 Mar 2015 23:07:11 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:54080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXLMw-0006rO-G3; Sun, 15 Mar 2015 23:07:06 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t2G373bK028351; Sun, 15 Mar 2015 23:07:03 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 5DC94AE0BA; Sun, 15 Mar 2015 23:07:02 -0400 (EDT) In-Reply-To: (Artur Malabarba's message of "Sun, 15 Mar 2015 22:35:03 -0300") 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 RV5246=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5246> : inlines <2420> : streams <1406167> : uri <1881453> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:183890 Archived-At: > Finally, I'm positively surprised at how fast the update function is. > I would have expected some lag, but haven't found any (even though I'm > looking). Loading Elisp files should be fairly rare. But there might be cases where it can be done repeatedly, but if/when faced with such a situation we should be able to handle it efficiently e.g. by checking the load-history (make sure the file did include some definitions before we bother to scan symbols and rebuild the regexp) since such "run-time loading" probably won't define new functions. Stefan