emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Custom agenda - wrong type argument


From: Nathan Neff
Subject: [Orgmode] Custom agenda - wrong type argument
Date: Wed, 14 Apr 2010 10:54:00 -0500

I'm trying to build a custom agenda that works with the current buffer.

I've succeeded in getting the agenda to display with the
current buffer like this:

(setq org-agenda-custom-commands
      (quote (
         ("c" "Current Buffer" agenda "" ((org-agenda-files (list (buffer-file-name)))))
         ("f" "Home Buffer" agenda "" ((org-agenda-files '("~/Documents/personal/nate.org"))))
         )
      )
)

However, when I view the agenda for the current buffer (by pressing "c",
every key I press gives me "Wrong type argument: stringp, nil".

The "Home Buffer" custom command above works fine.

I know that you can easily restrict the agenda to the current file by pressing "<" in the
dispatcher, but I'm just hacking around and seeing how org-mode and lisp works.

I'm using a bare-bones org-configuration:

Emacs  : GNU Emacs 23.1.93.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2010-03-09 on braeburn.aquamacs.org - Aquamacs Distribution 2.0preview5
Package: Org-mode version 6.35 (release_6.35g.25.g609e.dirty)

current state:
==============
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-custom-commands '(("c" "Current Buffer" agenda "" ((org-agenda-files (list (buffer-file-name)))))
                  ("f" "Home Buffer" agenda ""
                   ((org-agenda-files (quote ("~/Documents/personal/nate.org")))))
                  )
 
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-support-shift-select t
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
          org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
           [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
         )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames
                   org-beamer-place-default-actions-for-lists)
 )


Thanks,
--Nate



reply via email to

[Prev in Thread] Current Thread [Next in Thread]