Hello,
I start planner with (plan) in my init file like every body
i think.
The problem is when emacs crash or i forget to close my emacs session
before logging out or halting my computer, #xxxx.muse# backup files are
generated.
When i start emacs again with (plan) the day page is open and i can't
recover this file(s).
The only way i found is starting planner with this function:
(defun tv-planner-safe-start ()
(interactive)
(if (= (length (file-expand-wildcards "~/plans/#*#" nil)) 0)
(plan)
(set-buffer (get-buffer-create "*Planner-Warning*"))
(erase-buffer) (insert "=====*Planner Warning*=====\n\n")
(text-mode)
(insert "Planner have backup files in ~/plans\n"
"Consider recovering planner backup files until starting planner
again!")
(display-buffer "*Planner-Warning*")))
(tv-planner-safe-start)
With that planner don't start if #files.muse# are found in "~/plans/"
I can recover my files and start planner again with the files restored.
Did i miss something in emacs and/or planner config that is better than
that ?
--
A + Thierry
Pub key: http://pgp.mit.edu
_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss