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
Integration with the speedbar #1025
Comments
Original Redmine Comment The enhancement can be achieved by changing verilog-imenu-generic-expression, as follows:
|
Original Redmine Comment
(defun verilog-speedbar-install-variables ()
|
Original Redmine Comment I believe most people using SystemVerilog develop verification environments, which are usually class-based. These projects usually have lots of classes in various files and directories. I think classes, interfaces, tasks, functions, typedefs and macros are the basic elements of these environments and should be visible by default, with an option to selectively disable them in the speedbar. |
Original Redmine Comment I am in favor of adding classes, tasks, functions, etc to @verilog-imenu-generic-expression@. Currently, I have added the below to the default imenu expression. I do not use speedbar, but I use imenu.
|
Original Redmine Comment Dear all, I am grateful to all of you. Thanks a lot for sharing this. I didn't have idea about iMenu and speedbar before. But I will try them. Thanks again. Cheers, |
Original Redmine Comment If someone could provide a specific patch against verilog-mode.el, I'll consider it. Note my question above about if we should consider tasks/functions as separate name spaces, or combine them into one. |
Original Redmine Comment
I would personally like to keep tasks and functions separate. |
Original Redmine Comment One of my honourable colleagues pointed out that:
Here is a fixed version. It turns out that the user doesn't need to modify +verilog-mode.el+. Instead, he/she may put the following code into +.emacs+ file:
|
Original Redmine Comment Enhancement RequestCurrently, verilog-mode defines 2 categories for the +imenu+: Modules and Vars. It is proposed to add more categories: Classes, Tasks, Funct, Interfaces, Types. Side effectsUser specific configurationUser still remains in full control of the +imenu+ categories: he/she may override the categories which are set by the verilog-mode. For example
Keep in mind that in general, it is easier to reduce the number of categories then to increase it. Indeed, I copied the original definition and erased all but two lines. |
Original Redmine Comment If you think there should be a fix to verilog-mode.el itself for this, please provide a patch that shows the desired code in a reasonable place in the file, thanks. |
Original Redmine Comment I am submitting the @verilog-mode.v840.patch@ (attached). |
Original Redmine Comment Ah, thanks, thought there was more needed. Anyhow, fixed in git and released as verilog-mode-2016-02-23-61c1bd2-vpo. |
Original Redmine Comment I am submitting the @verilog-mode-2016-02-24-3bb6198-vpo.patch@ (attached). README
in spite the fact that they do not conform to the SystemVerilog LRM. Solution: retired support for these elements. HOW-TO apply the patchIt is assumed that @verilog-mode.el@ lives in @~/elisp@.
|
Original Redmine Comment If you have additional patches please file a new bug as this one is closed. Also the patch as provided should probably also support the rand, randc, and pure qualifiers so that the parsing satisfies the language. Furthermore, you cannot generally define functions in verilog-mode that are not part of the verilog- scope, e.g. you can't create a alist-keys (and I suspect anyways there's a more general function so this isn't needed.) |
Author Name: David Shleifman
Original Redmine Issue: 1025 from https://www.veripool.org
Original Date: 2016-01-20
Original Assignee: Wilson Snyder (@wsnyder)
Introduction
emacs is packaged with the speedbar. Currently, modules are displayed in the speedbar.
But classes are not displayed.
How to reproduce
Note that user should add the following 3 lines to ~/.emacs:
in order to enable SystemVerilog support in the speedbar.
Enhancement Request
It would be nice to improve the
integration so that the classes are shown in the speedbar.
The text was updated successfully, but these errors were encountered: