Re: [Orgmode] Re: org-default-notes-file

2010-10-18 Thread Andreas Röhler

Am 18.10.2010 09:16, schrieb Noorul Islam K M:

Louis Turkl...@dayspringpublisher.com  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

Andreas

--
https://code.launchpad.net/~a-roehler/python-mode/python-mode-components
https://code.launchpad.net/s-x-emacs-werkstatt/







___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-default-notes-file

2010-10-18 Thread David Maus
At Mon, 18 Oct 2010 13:54:30 +0200,
Andreas Röhler wrote:
 
 same here unfortunatly.
 load-path displays the git-org repo, org-mode is loaded from there.
 
 (require 'org-macs) is present there but
 org-string-nw-p still unknown.


The only explanation that makes sense to me is a mixup of old and new
Org files: org-string-nw-p is a regular function and org-macs is
required by org.el

It was added Tue Jul 20 07:54:11 2010 +0200 -- do you have a function:

org-not-nil
(C-h f org-not-nil RET)

and, say, org-plist-delete
(C-h f org-plist-delete RET)

If so, the help shows the file where the function is defined.  Can you
verify that this is the file in the clone of the git repository?

Best,
  -- David

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpxUzevxhwT5.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-default-notes-file

2010-10-18 Thread Eric S Fraga
On Mon, 18 Oct 2010 19:36:18 +0800, Louis Turk l...@dayspringpublisher.com 
wrote:
 
  On 10/18/2010 07:17 PM, Noorul Islam K M wrote:
  Louis Turkl...@dayspringpublisher.com  writes:
 
On 10/18/2010 06:03 PM, Noorul Islam K M wrote:
 
  Can you move following line to the beginning for org-mode settings?
 
  (add-to-list 'load-path ~/org-mode/lisp/)
 
  Thanks and Regards
  Noorul
  Thanks, you are really trying hard to help me. But I still get the
  same error message.

yes but did you move it to the right place?  further, you should also
move the (require 'org-install) to come before anything else, but
after the load-path setting.

I have the following at the start of my org customisations:

: (add-to-list 'load-path ~/git/org-mode/lisp)
: (require 'org-install)

After making the changes, check org-version again.  Are you still
getting 6.33 or are you now in 7.01xxx?

I should also add that I set my default org notes file to a file name
without a path but define org-directory to point to the appropriate
directory:

: (setq org-directory ~/git/notes
:   org-default-notes-file notes.org)

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-default-notes-file

2010-10-18 Thread Andreas Röhler

Am 18.10.2010 20:16, schrieb David Maus:

At Mon, 18 Oct 2010 13:54:30 +0200,
Andreas Röhler wrote:


same here unfortunatly.
load-path displays the git-org repo, org-mode is loaded from there.

(require 'org-macs) is present there but
org-string-nw-p still unknown.



The only explanation that makes sense to me is a mixup of old and new
Org files: org-string-nw-p is a regular function and org-macs is
required by org.el

It was added Tue Jul 20 07:54:11 2010 +0200 -- do you have a function:

org-not-nil
(C-h f org-not-nil RET)

and, say, org-plist-delete
(C-h f org-plist-delete RET)

If so, the help shows the file where the function is defined.  Can you
verify that this is the file in the clone of the git repository?

Best,
   -- David



Hi,

some good news:

with emacs -Q

and evaluating

  (add-to-list 'load-path ~/org-mode/lisp/)
  (load ~/org-mode/lisp/org.el))

it's fine.

Thanks all

Andreas

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode