emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* error in org-remember
@ 2009-09-16 14:43 Xin Shi
  2009-09-16 15:14 ` Xin Shi
  2009-09-18 13:17 ` problem with org-remember invoked from agenda view Eric S Fraga
  0 siblings, 2 replies; 7+ messages in thread
From: Xin Shi @ 2009-09-16 14:43 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 602 bytes --]

Hello Experts,

I recently update my Emacs to 23.1 and the org-mode to 6.30e.  Then I
noticed my org-remember is not working. When I type C-c C-c, I got the
following error:

"Target files for notes must be in Org-mode if not filing to top/bottom"

My settings are:

(org-remember-insinuate)
(setq sx-notes-file-name "~/.notes.org")
(setq sx-journal-file-name "~/.journal.org")
(setq org-remember-templates
      '(
        ("Journal" ?j "* %U %?\n\n  %i\n  %a" sx-journal-file-name)
        ("Notes" ?n "* %^{Title}\n  %i\n  %a" sx-notes-file-name "Notes")
    )
      )
Any suggestions?

Thanks!
Xin

[-- Attachment #1.2: Type: text/html, Size: 827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: error in org-remember
  2009-09-16 14:43 error in org-remember Xin Shi
@ 2009-09-16 15:14 ` Xin Shi
  2009-09-16 15:35   ` Nick Dokos
  2009-09-18 13:17 ` problem with org-remember invoked from agenda view Eric S Fraga
  1 sibling, 1 reply; 7+ messages in thread
From: Xin Shi @ 2009-09-16 15:14 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 966 bytes --]

I solved the problem by using the file name directly:

(setq org-remember-templates
      '(
        ("Journal" ?j "* %U %?\n\n  %i\n  %a" "~/.journal.org")
        ("Notes" ?n "* %^{Title}\n  %i\n  %a" "~/.notes.org" "Notes")
    )
      )

Xin

On Wed, Sep 16, 2009 at 10:43 AM, Xin Shi <shixin111@gmail.com> wrote:

> Hello Experts,
>
> I recently update my Emacs to 23.1 and the org-mode to 6.30e.  Then I
> noticed my org-remember is not working. When I type C-c C-c, I got the
> following error:
>
> "Target files for notes must be in Org-mode if not filing to top/bottom"
>
> My settings are:
>
> (org-remember-insinuate)
> (setq sx-notes-file-name "~/.notes.org")
> (setq sx-journal-file-name "~/.journal.org")
> (setq org-remember-templates
>       '(
>         ("Journal" ?j "* %U %?\n\n  %i\n  %a" sx-journal-file-name)
>         ("Notes" ?n "* %^{Title}\n  %i\n  %a" sx-notes-file-name "Notes")
>     )
>       )
> Any suggestions?
>
> Thanks!
> Xin
>
>

[-- Attachment #1.2: Type: text/html, Size: 1641 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: error in org-remember
  2009-09-16 15:14 ` Xin Shi
@ 2009-09-16 15:35   ` Nick Dokos
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Dokos @ 2009-09-16 15:35 UTC (permalink / raw)
  To: Xin Shi; +Cc: emacs-orgmode

Xin Shi <shixin111@gmail.com> wrote:

> On Wed, Sep 16, 2009 at 10:43 AM, Xin Shi <shixin111@gmail.com> wrote:
> 
> > ...
> > My settings are:
> >
> > (org-remember-insinuate)
> > (setq sx-notes-file-name "~/.notes.org")
> > (setq sx-journal-file-name "~/.journal.org")
> > (setq org-remember-templates
> >       '(
> >         ("Journal" ?j "* %U %?\n\n  %i\n  %a" sx-journal-file-name)
> >         ("Notes" ?n "* %^{Title}\n  %i\n  %a" sx-notes-file-name "Notes")
> >     )
> >       )
> > Any suggestions?
> >
> I solved the problem by using the file name directly:
> 
> (setq org-remember-templates
>       '(
>         ("Journal" ?j "* %U %?\n\n  %i\n  %a" "~/.journal.org")
>         ("Notes" ?n "* %^{Title}\n  %i\n  %a" "~/.notes.org" "Notes")
>     )
>       )

Alternatively, you can use the backquote mechanism in such situations - it
allows you to evaluate parts of a (back)quoted expression, by preceding them
with commas:

(setq sx-notes-file-name "~/.notes.org")
(setq sx-journal-file-name "~/.journal.org")
(setq org-remember-templates
      `(
        ("Journal" ?j "* %U %?\n\n  %i\n  %a" ,sx-journal-file-name)
        ("Notes" ?n "* %^{Title}\n  %i\n  %a" ,sx-notes-file-name "Notes")
       ))

