David Abrahams <[email protected]> writes:

> Not sure if this is really a TRAMP problem, but...
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   string-match("\\`.*--\\(.*--.*\\)--\\(v?\\).*-\\([0-9]+\\)\\'" nil)
>   
> vc-arch-mode-line-string("/scp:192.168.188.10:/export/home/vboxen/Public/dvd-installer.nsi.template")

vc-arch-mode-line-string has the following implementation:

(defun vc-arch-mode-line-string (file)
  "Return string for placement in modeline by `vc-mode-line' for FILE."
  (let ((rev (vc-working-revision file)))
    (dolist (rule vc-arch-mode-line-rewrite)
      (if (string-match (car rule) rev)
          (setq rev (replace-match (cdr rule) t nil rev))))
    (format "Arch%c%s"
            (case (vc-state file)
              ((up-to-date needs-update) ?-)
              (added ?@)
              (t ?:))
            rev)))

Obviously, rev is nil. It is computed via (vc-working-revision file),
which shall call (vc-arch-working-revision file) internally. No idea,
why it returns nil.

It could still be Tramp, but maybe you ask the vc-arch wizards first.

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to