From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: open at category bug? Date: Thu, 20 Mar 2008 13:37:44 +0100 Message-ID: References: <01FC92ED-68B8-46C9-9467-E82C48DCB7E3@science.uva.nl> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JcK1q-0002Je-MH for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 08:37:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JcK1n-0002JK-TN for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 08:37:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcK1n-0002JD-Ov for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 08:37:51 -0400 Received: from fg-out-1718.google.com ([72.14.220.158]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JcK1n-00072T-5i for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 08:37:51 -0400 Received: by fg-out-1718.google.com with SMTP id d23so903975fga.30 for ; Thu, 20 Mar 2008 05:37:50 -0700 (PDT) In-Reply-To: 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: Richard G Riley Cc: org-mode On Mar 20, 2008, at 11:07 AM, Richard G Riley wrote: > > 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. 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