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: Joseph Kiniry
Subject: Re: [emacs-wiki-discuss] planner/muse update speed
Date: Tue, 10 Jan 2006 17:56:40 +0000

Hi Jim,

I see no change in behavior with this small patch.

E.g., if I go to a given day my moving to a calendar day (I link calendar to planner) I still see "Highlighting buffer...." messages for every muse buffer mentioned in the day page regardless of whether or not that page is actually loaded into emacs. On my current day page this takes nearly 30 seconds. It seems the pages are loaded, highlighted, then saved, even though nothing was touched.

Joe

On 10 Jan, 2006, at 10:41, Jim Ottaway wrote:

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



_______________________________________________
emacs-wiki-discuss mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss





reply via email to

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