From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard G Riley Subject: Re: open at category bug? Date: Thu, 20 Mar 2008 11:07:28 +0100 Message-ID: References: <01FC92ED-68B8-46C9-9467-E82C48DCB7E3@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JcHgL-00043p-QP for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 06:07:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JcHgL-000435-4g for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 06:07:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcHgK-00042v-LR for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 06:07:32 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JcHgK-0003Z0-3I for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 06:07:32 -0400 Received: by fg-out-1718.google.com with SMTP id d23so859490fga.30 for ; Thu, 20 Mar 2008 03:07:31 -0700 (PDT) In-Reply-To: <01FC92ED-68B8-46C9-9467-E82C48DCB7E3@science.uva.nl> (Carsten Dominik's message of "Thu, 20 Mar 2008 10:57:50 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: org-mode , Richard G Riley Carsten Dominik 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