emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* open at category bug?
@ 2008-03-19 15:24 Richard G Riley
  2008-03-20  9:57 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Richard G Riley @ 2008-03-19 15:24 UTC (permalink / raw)
  To: org-mode


Version 5.23a

When I try to open at a certain category

C-u C-M-r (prefix org-remember)

then I get

,----
| Select template: [t] [n] [f] [l] [d] [e] [v] [R] [b] [s] [w] [r] [j] [L] [x]
| org-go-to-remember-target: Target headline not found: Emacs
`----

the first time IF I havent brought up the agenda first - my files are in
non default locations. If I bring up the agenda first then there are no
problems.

,----
|  (setq org-agenda-files (quote ("~/.emacs.d/.org-files")))
|  (setq org-default-notes-file "~/.emacs.d/.org-files/notes.org")

*snip*

| 
|  (setq org-remember-templates
|    (quote (
| 	   (?t "* TODO %?\n  %u\n %i\n %a\n" "todo.org" "Tasks")
|            (?n "* %U %?" "notes.org" "Notes")
|            (?f "* %U %^{Title}\n %i\n %a\n" "todo.org" "FaceBook")
|            (?l "* %U %^{Title}\n %i\n %a\n" "todo.org" "Linux")
|            (?d "* %U %^{Title}\n %i\n %a\n" "todo.org" "Debian")
|            (?e "* %U %^{Title}\n %i\n %a\n" "todo.org" "Emacs")
|            (?v "* %U %^{Title}\n %i\n %a\n" "vocab.org" "Vocab")
|            (?R "* %U %^{Title}\n %i\n %a\n" "register.org" "Register")
|            (?b "* %U %^{Title}\n %i\n %a\n" "blog.org" "Blog")
|            (?w "* %U %^{Title}\n %i\n %a\n" "webs.org" "Webs")
|            (?r "* %U %^{Title}\n %i\n %a\n" "todo.org" "Remember")
| 	   (?j "* %U %^{Title}\n %i\n %a\n" "todo.org" "Journal")
| 	   (?L "* %U %^{Title}\n %i\n %a\n" "todo.org" "Links")
| 	   (?x "* %^{Title}\n %i\n %a\n" "todo.org" "Links")
| 	   )
| 	  )
|    )
| 
| (add-hook 'remember-mode-hook 'org-remember-apply-template)
|  (define-key global-map [(control meta ?r)] 'org-remember)
`----

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

* Re: open at category bug?
  2008-03-19 15:24 open at category bug? Richard G Riley
@ 2008-03-20  9:57 ` Carsten Dominik
  2008-03-20 10:07   ` Richard G Riley
  0 siblings, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2008-03-20  9:57 UTC (permalink / raw)
  To: Richard G Riley; +Cc: org-mode

If your files are in non-default locations, how is org-mode supposed  
to find "todo.org" etc?
I guess it would be better fo give absolute file paths in org-remember- 
templates.

Your trick of bringing up the agenda only woks by chance, if you are  
luck to be
in the right directory with Emacs.

- Carsten

On Mar 19, 2008, at 4:24 PM, Richard G Riley wrote:

>
> Version 5.23a
>
> When I try to open at a certain category
>
> C-u C-M-r (prefix org-remember)
>
> then I get
>
> ,----
> | Select template: [t] [n] [f] [l] [d] [e] [v] [R] [b] [s] [w] [r]  
> [j] [L] [x]
> | org-go-to-remember-target: Target headline not found: Emacs
> `----
>
> the first time IF I havent brought up the agenda first - my files  
> are in
> non default locations. If I bring up the agenda first then there are  
> no
> problems.
>
> ,----
> |  (setq org-agenda-files (quote ("~/.emacs.d/.org-files")))
> |  (setq org-default-notes-file "~/.emacs.d/.org-files/notes.org")
>
> *snip*
>
> |
> |  (setq org-remember-templates
> |    (quote (
> | 	   (?t "* TODO %?\n  %u\n %i\n %a\n" "todo.org" "Tasks")
> |            (?n "* %U %?" "notes.org" "Notes")
> |            (?f "* %U %^{Title}\n %i\n %a\n" "todo.org" "FaceBook")
> |            (?l "* %U %^{Title}\n %i\n %a\n" "todo.org" "Linux")
> |            (?d "* %U %^{Title}\n %i\n %a\n" "todo.org" "Debian")
> |            (?e "* %U %^{Title}\n %i\n %a\n" "todo.org" "Emacs")
> |            (?v "* %U %^{Title}\n %i\n %a\n" "vocab.org" "Vocab")
> |            (?R "* %U %^{Title}\n %i\n %a\n" "register.org"  
> "Register")
> |            (?b "* %U %^{Title}\n %i\n %a\n" "blog.org" "Blog")
> |            (?w "* %U %^{Title}\n %i\n %a\n" "webs.org" "Webs")
> |            (?r "* %U %^{Title}\n %i\n %a\n" "todo.org" "Remember")
> | 	   (?j "* %U %^{Title}\n %i\n %a\n" "todo.org" "Journal")
> | 	   (?L "* %U %^{Title}\n %i\n %a\n" "todo.org" "Links")
> | 	   (?x "* %^{Title}\n %i\n %a\n" "todo.org" "Links")
> | 	   )
> | 	  )
> |    )
> |
> | (add-hook 'remember-mode-hook 'org-remember-apply-template)
> |  (define-key global-map [(control meta ?r)] 'org-remember)
> `----
>
>
>
>
>
>
> _______________________________________________
> 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] 4+ messages in thread

