* [PATCH] Avoid all modification hooks in org-unmodified
@ 2013-01-30 15:59 Francesco Pizzolante
2013-01-30 16:54 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Francesco Pizzolante @ 2013-01-30 15:59 UTC (permalink / raw)
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 <fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-31 9:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-30 15:59 [PATCH] Avoid all modification hooks in org-unmodified Francesco Pizzolante
2013-01-30 16:54 ` Bastien
[not found] ` <87r4l28vbw.fsf-E3UqQZAQFPqWIDz0JBNUog@public.gmane.org>
2013-01-31 9:00 ` Francesco Pizzolante
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).