Function: vhdl-function-name
vhdl-function-name is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-function-name PREFIX STRING &optional POSTFIX)
Documentation
Generate a Lisp function name.
PREFIX, STRING and optional POSTFIX are concatenated by - and spaces in
STRING are replaced by - and substrings are converted to lower case.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-function-name (prefix string &optional postfix)
"Generate a Lisp function name.
PREFIX, STRING and optional POSTFIX are concatenated by `-' and spaces in
STRING are replaced by `-' and substrings are converted to lower case."
(let ((name prefix))
(while (string-match "\\(\\w+\\)\\s-*\\(.*\\)" string)
(setq name
(concat name "-" (downcase (substring string 0 (match-end 1)))))
(setq string (substring string (match-beginning 2))))
(when postfix (setq name (concat name "-" postfix)))
(intern name)))