Git Product home page Git Product logo

Comments (2)

Townk avatar Townk commented on May 10, 2024

The issue was most likely introduced by 6dcafc4 at this line.

I honestly don't understand why this is happening on your box. Are you not using evil?

If you look into the code that introduced the error:

(when org-ol-tree-packages--evil-p
  (evil-define-key '(normal) org-ol-tree-mode-map
    "h" #'org-ol-tree-navigation--collapse-current
    "l" #'org-ol-tree-navigation--expand-current
    (kbd "<left>") #'org-ol-tree-navigation--collapse-current
    (kbd "<right>") #'org-ol-tree-navigation--expand-current
    ))

You can see that I only use the evil-define-key if org-ol-tree-packages--evil-p is not nil. And here is how I populate org-ol-tree-packages--evil-p:

(defconst org-ol-tree-packages--evil-p (require 'evil-core nil 'noerror)
  "Constant indicating if package evil is installed.")

As far as I understood from the lisp documentation, when calling require with 'noerror, if Emacs can't load the requested feature, it returns nil. So, in theory, the use of evil-define-key should only happen if evil-core is loaded (which is the feature that defines evil-define-key).

I'll try to use fboundp on the check to see if this gets any better on the next patch.

from org-ol-tree.

Jake-Moss avatar Jake-Moss commented on May 10, 2024

This is working now. I do use evil so I have no idea what was happening either

from org-ol-tree.

Related Issues (15)

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.