Giter VIP home page Giter VIP logo

Comments (11)

alphapapa avatar alphapapa commented on July 3, 2024 2

@k11m1 Thanks. Until this is fixed, you'll have to either not use the habit selector, or use Org 9.6.

from org-super-agenda.

alphapapa avatar alphapapa commented on July 3, 2024 2

Please see https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fac55324accbcab08dfebbde8295b2f1b4b9f45e, which demotes the error to a warning.

from org-super-agenda.

alphapapa avatar alphapapa commented on July 3, 2024

Hello,

I don't understand. Please start from the beginning and explain the problem in context. As well, please provide a minimal reproducible example. And, of course, include the versions of all relevant software. You know, all the standard bug-report info.

from org-super-agenda.

alphapapa avatar alphapapa commented on July 3, 2024

See also: alphapapa/org-ql#364

from org-super-agenda.

k11m1 avatar k11m1 commented on July 3, 2024

I think i have the same issue, at least removing habit fixes it:

Config in org-agenda-custom-commands:

        ("t" "test"
         ((agenda "" ((org-agenda-span 'day)
                      (org-super-agenda-groups
                        '((:name "Timeline"
                           :time-grid t)
                          (:habit t)
                          )
                       )))))

Shows without debug:

if: ‘org-element-at-point’ cannot be used in non-Org buffer #<buffer *Org Agenda(t)*> (org-agenda-mode)

Trace: https://gist.github.com/k11m1/fa6d819d247ef9e8b69d31bf0e659f2a

Removing (:habit t) makes the error go away.

I am using Latest doom emacs (as of 2023-09-25), on Arch Linux.

  • GNU Emacs 29.1
  • Org 9.7
  • I am on: 4efc0bd * master origin/master replaced Meta: Update .gitignore

from org-super-agenda.

k11m1 avatar k11m1 commented on July 3, 2024

@alphapapa No problem. I am not using the habit selector actively so disabling it for me fixed all the problems.

from org-super-agenda.

Thaodan avatar Thaodan commented on July 3, 2024

from org-super-agenda.

alphapapa avatar alphapapa commented on July 3, 2024

Adam Porter @.***> writes:
@k11m1 Thanks. Until this is fixed, you'll have to either not use the habit selector, or use Org 9.6.
Another option is to comment out the check in org-element.el that causes the issue.

Sure, just be sure to recompile that file afterward, otherwise you'll get reduced performance from its being interpreted.

from org-super-agenda.

real-or-random avatar real-or-random commented on July 3, 2024

The root cause is emacs-straight/org-mode@f135954.

Determining whether something is a habit will involve a call to org-element-at-point, which now errors when not in org-mode. This is normally not a problem, as agenda items processed in their home buffer in org-mode. But there's (at least) one exception: Hourly lines/separators in the time grid (like 10:00 .....) aren't real org items, and they're "processed" in the org-agenda buffer in org-agenda-mode.

The simple fix is to evaluate whether an item is a habit only (when (derived-mode-p 'org-mode)). See https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a1fa52197 for a similar fix inside org.

I had a similar issue with a org-agenda-prefix-format that makes a call to (org-get-category).

from org-super-agenda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.