* Re: open at category bug?
  2008-03-20  9:57 ` Carsten Dominik
@ 2008-03-20 10:07   ` Richard G Riley
  2008-03-20 12:37     ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Richard G Riley @ 2008-03-20 10:07 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: org-mode, Richard G Riley


Carsten Dominik <dominik@science.uva.nl> writes:

> If your files are in non-default locations, how is org-mode supposed
> to find "todo.org" etc?

Well the agenda does since it has a "org-agenda-files" variable (see
code snip below) - can org-mode not use something similar if not the
same? Similar to (setq gnus-home-directory "~/.emacs.d") any functions should
assume, if they are not fully qualified, that all files are below a

org-files-home-directory

or similar, I think. hard coding the full path in each
org-remember-template is not very tidy I find and I certainly avoid it
whenever I can.


> I guess it would be better fo give absolute file paths in
> org-remember-
> templates.
>
> Your trick of bringing up the agenda only woks by chance, if you are
> luck to be
> in the right directory with Emacs.
>
> - Carsten
>
> On Mar 19, 2008, at 4:24 PM, Richard G Riley wrote:
>
>>
>> Version 5.23a
>>
>> When I try to open at a certain category
>>
>> C-u C-M-r (prefix org-remember)
>>
>> then I get
>>
>> ,----
>> | Select template: [t] [n] [f] [l] [d] [e] [v] [R] [b] [s] [w] [r]
>> [j] [L] [x]
>> | org-go-to-remember-target: Target headline not found: Emacs
>> `----
>>
>> the first time IF I havent brought up the agenda first - my files
>> are in
>> non default locations. If I bring up the agenda first then there are
>> no
>> problems.
>>
>> ,----
>> |  (setq org-agenda-files (quote ("~/.emacs.d/.org-files")))
>> |  (setq org-default-notes-file "~/.emacs.d/.org-files/notes.org")
>>
>> *snip*
>>
>> |
>> |  (setq org-remember-templates
>> |    (quote (
>> | 	   (?t "* TODO %?\n  %u\n %i\n %a\n" "todo.org" "Tasks")
>> |            (?n "* %U %?" "notes.org" "Notes")
>> |            (?f "* %U %^{Title}\n %i\n %a\n" "todo.org" "FaceBook")
>> |            (?l "* %U %^{Title}\n %i\n %a\n" "todo.org" "Linux")
>> |            (?d "* %U %^{Title}\n %i\n %a\n" "todo.org" "Debian")
>> |            (?e "* %U %^{Title}\n %i\n %a\n" "todo.org" "Emacs")
>> |            (?v "* %U %^{Title}\n %i\n %a\n" "vocab.org" "Vocab")
>> |            (?R "* %U %^{Title}\n %i\n %a\n" "register.org"
>> "Register")
>> |            (?b "* %U %^{Title}\n %i\n %a\n" "blog.org" "Blog")
>> |            (?w "* %U %^{Title}\n %i\n %a\n" "webs.org" "Webs")
>> |            (?r "* %U %^{Title}\n %i\n %a\n" "todo.org" "Remember")
>> | 	   (?j "* %U %^{Title}\n %i\n %a\n" "todo.org" "Journal")
>> | 	   (?L "* %U %^{Title}\n %i\n %a\n" "todo.org" "Links")
>> | 	   (?x "* %^{Title}\n %i\n %a\n" "todo.org" "Links")
>> | 	   )
>> | 	  )
>> |    )
>> |
>> | (add-hook 'remember-mode-hook 'org-remember-apply-template)
>> |  (define-key global-map [(control meta ?r)] 'org-remember)
>> `----
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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] 4+ messages in thread

