* org 4.54 bug with remember?
@ 2006-11-15 9:47 Giovanni Ridolfi
2006-11-15 10:24 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Giovanni Ridolfi @ 2006-11-15 9:47 UTC (permalink / raw)
To: emacs-orgmode
I think I found a bug in
org-version is "4.54"
emacs-version is "22.0.90.1"
remember-version is "1.9"
When I try to write a note using remember
I get this message in *Message* buffer:
..............................................................
org-remember-handler: Wrong type argument: stringp, nil
OVERVIEW
run-hooks: Symbol's function definition is void: turn-font-lock
............................................................
This is my .emacs:
-----------------------.emacs----------
(setq org-directory "~/Plans/")
(setq org-default-notes-file "~/Plans/.notes")
(setq remember-annotation-functions '(org-remember-annotation))
(setq remember-handler-functions '(org-remember-handler))
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(setq org-remember-templates
'((?t "* TODO %?\n %i\n %a" "~/Plan/TO-be-done.org")
(?j "* %U %?\n\n %i\n %a" "~/Plan/JOURNAL.org")))
---------------
The file in my ~/ is a symlink:
.notes -> ~/Plans/.notes
However if I comment the lines that sets the variable
remember-handler-functions *and* the
add-hook command
everything works.
If I uncomment the variable line then I can write the note, but
I can't save it. When I press C-c C-c
In the buffer I get
File name [~/Plans/.notes]: ~/Plans/
if I press <RET> : I get the error:
...............................................
OVERVIEW
run-hooks: Symbol's function definition is void: turn-font-lock
..............................................................
if I write ".notes": I get the error
File name [~/Plans/.notes]: ~/Plans/.notes
.............................................................
OVERVIEW
run-hooks: Symbol's function definition is void: turn-font-lock
................................................................
If I comment only the line setting the remember-handler-functions
and uncomment the hook line
I can choose the template, write the note, but I can't save:
..........................................
template: t j
run-hooks: Symbol's function definition is void: turn-font-lock
org-ctrl-c-ctrl-c: C-c C-c can do nothing useful at this location.
run-hooks: Symbol's function definition is void: turn-font-lock
...................................................
I hope I sumbitted enough information
cheers,
Giovanni
--
Giovanni Ridolfi, Chemist
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org 4.54 bug with remember?
2006-11-15 9:47 org 4.54 bug with remember? Giovanni Ridolfi
@ 2006-11-15 10:24 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2006-11-15 10:24 UTC (permalink / raw)
To: Giovanni Ridolfi; +Cc: emacs-orgmode
I would guess that somewhere in your setup you are adding the function
`turn-font-lock' to a mode hook when you really should be adding
`turn-on-font-lock'. This may be org-mode or text-mode or some other
related mode.
This may not be all of the problem, but likely a part of it. Get back
to us when you have fixed this part.
- Carsten
On Nov 15, 2006, at 10:47, Giovanni Ridolfi wrote:
> I think I found a bug in
>
> org-version is "4.54"
>
> emacs-version is "22.0.90.1"
> remember-version is "1.9"
>
> When I try to write a note using remember
> I get this message in *Message* buffer:
> ..............................................................
> org-remember-handler: Wrong type argument: stringp, nil
> OVERVIEW
> run-hooks: Symbol's function definition is void: turn-font-lock
> ............................................................
>
> This is my .emacs:
> -----------------------.emacs----------
> (setq org-directory "~/Plans/")
> (setq org-default-notes-file "~/Plans/.notes")
> (setq remember-annotation-functions '(org-remember-annotation))
> (setq remember-handler-functions '(org-remember-handler))
> (add-hook 'remember-mode-hook 'org-remember-apply-template)
>
> (setq org-remember-templates
> '((?t "* TODO %?\n %i\n %a" "~/Plan/TO-be-done.org")
> (?j "* %U %?\n\n %i\n %a" "~/Plan/JOURNAL.org")))
> ---------------
>
> The file in my ~/ is a symlink:
> .notes -> ~/Plans/.notes
>
> However if I comment the lines that sets the variable
> remember-handler-functions *and* the
> add-hook command
>
> everything works.
>
> If I uncomment the variable line then I can write the note, but
> I can't save it. When I press C-c C-c
> In the buffer I get
> File name [~/Plans/.notes]: ~/Plans/
> if I press <RET> : I get the error:
> ...............................................
> OVERVIEW
> run-hooks: Symbol's function definition is void: turn-font-lock
> ..............................................................
> if I write ".notes": I get the error
> File name [~/Plans/.notes]: ~/Plans/.notes
> .............................................................
> OVERVIEW
> run-hooks: Symbol's function definition is void: turn-font-lock
> ................................................................
>
> If I comment only the line setting the remember-handler-functions
> and uncomment the hook line
>
> I can choose the template, write the note, but I can't save:
> ..........................................
> template: t j
> run-hooks: Symbol's function definition is void: turn-font-lock
> org-ctrl-c-ctrl-c: C-c C-c can do nothing useful at this location.
> run-hooks: Symbol's function definition is void: turn-font-lock
> ...................................................
>
> I hope I sumbitted enough information
>
> cheers,
>
> Giovanni
> --
> Giovanni Ridolfi, Chemist
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-15 10:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-15 9:47 org 4.54 bug with remember? Giovanni Ridolfi
2006-11-15 10:24 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).