Hi, all, 

`M-x plan', planner will create a buffer named, like "2006.07.27.muse",
fine. In that buffer, if i turn on view-mode(or some other mode that
will make buffer readonly), and try `M-x plan' again, then it'll prompt
"buffer readonly", at the same time the buffer is marked readonly &
modified, and causes some problems !  (i notice some unfinished tasks
lost if i try to save the buffer manually.) So i infer that `M-x plan'
would write to that buffer each time being called, i think it's
appropriate to turn off buffer-read-only itself at some point instead of
annoying users. I myself ended up advising `plan' to solve the problem
(also make buffer fill its frame),

(defadvice plan (around writable-and-fill)
  "Make buffer writable and fill its frame."
  (let ((inhibit-read-only t))
    ad-do-it
    (delete-other-windows)))

(ad-activate 'plan)

What do you think?

-- 
William

Man is the only animal that laughs and weeps; for he is the only animal
that is struck with the difference between what things are and what they
ought to be.
                -- William Hazlitt

_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to