From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] Avoid all modification hooks in org-unmodified Date: Wed, 30 Jan 2013 17:54:59 +0100 Message-ID: <87r4l28vbw.fsf@bzg.ath.cx> References: <87y5fafyq0.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0awU-0006kl-OB for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 11:55:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0awT-0007vU-IM for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 11:55:22 -0500 Received: from plane.gmane.org ([80.91.229.3]:48620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0awT-0007vL-Bv for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 11:55:21 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U0awd-0000p0-Kl for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 17:55:31 +0100 In-Reply-To: <87y5fafyq0.fsf@somewhere.org> (Francesco Pizzolante's message of "Wed, 30 Jan 2013 16:59:51 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Francesco Pizzolante Cc: mailing-list-org-mode Hi Francesco, "Francesco Pizzolante" writes: > I've changed org-unmodified in order to avoid all modification hooks to be > called (not only before-change-functions and after-change-functions, but also > first-change-hook). > > I've used inhibit-modification-hooks as described here: > http://www.gnu.org/software/emacs/manual/html_node/elisp/Change-Hooks.html > > In my case, this positively impacts the loading of the agenda. This is great. It's not only more efficient but also more consistent. Thanks a lot for joining the "agenda optimization gang" with such a contribution! I applied your patch, with a tiny change in the ChangeLog. -- Bastien