From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam K M Subject: Re: org-default-notes-file Date: Mon, 18 Oct 2010 14:39:29 +0530 Message-ID: <87tykjooja.fsf@noorul.maa.corp.collab.net> References: <4CBBEC97.5000402@dayspringpublisher.com> <878w1wotrh.fsf@noorul.maa.corp.collab.net> <4CBC0BC1.40304@dayspringpublisher.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=56848 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7lkZ-00051U-FB for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 05:11:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7lkY-0002UY-8M for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 05:11:23 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:62448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7lkY-0002UT-5R for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 05:11:22 -0400 Received: by gyd10 with SMTP id 10so370648gyd.0 for ; Mon, 18 Oct 2010 02:11:21 -0700 (PDT) In-Reply-To: <4CBC0BC1.40304@dayspringpublisher.com> (Louis Turk's message of "Mon, 18 Oct 2010 16:56:33 +0800") 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: Louis Turk Cc: emacs-orgmode@gnu.org Louis Turk writes: > On 10/18/2010 03:16 PM, Noorul Islam K M wrote: > >> Louis Turk writes: >> >>> Hi everyone, >>> >>> I trying to set up capture to use refile.org as the default notes file. >>> >>> lat-a-ws% locate refile.org >>> /home/lat/org/refile.org >>> lat-a-ws% >>> >>> (setq org-default-notes-file "~/org/refile.org") >>> >>> But I get: >>> >>> Debugger entered--Lisp error: (void-function org-string-nw-p) >>> (org-string-nw-p file) >>> (or (org-string-nw-p file) org-default-notes-file (error "No notes >>> file specified, and no default available")) >>> (setq file (or (org-string-nw-p file) org-default-notes-file (error >>> "No notes file specified, and no default available"))) >>> org-capture-target-buffer("~/org/refile.org") >>> (set-buffer (org-capture-target-buffer (nth 1 target))) >>> >>> How do I fix this? >>> >> This function is defined in org-macs.el. I think you should have in your >> .emacs. >> >> (require 'org-macs) >> >> Thanks and Regards >> Noorul > > Thanks for responding, but that doesn't seem to cure the problem. I > still get the same error message. > Which version of emacs and org-mode are you using? M-x emacs-version M-x org-version Thanks and Regards Noorul