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

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

Re: [emacs-wiki-discuss] Planner Appt frozes Emacs?


From: Jim Ottaway
Subject: Re: [emacs-wiki-discuss] Planner Appt frozes Emacs?
Date: Fri, 25 Nov 2005 14:12:58 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> drkm  <address@hidden> writes:

>   Hi
>   I just added Planner Appt to be loaded when I load
> Planner.  But since, when I 'M-x plan', Emacs frozes ...
> Here is what I have in my ~/.emacs.el (related to Planner
> Appt):

>     (eval-after-load 'planner
>       '(progn
>          (require 'planner-appt)))

>     (eval-after-load 'planner-appt
>       '(progn
>          (planner-appt-use-tasks)
>          (planner-appt-insinuate)))

>   Here is the complete backtrace of the stack state at the
> moment when I press 'C-g' (when Emacs is frozen):

Yes.  I see that too, now that I try it.  It looks to be caused by
some new behaviour in planner-copy-or-move-region that leaves point
infinitely on a task that, because it is an appointment for yesterday,
planner-appt decides not to copy to today's page.

Here is a patch [I can't add it to my archive mirror because there are
some other changes to planner that I have made that might get mixed
in]: 

--- orig/planner-appt.el
+++ mod/planner-appt.el
@@ -1084,8 +1084,11 @@
             (if (planner-appt-task-nagging-p (planner-task-description info))
                 (progn (planner-edit-task-description (nth 0 appt))
                        ad-do-it)
-              (unless (and info time)
-                ad-do-it)))))))
+              (if (and info time)
+                   ;; Fri Nov 25 13:59:02 GMT 2005: Fix for new [?]
+                   ;; behaviour of planner-copy-or-move-region.
+                   (forward-line -1)
+                 ad-do-it)))))))
 
 ;; NB: this advice leads to two updates of the task appointment
 ;; section [when updating it is enabled, of course]: it is hard to see

Regards,
-- 
Jim Ottaway

reply via email to

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