From: Juri Linkov <juri@linkov.net>
To: John Yates <john@yates-sheets.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: vc-find-revision-no-save?
Date: Mon, 24 Oct 2022 22:37:48 +0300 [thread overview]
Message-ID: <86h6zt812r.fsf@mail.linkov.net> (raw)
In-Reply-To: <CAJnXXohS35J_KAEdQYwf=-jPwCYYbQVyXDK-dHOH4tV1FeAUNQ@mail.gmail.com> (John Yates's message of "Sun, 23 Oct 2022 20:27:24 -0400")
> 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.
next prev parent reply other threads:[~2022-10-24 19:37 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 0:27 vc-find-revision-no-save? John Yates
2022-10-24 9:42 ` vc-find-revision-no-save? Dmitry Gutov
2022-10-24 16:02 ` vc-find-revision-no-save? Philip Kaludercic
2022-10-24 17:14 ` vc-find-revision-no-save? Dmitry Gutov
2022-10-24 21:10 ` vc-find-revision-no-save? Stefan Monnier
2022-10-25 2:22 ` vc-find-revision-no-save? Eli Zaretskii
2022-10-28 21:57 ` vc-find-revision-no-save? Richard Stallman
2022-10-29 6:46 ` vc-find-revision-no-save? Philip Kaludercic
2022-10-29 7:07 ` vc-find-revision-no-save? Stefan Kangas
2022-10-29 9:18 ` vc-find-revision-no-save? Philip Kaludercic
2022-10-29 9:24 ` vc-find-revision-no-save? Andreas Schwab
2022-10-29 9:26 ` vc-find-revision-no-save? Philip Kaludercic
2022-10-29 15:14 ` vc-find-revision-no-save? Stefan Monnier
2022-10-29 15:40 ` vc-find-revision-no-save? Philip Kaludercic
2022-10-24 19:37 ` Juri Linkov [this message]
2022-10-24 20:00 ` vc-find-revision-no-save? John Yates
-- strict thread matches above, loose matches on Subject: below --
2023-01-31 11:57 vc-find-revision-no-save? John Yates
2023-02-10 23:46 ` vc-find-revision-no-save? Dmitry Gutov
2023-03-27 19:38 ` vc-find-revision-no-save? John Yates
2023-03-27 20:50 ` vc-find-revision-no-save? John Yates
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=86h6zt812r.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=emacs-devel@gnu.org \
--cc=john@yates-sheets.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.