[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-x C-q more useful as toggle-read-only
From: |
Andre Spiegel |
Subject: |
Re: C-x C-q more useful as toggle-read-only |
Date: |
26 Oct 2000 11:36:07 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 |
Being the VC maintainer, I probably should have commented on this
earlier on, but I couldn't follow this thread continuously over the
past few days. The binding of C-x C-q was introduced before I took
over VC maintenance, so I am not to blame for anything :-).
There have already been lengthy discussions about this issue several
times in the past, and for the moment, I have simply chosen not to
have an opinion on the matter and implement whatever people consider
the best.
A few remarks though --
For one thing, I agree that vc-toggle-read-only is only meaningful for
files with locking, i.e. if unmodified files are kept read-only by the
version control system. Under both RCS and CVS there are modes where
this is the case, and both backends can also work in a mode where this
is not the case.
So maybe it would be natural to have that C-x C-q binding for files
with locking only, and even in that case it could be made into a user
option, whereas C-x v v would be the general VC command for doing the
right thing.
Note though, that this requires a rather drastic change in the VC
documentation, where C-x C-q is consistently documented as the main VC
command. For that reason, I am also skeptical of introducing a user
option "on the fly" as Eli suggested. This is not a light issue,
because it would turn the meaning of a very important key stroke into
a mere option.
On the positive side, the new VC does handle the special case that
someone complained about: if a file is "locked" (or "modified") but
the buffer is read-only, then C-x C-q will simply make the buffer (and
if needed, also the file) writable, because that is the most sensible
thing to do in that situation.
- Re: C-x C-q more useful as toggle-read-only, (continued)
- Re: C-x C-q more useful as toggle-read-only, Eli Zaretskii, 2000/10/24
- Re: C-x C-q more useful as toggle-read-only, Klaus Berndl, 2000/10/24
- Re: C-x C-q more useful as toggle-read-only, Michael J Downes, 2000/10/24
- Re: C-x C-q more useful as toggle-read-only, Klaus Berndl, 2000/10/24
- Re: C-x C-q more useful as toggle-read-only, Eli Zaretskii, 2000/10/24
- Re: C-x C-q more useful as toggle-read-only, Michael John Downes, 2000/10/24
- Re: C-x C-q more useful as toggle-read-only, Klaus Berndl, 2000/10/25
- Re: C-x C-q more useful as toggle-read-only, Eli Zaretskii, 2000/10/25
- Re: C-x C-q more useful as toggle-read-only, Francesco Potorti`, 2000/10/25
- Re: C-x C-q more useful as toggle-read-only, Klaus Berndl, 2000/10/25
- Re: C-x C-q more useful as toggle-read-only,
Andre Spiegel <=
- Re: C-x C-q more useful as toggle-read-only, Michael J Downes, 2000/10/26
- Re: C-x C-q more useful as toggle-read-only, Eli Zaretskii, 2000/10/26
- Re: C-x C-q more useful as toggle-read-only, Francesco Potorti`, 2000/10/30
- Re: C-x C-q more useful as toggle-read-only, Greg A. Woods, 2000/10/27
- Re: C-x C-q more useful as toggle-read-only, Miles Bader, 2000/10/27
- Re: C-x C-q more useful as toggle-read-only, Eli Zaretskii, 2000/10/27
- Re: C-x C-q more useful as toggle-read-only, Andreas Schwab, 2000/10/27