all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andre Spiegel <spiegel@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Disabling VC:  Documentation seems inadequate.
Date: Fri, 05 Dec 2003 18:07:59 +0100	[thread overview]
Message-ID: <1070644078.626.29.camel@localhost> (raw)
In-Reply-To: <Pine.LNX.3.96.1031204083213.226B-100000@acm.acm>

On Thu, 2003-12-04 at 13:46, Alan Mackenzie wrote:

> I mentioned this in summer of 2002, and you took on the task of polling
> users on the issue of what C-x C-q should do (thanks!).  It turned out
> that my feeling wasn't that widespread - it was my problem.  So, of
> course, I bound C-x C-q to `toggle-read-only' in my own .emacs.

The results were rather inconclusive -- there were strong advocates of
either position, both with very good reasons.  Based on this, RMS
decided salomonically that we should remove the version control meaning
of C-x C-q by default (users can rebind the key individually).  So this
concerns of yours has really been fully addressed (as Stefan already
pointed out).  The change is in Emacs CVS.

> (i) Sometimes my files (checked out from SourceForge under CVS control),
> get loaded into RO buffers, despite the files being writeable.  I haven't
> investigated why;
> (ii) Sometimes Emacs has signalled an error on C-x C-s.  This occurred on
> Emacs 21.1, but seems to have been fixed for 21.3.  It happened after I'd
> edited a buffer, then renamed the file to a "backup" name (e.g. mv
> cc-awk.el cc-awk.191103.el) before doing C-x C-s; (I used mv rather than
> cp so as to preserve the file's timestamp).

That would definitely be bugs if it were reproducible.  Please don't
hesitate to report them as such if you can find a reproducible sequence
of actions that triggers that behaviour.

> The basic notions about VC don't match the way I hack software  (I think
> I'm talking more about VC systems which use locks rather than CVS).  I
> often want to change a file _without_ checking it out - to play with it,
> to see what it looks like with comments added, to test an alternative
> algorithm, that sort of thing, but without impeding colleagues or leaving
> the (public copy of the) file in un unstable state.  Having decided that
> a change is good, THEN is the time to check the file out, make the
> changes permanent, and check it in.  Emacs's VC tries to prevent me doing
> things this way (if I've understood it properly).  Sometimes I want to
> set a _file_ RO without it getting checked in.

That's a very reasonable way to work and it is the natural approach for
"modern" systems like CVS (along with the notion that locking really
isn't necessary if developers have their own private workspace).  Also,
VC is no longer that intrusive even for systems with locking, believe me
:-).

Just the other day, I was consulting for a software development team at
a bank and introduced them to RCS (they were hesitant to use CVS because
they thought that they must absolutely have locks).  But when they
tried, it took them 15 seconds to override RCS' locking mechanism and
bring the file permissions into an inconsistent state and cause really
unpleasant effects.  After that, they decided that maybe CVS was the
better way to go, after all :-)

Hoping that you might someday turn on VC again :-)

Andre

      parent reply	other threads:[~2003-12-05 17:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-03 20:45 Disabling VC: Documentation seems inadequate Alan Mackenzie
2003-12-03 20:59 ` Stefan Monnier
2003-12-03 21:02 ` Andre Spiegel
2003-12-04 12:46   ` Alan Mackenzie
2003-12-04 16:00     ` Stefan Monnier
2003-12-05 17:07     ` Andre Spiegel [this message]

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=1070644078.626.29.camel@localhost \
    --to=spiegel@gnu.org \
    --cc=emacs-devel@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.