From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Francesco Pizzolante" Subject: [PATCH] Avoid all modification hooks in org-unmodified Date: Wed, 30 Jan 2013 16:59:51 +0100 Message-ID: <87y5fafyq0.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: mailing-list-org-mode Hello, 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. Regards, Francesco >From 173526db9d9b925e9eb568a725647e4065f0e27c Mon Sep 17 00:00:00 2001 From: Francesco Pizzolante Date: Wed, 30 Jan 2013 16:09:22 +0100 Subject: [PATCH] Avoid all modification hooks in org-unmodified * org-macs.el (org-unmodified): Avoid all modification hooks in org-unmodified TINYCHANGE --- lisp/org-macs.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index a44bdbe..ceee306 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -93,7 +93,7 @@ Also, do not record undo information." `(set-buffer-modified-p (prog1 (buffer-modified-p) (let ((buffer-undo-list t) - before-change-functions after-change-functions) + (inhibit-modification-hooks t)) ,@body)))) (def-edebug-spec org-unmodified (body)) -- 1.7.9