   ;; Return search locations for it
   (append (list current)                ; first, current buffer
           (verilog-library-filenames module current t)
-                                        ; finally, any libraries
-                                        ; possibly remote
-          (mapcar (lambda (fname) (concat (file-remote-p current) fname))
+          ;; 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)))
 
 ;;

	(let ((p (point)))
          (and
           (equal (char-after) ?\{)
           (forward-list)
           (progn (backward-char 1)
                  (verilog-backward-ws&directives)
                  (and

;;

;; This variable will always hold the version number of the mode
(defconst verilog-mode-version "2016-04-08-8f706fb-vpo"
  "Version of this Verilog mode.")
(defconst verilog-mode-release-emacs nil
  "If non-nil, this version of Verilog mode was released with Emacs itself.")
