From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: andrea crotti Newsgroups: gmane.emacs.help Subject: Re: No VC backend is responsible for Date: Thu, 21 May 2015 10:41:35 +0100 Message-ID: References: <555DA3C8.1070400@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1432201327 14401 80.91.229.3 (21 May 2015 09:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2015 09:42:07 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 21 11:41:54 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YvMz9-0003ZO-VG for geh-help-gnu-emacs@m.gmane.org; Thu, 21 May 2015 11:41:52 +0200 Original-Received: from localhost ([::1]:56244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvMz8-0005ra-Tn for geh-help-gnu-emacs@m.gmane.org; Thu, 21 May 2015 05:41:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvMyx-0005o1-0Q for help-gnu-emacs@gnu.org; Thu, 21 May 2015 05:41:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvMyu-0003z6-Kv for help-gnu-emacs@gnu.org; Thu, 21 May 2015 05:41:38 -0400 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:33696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvMyu-0003z0-GL for help-gnu-emacs@gnu.org; Thu, 21 May 2015 05:41:36 -0400 Original-Received: by oiww2 with SMTP id w2so6850724oiw.0 for ; Thu, 21 May 2015 02:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=GChya5NXu0FqVcCVDA8ysYsouja71RDcNLW/QUiojVs=; b=VsEEN96HJ91kMaHKynKP324whgXkmBeO67aefz7U4V/KUmLHvF/2O0IYFonQ8BtkDc XOt1+0B+8BeiTtKVeJsci0kzuBkuwVnY/L2ng58uzm0lEqx9NQ272yKqRw5t3eRgUX8U bWfcP4LietBksoRO+vgKA8KSsGIyO+n/e1sOcr96VtsCpE+fAU4iAcBj/cM6mGzPp2z6 5RSfRmOq97oilQILADI2+SfBDgvm/v9o1SuKcQ5pds7pCCeMWCmNaW90BdRLw7rkxCP2 4N5uACGmhRBAn/8r5w7Alz3Un5smZJd3Wdl5fxf9cplBfa1Q13tyrR6Ap6MWEpqhWSqS jd0g== X-Received: by 10.202.108.132 with SMTP id h126mr1450424oic.5.1432201295957; Thu, 21 May 2015 02:41:35 -0700 (PDT) Original-Received: by 10.202.224.5 with HTTP; Thu, 21 May 2015 02:41:35 -0700 (PDT) In-Reply-To: <555DA3C8.1070400@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22f X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104510 Archived-At: 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(# "~/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=03=16=16=03\301=3D\203' 2015-05-21 10:22 GMT+01:00 Dmitry Gutov : > 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.