From 72a34eceb9e7e3bfd295f908b8148b2aca41a20e Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 18 Jan 2026 09:59:17 -0500 Subject: [PATCH] verilog-mode.el: Fix parameter replacements in AUTOINST. * lisp/progmodes/verilog-mode.el (verilog-auto-inst-port): Fix parameter replacements in AUTOINST (#1903). --- lisp/progmodes/verilog-mode.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index a25d3c24553..961d7b57fa4 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el @@ -9,7 +9,7 @@ ;; Keywords: languages ;; The "Version" is the date followed by the decimal rendition of the Git ;; commit hex. -;; Version: 2025.11.08.248496848 +;; Version: 2026.01.18.088738971 ;; Yoni Rabkin contacted the maintainer of this ;; file on 19/3/2008, and the maintainer agreed that when a bug is @@ -124,7 +124,7 @@ ;; ;; This variable will always hold the version number of the mode -(defconst verilog-mode-version "2025-11-08-ecfc2d0-vpo-GNU" +(defconst verilog-mode-version "2026-01-18-54a0c9b-vpo-GNU" "Version of this Verilog mode.") (defconst verilog-mode-release-emacs t "If non-nil, this version of Verilog mode was released with Emacs itself.") @@ -12283,9 +12283,10 @@ If PAR-VALUES replace final strings with these parameter values." auto-inst-vector auto-inst-vector-tpl tpl-net dflt-bits) - ;; Replace parameters in bit-width + ;; Replace parameters in vl-bits & vl-widths (when (and check-values - (not (equal vl-bits ""))) + (or (not (equal vl-bits "")) + (not (equal vl-width "")))) (while check-values (setq vl-bits (verilog-string-replace-matches (concat "\\<" (nth 0 (car check-values)) "\\>")