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 12:46:34 +0530 Message-ID: <878w1wotrh.fsf@noorul.maa.corp.collab.net> References: <4CBBEC97.5000402@dayspringpublisher.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44050 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7jzK-0004co-NM for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 03:18:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7jzH-0005yT-J2 for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 03:18:28 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:36687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7jzH-0005yG-Gf for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 03:18:27 -0400 Received: by gxk27 with SMTP id 27so322343gxk.0 for ; Mon, 18 Oct 2010 00:18:26 -0700 (PDT) In-Reply-To: <4CBBEC97.5000402@dayspringpublisher.com> (Louis Turk's message of "Mon, 18 Oct 2010 14:43:35 +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: > 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