Comments (4)
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.
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.
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.
I think this solution works well enough, so I'll close the issue 👍
from lem.
Related Issues (20)
- Lem hangs if we edit and recompile `uiop:define-package :lem-core`
- Lem hangs when using negative universal argument through M--? HOT 2
- Write the GUI in CL with McCLIM HOT 3
- How to use a custom Common Lisp implementation for Lisp code? HOT 3
- Building Lem with both SDL2 and ncurses support simultaneously HOT 3
- Top and bottom borders of SDL version (2.1.0) not visible on Windows 11
- Can't build with SDL2 on Arch Linux on WSL HOT 4
- Severe rendering performance issues with SDL2 in WSL
- cannot install on openSUSE `Package "iterate" not found` HOT 1
- Error Building Lem on MacOS Using Roswell HOT 10
- Lem on SDL2 - SBCL dropping to LDB when loading a system via ASDF. HOT 5
- Thai string is not displayed properly HOT 2
- Rounding error in mouse coordinates on SDL2 filer interface HOT 1
- Still can't build on Linux: "The archive file "cl-unicode-20210228-git.tgz" for release "cl-unicode" is missing" HOT 2
- Allow themes to modify colors of tabs and option selections HOT 3
- possibility of adding a build system that finds dependencies and builds lem with whatever it finds and whatever lisp the builder wants HOT 6
- Display scaling of HiDPI monitor is ignored, and unable to be forced
- Lisp REPL stuck in read only mode while using vi-mode HOT 2
- Missing binary files from release 2.2.0
- It seems that the :lock parameter has been removed from sbcl's defpackage. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lem.