all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dmitry@gutov.dev>
To: Beth Lake <beth_15_@hotmail.com>, 62674@debbugs.gnu.org
Subject: bug#62674: vc-next-action prints error message: "Cannot open load file: No such file or directory, vc-nil
Date: Tue, 11 Apr 2023 04:53:49 +0300	[thread overview]
Message-ID: <d69f92b3-f7ed-8c43-6545-451dd628cd90@gutov.dev> (raw)
In-Reply-To: <DM4P221MB0881335C67954109BC323D29D0939@DM4P221MB0881.NAMP221.PROD.OUTLOOK.COM>

Hi!

On 05/04/2023 01:12, Beth Lake wrote:
> Create a CVS repository in the present working directory:
> $ cvs -d "$PWD/cvsroot" init
> 
> Create multiple working directories:
> $ cvs -d "$PWD/cvsroot" checkout -d dir1 .
> $ cvs -d "$PWD/cvsroot" checkout -d dir2 .
> 
> Create a file in one of the working directories:
> $ touch dir1/file
> 
> Check in the file:
> C-x v d dir1 RET
> SPC m C-x v v C-x v v C-c C-c q
> 
> Mark the file in the other working directory:
> C-x v d dir2 RET
> SPC m
> 
> vc-next-action prints an error message:
> C-x v v yes RET
> 
> Cannot open load file: No such file or directory, vc-nil

The patch below seems to fix this particular scenario.

I'm not sure we want to expend much effort on supporting CVS this day 
and age, but if the one-liner change is enough, all the better.

You'd have to upgrade to a newer Emacs, though. 26.3 is quite old.

diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 90905edb887..6ec70b566f9 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1594,7 +1594,7 @@ vc-checkout
         (vc-call make-version-backups-p file)
         (vc-up-to-date-p file)
         (vc-make-version-backup file))
-  (let ((backend (vc-backend file)))
+  (let ((backend (or vc-dir-backend (vc-backend file))))
      (with-vc-properties (list file)
        (condition-case err
            (vc-call-backend backend 'checkout file rev)






  reply	other threads:[~2023-04-11  1:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-04 22:12 bug#62674: vc-next-action prints error message: "Cannot open load file: No such file or directory, vc-nil Beth Lake
2023-04-11  1:53 ` Dmitry Gutov [this message]
2023-04-11  6:18   ` Eli Zaretskii
2023-04-11 21:01     ` Dmitry Gutov
2023-04-14  3:50       ` Beth Lake

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=d69f92b3-f7ed-8c43-6545-451dd628cd90@gutov.dev \
    --to=dmitry@gutov.dev \
    --cc=62674@debbugs.gnu.org \
    --cc=beth_15_@hotmail.com \
    /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.