Variable: vhdl-components-package-name
vhdl-components-package-name is a customizable variable defined in
vhdl-mode.el.gz.
Value
((".*" . "\\&_components") . "components")
Documentation
Specifies how the name for the components package is obtained.
The components package is a package containing all component declarations for
the current design. Its name can be obtained by modifying the project name
(e.g. attaching or stripping off a substring). If no project is defined, the
DIRECTORY entry is chosen.
FROM REGEXP is a regular expression matching the original name:
".*" matches the entire string
"\\(...\\)" matches a substring
TO STRING specifies the string to be inserted as new name:
"\\&" means substitute entire matched text
"\\N" means substitute what matched the Nth "\\(...\\)"
Examples:
".*" "\\&" inserts original string
".*" "\\&_i" attaches "_i" to original string
"\\(.*\\)_[io]$" "\\1" strips off "_i" or "_o" from original string
".*" "foo" inserts constant string "foo"
".*" "" inserts empty string
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defcustom vhdl-components-package-name
'((".*" . "\\&_components") . "components")
(concat
"Specifies how the name for the components package is obtained.
The components package is a package containing all component declarations for
the current design. Its name can be obtained by modifying the project name
\(e.g. attaching or stripping off a substring). If no project is defined, the
DIRECTORY entry is chosen."
vhdl-name-doc-string)
:type '(cons (cons :tag "Project" :indent 2
(regexp :tag "From regexp")
(string :tag "To string "))
(string :tag "Directory:\n String "))
:group 'vhdl-compose)