]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename variable for clarity
authorMattias Engdegård <mattiase@acm.org>
Sun, 7 Apr 2019 18:50:40 +0000 (20:50 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 7 Apr 2019 18:51:00 +0000 (20:51 +0200)
* lisp/progmodes/verilog-mode.el (verilog-sk-define-signal):
Rename sig-re to sig-chars, to make it clear that it isn't a regexp.

lisp/progmodes/verilog-mode.el

index 916594bdde0bd028164c66e3b1a34cf2b2abea17..9226291ffbbdcef63d951eff91955dd2508eb25e 100644 (file)
@@ -14263,13 +14263,13 @@ and the case items."
 (defun verilog-sk-define-signal ()
   "Insert a definition of signal under point at top of module."
   (interactive "*")
-  (let* ((sig-re "a-zA-Z0-9_")
+  (let* ((sig-chars "a-zA-Z0-9_")
         (v1 (buffer-substring
               (save-excursion
-                (skip-chars-backward sig-re)
+                (skip-chars-backward sig-chars)
                 (point))
               (save-excursion
-                (skip-chars-forward sig-re)
+                (skip-chars-forward sig-chars)
                 (point)))))
     (if (not (member v1 verilog-keywords))
        (save-excursion