* Re: open at category bug?
  2008-03-20 10:07   ` Richard G Riley
@ 2008-03-20 12:37     ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2008-03-20 12:37 UTC (permalink / raw)
  To: Richard G Riley; +Cc: org-mode


On Mar 20, 2008, at 11:07 AM, Richard G Riley wrote:

>
> Carsten Dominik <dominik@science.uva.nl> writes:
>
>> If your files are in non-default locations, how is org-mode supposed
>> to find "todo.org" etc?
>
> Well the agenda does since it has a "org-agenda-files" variable (see
> code snip below) - can org-mode not use something similar if not the
> same? Similar to (setq gnus-home-directory "~/.emacs.d") any  
> functions should
> assume, if they are not fully qualified, that all files are below a
>
> org-files-home-directory
>
> or similar, I think. hard coding the full path in each
> org-remember-template is not very tidy I find and I certainly avoid it
> whenever I can.


Hmm, well, ok, why not.

I fixed this, they are now interpreted relative to the value of the  
variable `org-directory'.

Thanks!

- Carsten

>
>
>
>> I guess it would be better fo give absolute file paths in
>> org-remember-
>> templates.
>>
>> Your trick of bringing up the agenda only woks by chance, if you are
>> luck to be
>> in the right directory with Emacs.
>>
>> - Carsten
>>
>> On Mar 19, 2008, at 4:24 PM, Richard G Riley wrote:
>>
>>>
>>> Version 5.23a
>>>
>>> When I try to open at a certain category
>>>
>>> C-u C-M-r (prefix org-remember)
>>>
>>> then I get
>>>
>>> ,----
>>> | Select template: [t] [n] [f] [l] [d] [e] [v] [R] [b] [s] [w] [r]
>>> [j] [L] [x]
>>> | org-go-to-remember-target: Target headline not found: Emacs
>>> `----
>>>
>>> the first time IF I havent brought up the agenda first - my files
>>> are in
>>> non default locations. If I bring up the agenda first then there are
>>> no
>>> problems.
>>>
>>> ,----
>>> |  (setq org-agenda-files (quote ("~/.emacs.d/.org-files")))
>>> |  (setq org-default-notes-file "~/.emacs.d/.org-files/notes.org")
>>>
>>> *snip*
>>>
>>> |
>>> |  (setq org-remember-templates
>>> |    (quote (
>>> | 	   (?t "* TODO %?\n  %u\n %i\n %a\n" "todo.org" "Tasks")
>>> |            (?n "* %U %?" "notes.org" "Notes")
>>> |            (?f "* %U %^{Title}\n %i\n %a\n" "todo.org" "FaceBook")
>>> |            (?l "* %U %^{Title}\n %i\n %a\n" "todo.org" "Linux")
>>> |            (?d "* %U %^{Title}\n %i\n %a\n" "todo.org" "Debian")
>>> |            (?e "* %U %^{Title}\n %i\n %a\n" "todo.org" "Emacs")
>>> |            (?v "* %U %^{Title}\n %i\n %a\n" "vocab.org" "Vocab")
>>> |            (?R "* %U %^{Title}\n %i\n %a\n" "register.org"
>>> "Register")
>>> |            (?b "* %U %^{Title}\n %i\n %a\n" "blog.org" "Blog")
>>> |            (?w "* %U %^{Title}\n %i\n %a\n" "webs.org" "Webs")
>>> |            (?r "* %U %^{Title}\n %i\n %a\n" "todo.org" "Remember")
>>> | 	   (?j "* %U %^{Title}\n %i\n %a\n" "todo.org" "Journal")
>>> | 	   (?L "* %U %^{Title}\n %i\n %a\n" "todo.org" "Links")
>>> | 	   (?x "* %^{Title}\n %i\n %a\n" "todo.org" "Links")
>>> | 	   )
>>> | 	  )
>>> |    )
>>> |
>>> | (add-hook 'remember-mode-hook 'org-remember-apply-template)
>>> |  (define-key global-map [(control meta ?r)] 'org-remember)
>>> `----
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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] 4+ messages in thread

end of thread, other threads:[~2008-03-20 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 15:24 open at category bug? Richard G Riley
2008-03-20  9:57 ` Carsten Dominik
2008-03-20 10:07   ` Richard G Riley
2008-03-20 12:37     ` 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).