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

Jumping to `defvar' in the same file in .el files #130

Closed
srustamo opened this issue May 2, 2017 · 5 comments
Closed

Jumping to `defvar' in the same file in .el files #130

srustamo opened this issue May 2, 2017 · 5 comments

Comments

@srustamo
Copy link

srustamo commented May 2, 2017

I'm not so sure (and the docs are not clear on this) how calling dumb-jump-go in in an .el file behaves.

Say, this is a a file:

1 (defvar emacs-d
2 (file-name-directory
3   load-file-name))

4 (setq package-user-dir
5      (expand-file-name "elpa" emacs-d))

Say, I'm on line 5, point is on emacs-d symbol and run dumb-jump-go.

What I get is (without .dumbjump and if the dir contains many files) Took over 2s to find ’emacs-d’. Please install ag or rg, or add a .dumbjump file to ’/Users/xx3’ with path exclusions.

So, it looks like line 1 defvar is not found.

@jacktasia
Copy link
Owner

Your example works fine for me. Looks like your operating out of your home directory, or a directory with nothing to denote its project root (so it's defaulting to ~), and dumb-jump is going to search all child directories recursively. I recommend you look at this issue: #128

@srustamo
Copy link
Author

srustamo commented May 3, 2017

I freshly clone this repo, and open init.el in the root and do dumb-jump-go on line 18 of the file (which is what the opening issue was about), and still get this subject error.

GNU Emacs 25.2.1 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 1265.21)
of 2017-04-26

@srustamo
Copy link
Author

srustamo commented May 3, 2017

Incidentally, this package functions work fine on a C project, other things being equal.

@jacktasia
Copy link
Owner

Thanks for the example. Your rush-emacs project has a .gitignore of just *. Most searchers (like ag) respect the .gitignore file and do not search anything that matches it. If you remove the full wildcard * then dumb-jump works as expected.

https://github.com/srustamo/rush-emacs/blob/master/.gitignore

@srustamo
Copy link
Author

srustamo commented May 4, 2017

Thank you.

@srustamo srustamo closed this as completed May 4, 2017
@jacktasia jacktasia mentioned this issue Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants