Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E121: Undefined variable: UNFINISHED_TODOS #60

Open
dlitz opened this issue Jun 30, 2013 · 2 comments
Open

E121: Undefined variable: UNFINISHED_TODOS #60

dlitz opened this issue Jun 30, 2013 · 2 comments

Comments

@dlitz
Copy link

dlitz commented Jun 30, 2013

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 ce15d1a

@dlitz
Copy link
Author

dlitz commented Jun 30, 2013

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
Copy link
Owner

hsitz commented Jun 30, 2013

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 <
[email protected]> 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//issues/60
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants