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
247 stars 90 forks source link

Fix behavior of verilog-mark-defun #1805

Closed gmlarumbe closed 1 year ago

gmlarumbe commented 1 year ago

Hi,

This PR fixes #1777

Implements the following behavior, as suggested by @wsnyder:

I don't use this feature myself, but I think the behavior would make sense to jump to the function, then if done again jump to the container of the function (module/package etc) which should happen automatically as that's the next most upper thing.

It also enables the use of narrow-to-defun.

Thanks!