Function: verilog-module-filenames

verilog-module-filenames is a byte-compiled function defined in verilog-mode.el.gz.

Signature

(verilog-module-filenames MODULE CURRENT)

Documentation

Return a search path to find the given MODULE name.

Uses the CURRENT filename, verilog-library-extensions, verilog-library-directories and verilog-library-files variables to build the path.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-module-filenames (module current)
  "Return a search path to find the given MODULE name.
Uses the CURRENT filename, `verilog-library-extensions',
`verilog-library-directories' and `verilog-library-files'
variables to build the path."
  ;; Return search locations for it
  (append (list current)                ; first, current buffer
          (verilog-library-filenames module current t)
          ;; Finally any libraries; fixed up if using e.g. tramp
          (mapcar (lambda (fname)
                    (if (file-name-absolute-p fname)
                        (concat (file-remote-p current) fname)
                      fname))
                  verilog-library-files)))