From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Elston Subject: Re: Problem with org-remember Date: Mon, 19 Jan 2009 13:19:36 -0800 Message-ID: <4974EE68.60303@advantest-ard.com> References: <4974DEFF.9060402@advantest-ard.com> <8222.1232396549@alphaville.usa.hp.com> <4974E375.5080108@advantest-ard.com> <9099.1232399183@alphaville.usa.hp.com> Reply-To: m.elston@advantest-ard.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LP1X0-0006pD-Hp for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 16:19:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LP1Wz-0006oj-QX for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 16:19:37 -0500 Received: from [199.232.76.173] (port=47552 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LP1Wz-0006oe-Dh for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 16:19:37 -0500 Received: from [192.84.20.196] (port=3455 helo=mailhub.ardeng.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LP1Wy-0002Cu-UA for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 16:19:37 -0500 In-Reply-To: <9099.1232399183@alphaville.usa.hp.com> 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: nicholas.dokos@hp.com Cc: Org Mode List Nick, I got it working. As I was looking at my .emacs I noticed that I had commented out the line: (org-remember-insinuate) Once I uncommented this line it worked as expected. I see that this function does largely what yours does. And, yes, I see the mention of org-install in sec 1.2. I had a mixture of docs I was working with originally and missed that line in the new docs... Mark * Nick Dokos wrote (on 1/19/2009 1:06 PM): > Mark Elston wrote: > >> Nick, >> >> It helps with the first problem, the autoload problem. I didn't see >> this in the manual anywhere. >> > It's mentioned in the Installation section (sec. 1.2). > >> However, while it brings up a *Remember* window it doesn't populate >> it with any of the templates I have set up (basically I copied what was >> in the texinfo doc). And when I write something in it and hit >> C-cC-c I get an error: >> >> Debugger entered--Lisp error: (error "The mark is not set now, so >> there is no region") >> call-interactively(comment-region) >> >> This is not what I expected from the docs. >> > > You probably want to set debug-on-error to t and try it again. You should > get a backtrace that will tell more of the story. > > However, you might want to give the following a try: it's a > stripped-down version of my org initialization. Can you try it after > changing the paths? > > ------------------------------------------------------------------------------------- > ;; change the path appropriately. > (add-to-list 'load-path (expand-file-name "~/src/emacs/org/git/org-mode/lisp")) > > (require 'org-install) > > ;;; org mode > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > (define-key global-map "\C-cl" 'org-store-link) > (define-key mode-specific-map [?a] 'org-agenda) > > ;;; remember > ;; change the path appropriately > (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/remember") > (require 'remember) > (add-hook 'remember-mode-hook 'org-remember-apply-template) > > (setq org-remember-templates > '(("Todo" ?t "* TODO %?\n %i\n %a" "~/org/TODO.org" "Tasks") > ("Journal" ?j "* %U %?\n\n %i\n %a" "~/org/JOURNAL.org") > ("Idea" ?i "* %^{Title}\n %i\n %a" "~/org/JOURNAL.org" "New Ideas"))) > ------------------------------------------------------------------------------------- > > > > >