From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Custom agenda - wrong type argument Date: Wed, 14 Apr 2010 10:54:00 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0020316304==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O24um-0007KI-Cj for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 11:54:08 -0400 Received: from [140.186.70.92] (port=54321 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O24uk-0007JW-Lp for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 11:54:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O24ui-0004t4-I3 for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 11:54:06 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:56129) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O24ui-0004sd-DR for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 11:54:04 -0400 Received: by gwb15 with SMTP id 15so151262gwb.0 for ; Wed, 14 Apr 2010 08:54:02 -0700 (PDT) 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 --===============0020316304== Content-Type: multipart/alternative; boundary=000e0cd403d4fd658604843462d7 --000e0cd403d4fd658604843462d7 Content-Type: text/plain; charset=ISO-8859-1 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 --000e0cd403d4fd658604843462d7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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
cur= rent buffer like this:

(setq org-agenda-custom-commands
=A0=A0= =A0=A0=A0 (quote (
=A0=A0=A0=A0=A0=A0=A0=A0 ("c" "Current Buffer" agenda &= quot;" ((org-agenda-files (list (buffer-file-name)))))
=A0=A0=A0=A0= =A0=A0=A0=A0 ("f" "Home Buffer" agenda "" ((o= rg-agenda-files '("~/Documents/personal/nate.org"))))
=A0=A0=A0=A0=A0=A0=A0=A0 )
=A0=A0=A0=A0=A0 )
)

However, when I= view the agenda for the current buffer (by pressing "c",
ever= y 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 p= ressing "<" in the
dispatcher, but I'm just hacking aro= und and seeing how org-mode and lisp works.

I'm using a bare-bon= es org-configuration:

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

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq=A0org-export-latex-after-initial-vars-hook '(org-beamer-after-initia= l-vars)
=A0org-agenda-custom-commands '(("c" "Current= Buffer" agenda "" ((org-agenda-files (list (buffer-file-nam= e)))))
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 ("f" "Home Buf= fer" agenda ""
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0= =A0=A0 ((org-agenda-files (quote ("~/Documents/personal/nate.org")))))
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0= =A0=A0=A0=A0 )
=A0
=A0org-after-todo-state-change-hook '(org-clock-out-if-current)<= br>=A0org-export-latex-format-toc-function 'org-export-latex-format-toc= -default
=A0org-support-shift-select t
=A0org-export-preprocess-hook = '(org-export-blocks-preprocess)
=A0org-tab-first-hook '(org-hide-block-toggle-maybe)
=A0org-src-mode= -hook '(org-src-mode-configure-edit-buffer)
=A0org-confirm-shell-lin= k-function 'yes-or-no-p
=A0org-export-first-hook '(org-beamer-in= itialize-open-trackers)
=A0org-agenda-before-write-hook '(org-agenda-add-entry-text)
=A0org-= cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers or= g-cycle-show-empty-lines
=A0=A0=A0 =A0=A0=A0 =A0 org-optimize-window-aft= er-visibility-change)
=A0org-export-preprocess-before-normalizing-links-hook '(org-remove-fil= e-link-modifiers)
=A0org-mode-hook '(#[nil "\300\301\302\303\30= 4$\207"
=A0=A0=A0 =A0=A0=A0 =A0=A0 [org-add-hook change-major-mode-= hook org-show-block-all append local] 5]
=A0=A0=A0 =A0=A0=A0 =A0)
=A0org-confirm-elisp-link-function 'yes-or-= no-p
=A0org-occur-hook '(org-first-headline-recenter)
=A0org-expo= rt-preprocess-before-selecting-backend-code-hook '(org-beamer-select-be= amer-code)
=A0org-export-latex-final-hook '(org-beamer-amend-header = org-beamer-fix-toc org-beamer-auto-fragile-frames
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0 org-beamer-place-default-a= ctions-for-lists)
=A0)


Thanks,
--Nate


--000e0cd403d4fd658604843462d7-- --===============0020316304== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0020316304==--