See

  http://www.gnu.org/software/emacs/manual/html_node/elisp/Backquote.html#Backquote

for details.

HTH,
Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

* problem with org-remember invoked from agenda view
  2009-09-16 14:43 error in org-remember Xin Shi
  2009-09-16 15:14 ` Xin Shi
@ 2009-09-18 13:17 ` Eric S Fraga
  2009-09-18 15:05   ` Carsten Dominik
  1 sibling, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2009-09-18 13:17 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Using the latest (as of this morning in any case) org-mode, I get the
following error if I invoke org-remember (C-c r) from the agenda view:

--8<---------------cut here---------------start------------->8---
  signal(error ("Don't know what location to link to"))
  error("Don't know what location to link to")
  org-store-link(nil)
  org-remember-annotation()
  run-hook-with-args-until-success(org-remember-annotation)
  remember(nil)
  org-do-remember()
  org-remember(nil)
  call-interactively(org-remember nil nil)
--8<---------------cut here---------------end--------------->8---

This happens when the cursor in the agenda view is not on an actual
item, such as if you bring up the agenda initially and the cursor is
on the date line.

I can re-run with org-mode not compiled if necessary.

thanks,
eric

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with org-remember invoked from agenda view
  2009-09-18 13:17 ` problem with org-remember invoked from agenda view Eric S Fraga
@ 2009-09-18 15:05   ` Carsten Dominik
  2009-09-18 15:12     ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2009-09-18 15:05 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode

Fixed, thanks.

- Carsten

On Sep 18, 2009, at 2:17 PM, Eric S Fraga wrote:

> Hi,
>
> Using the latest (as of this morning in any case) org-mode, I get the
> following error if I invoke org-remember (C-c r) from the agenda view:
>
> --8<---------------cut here---------------start------------->8---
>  signal(error ("Don't know what location to link to"))
>  error("Don't know what location to link to")
>  org-store-link(nil)
>  org-remember-annotation()
>  run-hook-with-args-until-success(org-remember-annotation)
>  remember(nil)
>  org-do-remember()
>  org-remember(nil)
>  call-interactively(org-remember nil nil)
> --8<---------------cut here---------------end--------------->8---
>
> This happens when the cursor in the agenda view is not on an actual
> item, such as if you bring up the agenda initially and the cursor is
> on the date line.
>
> I can re-run with org-mode not compiled if necessary.
>
> thanks,
> eric
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with org-remember invoked from agenda view
  2009-09-18 15:05   ` Carsten Dominik
@ 2009-09-18 15:12     ` Eric S Fraga
  2009-09-18 17:01       ` Bernt Hansen
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2009-09-18 15:12 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

At Fri, 18 Sep 2009 16:05:30 +0100, Carsten Dominik wrote:
> 
> Fixed, thanks.

Thank *you*!  As always, incredible response.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with org-remember invoked from agenda view
  2009-09-18 15:12     ` Eric S Fraga
@ 2009-09-18 17:01       ` Bernt Hansen
  0 siblings, 0 replies; 7+ messages in thread
From: Bernt Hansen @ 2009-09-18 17:01 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode, Carsten Dominik

Eric S Fraga <ucecesf@ucl.ac.uk> writes:

> At Fri, 18 Sep 2009 16:05:30 +0100, Carsten Dominik wrote:
>> 
>> Fixed, thanks.
>
> Thank *you*!  As always, incredible response.

Okay... :)  Thanks Carsten!

* Bernt deletes his org-mode task: Remove error for remember at bottom
  of agenda

I guess I need to report bugs faster... I ran into this on Sep
15th... but haven't had time to look into it yet ... and now it's fixed.

So on that note I'll ship the others bug reports shortly once I verify
they still exist.

-Bernt

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-18 17:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-16 14:43 error in org-remember Xin Shi
2009-09-16 15:14 ` Xin Shi
2009-09-16 15:35   ` Nick Dokos
2009-09-18 13:17 ` problem with org-remember invoked from agenda view Eric S Fraga
2009-09-18 15:05   ` Carsten Dominik
2009-09-18 15:12     ` Eric S Fraga
2009-09-18 17:01       ` Bernt Hansen

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).