From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel,gmane.emacs.diffs Subject: Re: [Emacs-diffs] master 51e7e46: Font-lock elisp macros/special forms dynamically Date: Mon, 16 Mar 2015 07:40:13 +0100 Message-ID: <87fv954f8y.fsf@gnu.org> References: <20150315082509.21193.18465@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426488154 17331 80.91.229.3 (16 Mar 2015 06:42:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 06:42:34 +0000 (UTC) Cc: emacs-diffs@gnu.org, emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 16 07:42:26 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 1YXOjH-00065g-To for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 07:42:24 +0100 Original-Received: from localhost ([::1]:47513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXOjH-0004YA-4X for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 02:42:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXOhF-00016N-Lz for emacs-devel@gnu.org; Mon, 16 Mar 2015 02:40:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXOhC-0005mR-Ge for emacs-devel@gnu.org; Mon, 16 Mar 2015 02:40:17 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:54434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXOhC-0005mK-AS; Mon, 16 Mar 2015 02:40:14 -0400 Original-Received: from thinkpad-t440p (dhcp132.uni-koblenz.de [141.26.71.132]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 9257B1A8456; Mon, 16 Mar 2015 07:40:13 +0100 (CET) Mail-Followup-To: Artur Malabarba , emacs-devel , emacs-diffs@gnu.org In-Reply-To: (Artur Malabarba's message of "Sun, 15 Mar 2015 15:09:24 +0000") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 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:183894 gmane.emacs.diffs:129462 Archived-At: Artur Malabarba writes: >> + (unless lisp--el-macro-regexp >> + (lisp--el-update-macro-regexp)) >> + (add-hook 'after-load-functions #'lisp--el-update-after-load) > > Maybe I'm reading this wrong, but is this being automatically added to > `after-load-functions'? Yes. > If so, I request we don't do that by default. I haven't tested it yet, > but I'm sure mapping over all atoms and flushing all elisp buffers is > bound to cause noticeable delays whenever a file is loaded. It only flushes elisp buffers in case the regexp actually changed. So if a file got loaded which doesn't define any new macros, no re-fontification will happen. Bye, Tassilo