hsitz / VimOrganizer

VimOrganizer is partly a clone of Emacs' Org-mode, and partly a front end to Org-mode itself. Do Org in Vim.
http://vimeo.com/31531308
518 stars 67 forks source link

E121: Undefined variable: UNFINISHED_TODOS #60

Open dlitz opened 11 years ago

dlitz commented 11 years ago

When I try to use the agenda view by typing ",at", I get this:

E121: Undefined variable: UNFINISHED_TODOS
E116: Invalid arguments for function OrgRunAgenda

Running Vim 7.3.923, and VimOrganizer ce15d1acdad51c3bdb9d7537f0fd36bcf9685e32

dlitz commented 11 years ago

If I fix the bad quoting in ftplugin/vimorg-main-mappings.vim:

--- a/bundle/VimOrganizer/ftplugin/vimorg-main-mappings.vim
+++ b/bundle/VimOrganizer/ftplugin/vimorg-main-mappings.vim
@@ -43,10 +43,10 @@ noremap <buffer> <localleader>b :call OrgTableDashboard()<cr>
 "noremap <silent> <buffer> <localleader>dd :call OrgDateEdit('DEADLINE')<cr>
 "noremap <silent> <buffer> <localleader>dc :call OrgDateEdit('CLOSED')<cr>
 "noremap <silent> <buffer> <localleader>ds :call OrgDateEdit('SCHEDULED')<cr>
-noremap <silent> <buffer> <localleader>a* :call OrgRunAgenda(strftime("%Y-%m-%d"),'w,'')<cr>
-noremap <silent> <buffer> <localleader>aa :call OrgRunAgenda(strftime("%Y-%m-%d"),'w,'+ANY_TODO')<cr>
-noremap <silent> <buffer> <localleader>at :call OrgRunAgenda(strftime("%Y-%m-%d"),'w,'+UNFINISHED_TODOS')<cr>
-noremap <silent> <buffer> <localleader>ad :call OrgRunAgenda(strftime("%Y-%m-%d"),'w,'+FINISHED_TODOS')<cr>
+noremap <silent> <buffer> <localleader>a* :call OrgRunAgenda(strftime("%Y-%m-%d"),'w','')<cr>
+noremap <silent> <buffer> <localleader>aa :call OrgRunAgenda(strftime("%Y-%m-%d"),'w','+ANY_TODO')<cr>
+noremap <silent> <buffer> <localleader>at :call OrgRunAgenda(strftime("%Y-%m-%d"),'w','+UNFINISHED_TODOS')<cr>
+noremap <silent> <buffer> <localleader>ad :call OrgRunAgenda(strftime("%Y-%m-%d"),'w','+FINISHED_TODOS')<cr>
 noremap <silent> <buffer> <localleader>ag :call OrgAgendaDashboard()<cr>
 noremap <silent> <buffer> <localleader>af :call OrgAgendaFilesDashboard()<cr>
 noremap <silent> <buffer> <localleader>ac :call OrgCustomSearchMenu()<cr>

I now get this:

"__Agenda__" [New File]                                                                                                                              
Error detected while processing function OrgRunAgenda..<SNR>36_DateDictToScreen:
line   51:
E121: Undefined variable: s:agenda_insert_point
E116: Invalid arguments for function append
Press ENTER or type command to continue
hsitz commented 11 years ago

Dwayne --

Thanks, i'll check on that. Does the todo agenda come up properly for you when accessed from the Agenda Dashboard? i.e., when pressing keys comma-a-g-t? i don't use any of those old key combinations that access functions without using dashboard, didn't realize they were even still in there. . . .

-- Herb

On Sun, Jun 30, 2013 at 12:35 AM, Dwayne Litzenberger < notifications@github.com> wrote:

When I try to use the agenda view by typing ",at", I get this:

E121: Undefined variable: UNFINISHED_TODOS E116: Invalid arguments for function OrgRunAgenda

Running Vim 7.3.923, and VimOrganizer ce15d1ahttps://github.com/hsitz/VimOrganizer/commit/ce15d1acdad51c3bdb9d7537f0fd36bcf9685e32

— Reply to this email directly or view it on GitHubhttps://github.com/hsitz/VimOrganizer/issues/60 .