tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.1.16-pre); bad interaction with VC-mode?


From: Michael Albinus
Subject: Re: tramp (2.1.16-pre); bad interaction with VC-mode?
Date: Tue, 17 Aug 2010 21:39:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

David Abrahams <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]