veripool / verilog-mode

Verilog-Mode for Emacs with Indentation, Hightlighting and AUTOs. Master repository for pushing to GNU, verilog.com and veripool.org.
http://veripool.org/verilog-mode
GNU General Public License v3.0
253 stars 90 forks source link

Emacs batch mode autos fails with .va files #1527

Closed veripoolbot closed 4 years ago

veripoolbot commented 4 years ago

Author Name: Shareef Jalloq Original Redmine Issue: 1527 from https://www.veripool.org


Hi,

I have a colleague trying to use AUTOINST on some .va files. We had to add a verilog-library-extensions variable to get it to work from within emacs but it still doesn't seem to work in batch mode.

Running 'emacs --batch .va -f verilog-batch-auto' results in a 'Symbol's function definition is void' error. Is there something extra I need to add to get the batch command working?

Cheers.

veripoolbot commented 4 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2019-09-26T12:25:00Z


With the current Emacs:

I'm suspecting .va is fairly standard naming for Verilog AMS? If so I can update Emacs itself so future versions of Emacs will recognize .va - presuming it isn't already claimed by another language. Note it would be a while before this propagates to your OS (likely a year or more) so you'd still need the steps above for now.

veripoolbot commented 4 years ago

Original Redmine Comment Author Name: Shareef Jalloq Original Date: 2019-09-26T13:10:50Z


Yep, already updated the auto-mode-alist:

(add-to-list 'auto-mode-alist '("\.[ds]?v[ah]?\'" . verilog-mode))

veripoolbot commented 4 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2019-09-27T14:28:20Z


Fixed Emacs sources (not verilog-mode.el itself). Emacs version 27.0 when eventually released will then work out-of-the-box.