[Top][All Lists]

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

Re: vc-find-revision-no-save?

From: Juri Linkov
Subject: Re: vc-find-revision-no-save?
Date: Mon, 24 Oct 2022 22:37:48 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

> vc.el contains the following defcustom:
>     (defcustom vc-find-revision-no-save nil
>       "If non-nil, `vc-find-revision' doesn't write
> the created buffer to file."
>       :type 'boolean
>       :version "27.1")
> Notice that the default is nil.  What is the logic in allowing an
> historic revision to be associated with a file?  Why is it not merely
> a readonly buffer with no backing file?

The default value is nil just to keep its previous default behaviour.
I don't know why previously it saved every visited revision to a file,
thus littering the source directories with useless files.

> Perhaps I have been too influenced by git...  My mental model is that
> revisions are immutable _values_.  Is that not vc's model?

I don't know a reason why anyone might want to edit an old revision.
But anyway when one needs to save a revision to file, it's easy to do
with 'C-x C-w RET', when the default value will be changed to t.

reply via email to

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