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:32:36 +0530 Message-ID: <87y69voour.fsf@noorul.maa.corp.collab.net> References: <4CBBEC97.5000402@dayspringpublisher.com> <878w1wotrh.fsf@noorul.maa.corp.collab.net> <4CBC090E.50503@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=49333 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7ldu-0002hf-VI for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 05:04:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7ldt-0001EI-LN for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 05:04:30 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:41855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7ldt-0001EE-IZ for emacs-orgmode@gnu.org; Mon, 18 Oct 2010 05:04:29 -0400 Received: by yxm34 with SMTP id 34so367966yxm.0 for ; Mon, 18 Oct 2010 02:04:29 -0700 (PDT) In-Reply-To: <4CBC090E.50503@easy-emacs.de> ("Andreas =?utf-8?Q?R=C3=B6hle?= =?utf-8?Q?r=22's?= message of "Mon, 18 Oct 2010 10:45:02 +0200") 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: Andreas =?utf-8?Q?R=C3=B6hler?= Cc: emacs-orgmode@gnu.org Andreas R=C3=B6hler writes: > Am 18.10.2010 09:16, schrieb Noorul Islam K M: > >> 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 >> > > Hi Noorul, > > would this not indicate a bug anyway? > IMHO functions needed should be available, if org-mode is activated. > > BTW at my machine org-string-nw-p is defined in the git-repo only, not > in the installed org-macs.el. > > HTH > Strange that org-string-nw-p is not there in org-macs.el. Which version of orgmode and emacs are you using? Also are you trying to setup orgmode for the first time? If so do you mind sharing .emacs? Thanks and Regards Noorul