emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] planner/muse update speed


From: Jim Ottaway
Subject: Re: [emacs-wiki-discuss] planner/muse update speed
Date: Tue, 10 Jan 2006 10:41:58 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> Joseph Kiniry <address@hidden> writes:

> Hi all,
> I am an old-school, multi-year planner/wiki/and now muse user.  I
> have many years of logs, thousands of old tasks, etc.  The new muse
> foundations are lovely and most things are working very well.

> The one thing that is not working well is rendering updates when
> tasks are added or changed.  In particular, it seems that every page
> that is cross-referenced in a given page is re-fontified, even if it
> has not been changed.  This means that, particularly for my daily
> pages which typically have several dozen open tasks cross-referenced
> across a dozen or two pages, adding a single task and waiting for the
> fontification update takes a significant period of time even on my
> 5GHz box. :)  Any chance that we can only re-render the specific
> pages that have been touched?

This patch seems to do the job: I think the font-locking only happens
when a new file is opened and planner-mode explicitly calls the buffer
highlighting function.

Regards,

-- 
Jim Ottaway

--- orig/planner.el
+++ mod/planner.el
@@ -821,7 +821,8 @@
 (defmacro with-planner-update-setup (&rest body)
   "Execute BODY then save buffers according to `planner-tasks-file-behavior'.
 Also sets some variables to modify font-lock behaviour while updating."
-  (let ((live-buffers (make-symbol "live-buffers")))
+  (let ((muse-mode-highlight-p nil)
+        (live-buffers (make-symbol "live-buffers")))
     `(save-window-excursion
        (save-excursion
          (save-restriction





reply via email to

[Prev in Thread] Current Thread [Next in Thread]