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
hs-special-modes-alist grows indefinitely #1106
Comments
Original Redmine Comment Well, formatting is messed up but probably you get the idea.
needs to be
|
Original Redmine Comment You can use @with-eval-after-load@ (emacs 24.3+) and @add-to-list@. That way, you do not need to worry about @hs-special-modes-alist@ being available. I have this in my config and it works fine:
|
Original Redmine Comment Also, why does @verilog-mode@ need to be @verilog-mode-mode@? |
Original Redmine Comment Verilog-mode.el has a bug, and you're correct, @verilog-mode-mode@ should be changed to @verilog-mode@, not the other way round.
Thanks for the hs-special-modes-alist, works great. Robert |
Original Redmine Comment So do you think verilog-mode.el should add something similar to what you'all have as a default, or should it leave it to the user's config files? If it should add something, exactly what? |
Original Redmine Comment Looks like this is no longer a problem with verilog-mode.el itself, if it actually is please reopen or file a new bug, thanks. |
Author Name: Robert Swan
Original Redmine Issue: 1106 from https://www.veripool.org
(when (boundp 'hs-special-modes-alist)
(unless (assq 'verilog-mode hs-special-modes-alist)
(setq hs-special-modes-alist
(cons '(verilog-mode-mode "\<begin\>" "\<end\>" nil
verilog-forward-sexp-function)
hs-special-modes-alist))))
should be
(when (boundp 'hs-special-modes-alist)
(unless (assq 'verilog-mode*_mode* hs-special-modes-alist)
(setq hs-special-modes-alist
(cons '(verilog-mode-mode "\<begin\>" "\<end\>" nil
verilog-forward-sexp-function)
hs-special-modes-alist))))
The text was updated successfully, but these errors were encountered: