Giter Site home page Giter Site logo

Comments (4)

cxxxr avatar cxxxr commented on June 3, 2024

This is because the package you are currently running (lem-lisp-mode/internal) and the package of the target symbol (lem-lisp-mode/inspector) are different.

from lem.

cxxxr avatar cxxxr commented on June 3, 2024

To do this, I suppose the following two phases are necessary.

  • Finding a specific symbol by mode name (e.g. Add find-major-mode-by-name)
  • Fetch the location of the symbol definition

from lem.

Sasanidas avatar Sasanidas commented on June 3, 2024

I see, seems like I overlook the find definition function (indeed without the full name with package makes sense that it cannot find it).

I think I found a "good-enough" way of doing it (even tho it's a little bit hackish):

(define-command fer/goto-major-mode () ()
  (let ((current-mode (lem:buffer-major-mode (lem:current-buffer))))
    (lem-lisp-mode/internal::display-xref-locations
        (lem-lisp-mode/internal::find-definitions-by-name
         (format nil "~a::~a"
                 (package-name (symbol-package current-mode))
                 (symbol-name current-mode))))))

from lem.

Sasanidas avatar Sasanidas commented on June 3, 2024

I think this solution works well enough, so I'll close the issue 👍

from lem.

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.