-
Notifications
You must be signed in to change notification settings - Fork 616
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
Problems for search macros/variables at-point for verilog projects #981
Comments
I have found some commands: isearch-forward-symbol-at-point and swiper-thing-at-point, it's almost well although not perfect. The remaining question is: how to use the counsel-etags-find-tag-at-point to search the tag of Macro in verilog projects ? It's a little special that the Macro in verilog always comes with a prefix `. I think counsel-etags-find-tag-at-point need to ignore the first character ` when do the job in minor mode of verilog. |
You can change Besides, you can write Emacs Lisp to update |
I think the problem may still exist for me. Actually I still prefer to improve the function of counsel-etags-find-tag-at-point. |
You can customise |
I may get what you mean. Maybe I need to modify the function counsel-etags-find-tag-name-default defined as follow:
The key point is to modify the lines with "string-match", is that right ? |
Yes. The tag name at point is found here. It's used as a keyword for searching the TAGS file. |
The emacs.d from redguardtoo is the config I have been using for over three months.
One of the reasons I like this is the fast start speed and proved high programming efficiency.
Recently, I want to use this config to develop some verilog projects. However, this config is not suitable in some cases. For example, when I press C-] at the point of a Macro, i.e.,
`DEF_MACRO, it reported "No tag is found. Grep "`DEF_MACRO" at directory: /bin/bash: -c: line 0: unexpected EOF while looking for matching `.
I wonder what I could do to fix it.
Another similar feature I am eagerly to want is that I usually need to search the variable/word at point . I know the command counsel-etags-find-tag-at-point can be used, but It only shows some definitions of this variable/word. Actually, I want to know all the occcurences of the variable/word in the buffer, just like the way of swiper or occur command works. Is there a command like swiper-at-point or occur-at-point ?
The text was updated successfully, but these errors were encountered: