From mboxrd@z Thu Jan 1 00:00:00 1970 From: Urs Rau Subject: org-advertized-archive-subtree: Symbol's function definition is void: org-datetree-find-year-create Date: Fri, 18 Feb 2011 10:16:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=38714 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqNQX-0007dw-RQ for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 05:19:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqNON-0003IY-2e for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 05:16:52 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:35453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqNOM-0003I5-TM for emacs-orgmode@gnu.org; Fri, 18 Feb 2011 05:16:51 -0500 Received: by qyk2 with SMTP id 2so92285qyk.0 for ; Fri, 18 Feb 2011 02:16:49 -0800 (PST) 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: emacs-orgmode@gnu.org I am trying to archive completed tasks to a datetree. I am using "Move Subtree to Archive file" (C-c C-x -C-s) And I get the following error: release_7.4-419-g68114f Org-mode version 7.4 (release_7.4.419.g68114f) afile=/Users/ursr/org/tasksnotes.org_archive org-advertized-archive-subtree: Symbol's function definition is void: org-datetree-find-year-create And I had done a C-c C-x ! to reload all org files, jsut in case. ;-) I have added the following settings taken from the worg site page: http://orgmode.org/worg/org-hacks.html Topic: Archive in a date tree Posted to Org-mode mailing list by Osamu Okano (setq org-archive-location "%s_archive::date-tree") (defadvice org-archive-subtree (around org-archive-subtree-to-data-tree activate) "org-archive-subtree to date-tree" (if (string= "date-tree" (org-extract-archive-heading (org-get-local-archive-location))) (let* ((dct (decode-time (org-current-time))) (y (nth 5 dct)) (m (nth 4 dct)) (d (nth 3 dct)) (this-buffer (current-buffer)) (location (org-get-local-archive-location)) (afile (org-extract-archive-file location)) (org-archive-location (format "%s::*** %04d-%02d-%02d %s" afile y m d (format-time-string "%A" (encode-time 0 0 0 d m y))))) (message "afile=%s" afile) (unless afile (error "Invalid `org-archive-location'")) (save-excursion (switch-to-buffer (find-file-noselect afile)) (org-datetree-find-year-create y) (org-datetree-find-month-create y m) (org-datetree-find-day-create y m d) (widen) (switch-to-buffer this-buffer)) ad-do-it) ad-do-it)) ;; How do I fix this and make sure I can file into a datetree? Also is this going to be based on USA dates or will it work right with European dates? Thanks. -- Urs Rau