lilyphysik <[EMAIL PROTECTED]> writes:

> Hello,friends
> I found that the planner-mode conflict with f90-mode when outline-minor-mode 
> is used.when I open my .f90 file, the contents  in  my planner page can't be 
> folded,vice versa.I use emacs23,planner is latest. My configuration is,
> (add-hook 'planner-mode-hook
>       '(lambda()
>          (outline-minor-mode)
>          (setq outline-regexp "\\(\* Tasks\\|\* Schedule\\|\* 
> Accomplishments\\|\* Timeclock\\|\* Notes\\)")
>          (hide-sublevels 1)))
> (add-hook 'f90-mode-hook
>       '(lambda()
>         (outline-minor-mode)
>         (setq outline-regexp " 
> *\\(FUNCTION\\|SUBROUTINE\\|MODULE\\|PROGRAM\\)")
>          (hide-sublevels 1)))

I'd guess that the hooks are not being run when you think they are. They
are probably only run when you first enter that mode for that file, not
when you switch back and forth between the already-open files. You
probably need to redefine outline-regexp many times when you switch
between working on the different files. Maybe you could make
outline-regexp buffer-local?

-- 
John Sullivan
Emacs Planner Maintainer
http://www.wjsullivan.net/PlannerMode.html
GPG Key: AE8600B6

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

Reply via email to