[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5297: Re: 23.1; vc: fails to follow symlinks inside HOME
From: |
Yuya Nishihara |
Subject: |
bug#5297: Re: 23.1; vc: fails to follow symlinks inside HOME |
Date: |
Sun, 3 Jan 2010 23:10:47 +0900 |
User-agent: |
KMail/1.12.4 (Linux/2.6.32-trunk-amd64; KDE/4.3.4; x86_64; ; ) |
Hi,
> When detecting vc backend, vc-find-file-hook passes buffer-file-truename
> to vc-backend function. However, because buffer-file-truename is
> *abbreviated*,
> following vc-hg-registered or vc-git-registered just fails.
The following snippet is workaround for the problem:
--
(defadvice vc-backend (before vc-backend-fix-abbrev-name activate)
"Fixes vc-backend to expand abbreviated buffer-file-truename"
(if (stringp (ad-get-arg 0))
(ad-set-arg 0 (expand-file-name (ad-get-arg 0)))))
--
Yuya.