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
Consistent comment column #922
Comments
Original Redmine Comment From Greg waters, a suggestion related to the same topic: Hi Alex, More generally, how about adding a special comment marker? If a line within a declaration or port “region” would be auto-indented, but it has an end-of-line comment with the special mark, can the autoindenter leave that line alone and just auto-indent the other lines (which don’t have a user typedef in them)? Suppose the “keep-indent” marker is “//.”. We could improve user-type indentation this way (I use dot-space here to suppress auto-replace in e-mail composer):
With the help of this marker, Verilog-mode can continue to re-indent the unmarked lines nicely. The marked lines would have manual indentation. Thanks --Greg |
Original Redmine Comment Added pre's. |
Original Redmine Comment See if the below advice statements work for you (Works on GNU emacs 24.4+).
I "have something similar":https://github.com/kaushalmodi/.emacs.d/blob/b80883ca52fc4f6f474f94fd5c41cfc0fcd7ead8/setup-files/setup-verilog.el#L344-L363 to skip auto-indentation on certain lines. Related "Issue #885":http://www.veripool.org/issues/885-Verilog-mode-Ignore-lines-starting-with-certain-characters-from-indenting-automatically-Feature-request- @wilson: |
Original Redmine Comment Hi there. Thanks for the suggestion. Alas, it didn't work for me. Perhaps that is because I'm using an old version of emacs (v23.1.1). The message I get is: Symbol's function definition is void: advice-add I'm not adverse to getting an updated version of emacs, but would like to know if that's the problem before I start down that path (it would be non trivial where I work). |
Original Redmine Comment @advice-add@ will work only in emacs 24.4 and newer versions (the newest released version as of now is 24.5). I have not used the older advice system. Maybe someone well-versed in that can show you how to advise those functions using the old style. On a side note, getting the latest emacs version would really help as it comes with many bug fixes and new features. |
Original Redmine Comment Still present, perhaps someone would like to contribute a patch? |
Author Name: Monte Becker
Original Redmine Issue: 922 from https://www.veripool.org
Hi there:
I've had a devil of a time getting comments to start in the column I'd like for the systemVerilog/class work I do. This does not work:
( setq verilog-minimum-comment-distance 56 )
The text was updated successfully, but these errors were encountered: