Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an interactive command to display a var's metadata #57

Open
bbatsov opened this issue Mar 12, 2017 · 0 comments
Open

Add an interactive command to display a var's metadata #57

bbatsov opened this issue Mar 12, 2017 · 0 comments
Labels
good first issue Friendly for first time contributors

Comments

@bbatsov
Copy link
Member

bbatsov commented Mar 12, 2017

Metadata is something we need to inspect fairly often, so it'd be easy if there was some command do display this. Implementing this should be trivial.

@arichiardi arichiardi added the good first issue Friendly for first time contributors label Mar 3, 2018
charignon added a commit to charignon/inf-clojure that referenced this issue Jan 19, 2019
#### Summary
This commit addresses
clojure-emacs#57 (Add an interactive
command to display a var's metadata) by adding a command to show forms metadata: `inf-clojure-meta`.

`inf-clojure-meta` can be called interactively sends the current form to the inf clojure process and evaluates its metadata. It is useful
for testing.

This command should work with clojure (through lein repl), lumo and planck alike.

#### Test Plan
Manually tested the command using clojure, lumo and planck. I put my cursor on a
form and ran it interactively, it displayed the metadata in the inf buffer.
charignon added a commit to charignon/inf-clojure that referenced this issue Jan 19, 2019
#### Summary

This commit addresses clojure-emacs#57 (Add an interactive
command to display a var's metadata) by adding an interactive command `inf-clojure-meta` to show metadata of a form at point.

This command works with clojure, lumo and planck alike.

#### Test Plan
Manually tested the command using clojure, lumo and planck. I put my cursor on a
form and ran it interactively, it displayed the metadata in the repl buffer.
Specifically I tested with `(with-meta [1 2 3] {:data "hello"})` and it printed `{:data "hello"}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Friendly for first time contributors
Projects
None yet
Development

No branches or pull requests

2 participants