alphapapa / org-sidebar

A helpful sidebar for Org mode
GNU General Public License v3.0
527 stars 16 forks source link

Warning: Unused lexical variable ‘group’ #3

Closed vikasrawal closed 4 years ago

vikasrawal commented 5 years ago

I just get this when I call org-sidebar (M-x org-sidebar):

Warning: Unused lexical variable ‘group’

Do I need some customization before I use it?

alphapapa commented 5 years ago

No, you can ignore that warning.

alphapapa commented 5 years ago

Please see the commit I just pushed, which should solve that warning. Thanks.

vikasrawal commented 5 years ago

Now I get all these: Warning: Unused lexical variable ‘buffer-or-path’ Warning: Unused lexical variable ‘group’ Warning: Unused lexical variable ‘super-groups’ Warning: Unused lexical variable ‘source-buffer’

And I do not get any sidebar.

alphapapa commented 5 years ago

I get no warnings and it works for me. Try reinstalling the package. I recommend using Quelpa, like this:

(use-package org-sidebar
  :quelpa (org-sidebar :fetcher github :repo "alphapapa/org-sidebar"))

I use this to make it easy: https://github.com/alphapapa/unpackaged.el#upgrade-a-quelpa-use-package-forms-package

vikasrawal commented 5 years ago

Now, after I start emacs, open an org buffer, and do M-x org-sidebar:

I get the message: Function provided is already compiled [2 times]

No sidebar still.

Is there something else I need to install?

alphapapa commented 5 years ago

Thanks for reporting these problems. I just pushed some fixes and tested in a clean Emacs, and it works now. Please install/update the package again and let me know if it works for you.

vikasrawal commented 5 years ago

I realise the message "Function provided is already compiled" comes from a file that does not have any TODO items but has some scheduled items that do not have a TODO state. Ideally, such items should show in the agenda. Once I put a TODO state for at least one item in the file, everything works.

alphapapa commented 5 years ago

I realise the message "Function provided is already compiled"

Please ignore that message, it's not relevant to the problem you seem to be having.

a file that does not have any TODO items but has some scheduled items that do not have a TODO state. Ideally, such items should show in the agenda

You'll have to be more specific.

Also, we need to use more specific terms. The Org Agenda is a specific tool built-in to Org mode. org-sidebar does not provide an Org Agenda view. Some of its functionality is similar, but it is not the same tool. So there is no "agenda" in org-sidebar.

vikasrawal commented 5 years ago

I got confused because org-sidebar uses the term "Agenda items" and since I was originally looking for a solution to show my agenda in the sidebar.

All I was saying is that, if my file has scheduled items but no todo item, the sidebar is not shown. It just gives the message: "Function provided is already compiled", and nothing happens. A better behaviour would be to show the top section of the sidebar with Scheduled items.

alphapapa commented 5 years ago

I got confused because org-sidebar uses the term "Agenda items" and since I was originally looking for a solution to show my agenda in the sidebar.

Yes, the terms are a bit confusing, sorry about that. It's hard to find a way to say, "This is sort of like the Org Agenda, but not exactly." Please let me know if you have any suggestions for this.

All I was saying is that, if my file has scheduled items but no todo item, the sidebar is not shown. It just gives the message: "Function provided is already compiled", and nothing happens. A better behaviour would be to show the top section of the sidebar with Scheduled items.

This isn't the case for me. For example, with this test file:

blahblah

* A
SCHEDULED: <2019-07-19 Fri>

blah

When I run org-sidebar, I get one sidebar window that says, org-sidebar: agenda items in file.org, and it displays:

    A  today

If it's not working for you, be sure that all of the related packages are up-to-date.

alphapapa commented 4 years ago

Please let me know if you need more help.