From: andrea crotti <andrea.crotti.0@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: No VC backend is responsible for
Date: Thu, 21 May 2015 10:41:35 +0100 [thread overview]
Message-ID: <CAF_E5JYsKVbpK4=oZ6S4ivwwa1=CZZMQzOA5U=Fa16T7EKVNfA@mail.gmail.com> (raw)
In-Reply-To: <555DA3C8.1070400@yandex.ru>
Yes true thanks, I thought Helm could be the issue but it doesn't work.
Actually the problems seems to be my code:
(defun ca-is-version-control-file ()
"Return nil unless the file is in the git files"
(if (vc-working-revision (buffer-file-name))
(auto-revert-mode t)))
(add-hook 'find-file-hook 'ca-is-version-control-file)
Makes sense, it's just a bit surprising because I haven't touched this
code for a long time and it used to work..
Probably checking if the file is under vc using something that is not
vc-workiing-revision would do the trick..
Debugger entered--Lisp error: (error "No VC backend is responsible for
/home/user/sample.hs")
signal(error ("No VC backend is responsible for /home/user/sample.hs"))
error("No VC backend is responsible for %s" "/home/user/sample.hs")
vc-responsible-backend("/home/user/sample.hs")
vc-working-revision("/home/user/sample.hs")
(if (vc-working-revision (buffer-file-name)) (auto-revert-mode t))
ca-is-version-control-file()
run-hooks(find-file-hook)
after-find-file(t t)
find-file-noselect-1(#<buffer sample.hs> "~/sample.hs" nil nil
"~/sample.hs" nil)
find-file-noselect("/home/user/sample.hs" nil nil nil)
find-file("/home/user/sample.hs")
find-file-at-point("/home/user/sample.hs")
helm-find-file-or-marked("/home/user/sample.hs")
apply(helm-find-file-or-marked "/home/user/sample.hs")
helm-funcall-with-source(((name . "Find Files") (header-name lambda
(name) (concat name helm-find-files-doc-header)) (init lambda nil
(setq helm-ff-auto-update-flag helm-ff-auto-update-initial-value)
(setq helm-ff--auto-update-state helm-ff-auto-update-flag)
(helm-set-local-variable (quote bookmark-make-record-function)
(function helm-ff-make-bookmark-record))) (candidates .
helm-find-files-get-candidates) (keymap keymap (right .
helm-execute-persistent-action) (left . helm-find-files-up-one-level)
(127 . #[0 "\306\307\310\311\312\305!\313\"\314$\216\315\302!\210\316\304!\317\211\211\x03\x16\x16\x03\301=\203'
2015-05-21 10:22 GMT+01:00 Dmitry Gutov <dgutov@yandex.ru>:
> On 05/21/2015 12:02 PM, andrea crotti wrote:
>
>> vc-responsible-backend: No VC backend is responsible for
>> /home/username/hello.py
>
>
> You should M-x toggle-debug-on-error and post the backtrace here.
next prev parent reply other threads:[~2015-05-21 9:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 9:02 No VC backend is responsible for andrea crotti
2015-05-21 9:22 ` Dmitry Gutov
2015-05-21 9:41 ` andrea crotti [this message]
2015-05-21 9:55 ` Tassilo Horn
2015-05-21 10:25 ` andrea crotti
2015-05-21 10:31 ` Dmitry Gutov
2015-05-21 10:32 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAF_E5JYsKVbpK4=oZ6S4ivwwa1=CZZMQzOA5U=Fa16T7EKVNfA@mail.gmail.com' \
--to=andrea.crotti.0@gmail.com \
--cc=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.