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

Feature Request: Insert function definition (at point) into the buffer #2560

Closed
xged opened this issue Aug 6, 2015 · 13 comments
Closed

Feature Request: Insert function definition (at point) into the buffer #2560

xged opened this issue Aug 6, 2015 · 13 comments
Labels
Feature request stale marked as a stale issue/pr (usually by a bot)

Comments

@xged
Copy link

xged commented Aug 6, 2015

No description provided.

@xged xged changed the title Insert function definition (at point) into the buffer? Feature Request: Insert function definition (at point) into the buffer Aug 6, 2015
@syl20bnr
Copy link
Owner

syl20bnr commented Aug 6, 2015

I'm not sure to understand the feature, can you provide more info on the feature and a use case to be sure there is no missunderstanding ?

@xged
Copy link
Author

xged commented Aug 6, 2015

E.g. Without the feature I get a list of faces (defined by defface) in my .spacemacs file/buffer and for each one of them >> go to their definition (gd) >> copy the definition >> go back to .spacemacs buffer >> paste the definition in it >> modify the definition. (Definitions are scattered).

I would use the feature even just for exploring for the convenience of not leaving the current buffer (and not creating a new one).

@tuhdo
Copy link
Contributor

tuhdo commented Aug 6, 2015

If you add emacs-lisp layer, it will show you the definition at point in the echo area without doing anything.

@xged
Copy link
Author

xged commented Aug 6, 2015

@tuhdo Isn't that too much of a visual noise and a performance penalty to have it all the time? But I would prob use it as a toggle when heavy exploring.

@tuhdo
Copy link
Contributor

tuhdo commented Aug 6, 2015

@xged nope. It is because if a symbol is shown, it is already loaded into Emacs, and is only triggered when you place point on a symbol. I don't think it's a visual noise since it's only shown at the bottom and only when you place point on a symbol.

This is Emacs, not Vim :)

@xged
Copy link
Author

xged commented Aug 6, 2015

@tuhdo The point can be moved very fast :-), but it probably waits a second or a half for the definition to show up as most of the similar tools do, so that solves my silly 'concerns'. Still a very different problem then pasting.

@tuhdo
Copy link
Contributor

tuhdo commented Aug 6, 2015

For your problem, I think it's easier to create a window that is clone of the current window (by simply splitting with :vs or :sp, then move point there and jump to function definition).

@xged
Copy link
Author

xged commented Aug 6, 2015

@tuhdo I did it fast enough with macros. Nonetheless, I think the feature is important (because function definitions in general are super important).

@sooheon
Copy link

sooheon commented Aug 7, 2015

Take a look at lispy. Specifically these features, as well as M-. and M-,.

@syl20bnr
Copy link
Owner

syl20bnr commented Aug 7, 2015

That's nice :-)

@delaanthonio
Copy link
Contributor

This issue appears to have been resolved.

@d12frosted
Copy link
Collaborator

I don't agree that the initial feature request was satisfied. But I don't see much traction here. So I am not sure what to do. 😸 😿

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

6 participants